forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-analyzer/netio: Update HOMEPAGE/SRC_URI by Nico Baggus (bug #6376…
…60). Package-Manager: Portage-2.3.14, Repoman-2.3.6
- Loading branch information
Jeroen Roovers
committed
Nov 16, 2017
1 parent
6a9e3a8
commit aaebe85
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
inherit eutils toolchain-funcs | ||
|
||
DESCRIPTION="measures net throughput with NetBIOS and TCP/IP protocols" | ||
HOMEPAGE="https://web.ars.de/netio/" | ||
SRC_URI="http://web.ars.de/wp-content/uploads/2017/04/${PN}${PV/./}.zip" | ||
|
||
LICENSE="free-noncomm" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" | ||
RESTRICT="mirror" # bug #391789 comment #1 | ||
|
||
DEPEND=" | ||
app-arch/unzip | ||
>=sys-apps/sed-4 | ||
" | ||
|
||
S="${WORKDIR}" | ||
PATCHES=( | ||
"${FILESDIR}"/${PN}-1.26-linux-include.patch | ||
) | ||
|
||
src_prepare() { | ||
edos2unix *.c *.h *.doc | ||
|
||
default | ||
|
||
sed -i \ | ||
-e "s|LFLAGS=\"\"|LFLAGS?=\"${LDFLAGS}\"|g" \ | ||
-e 's|\(CC\)=|\1?=|g' \ | ||
-e 's|\(CFLAGS\)=|\1+=|g' \ | ||
Makefile || die | ||
} | ||
|
||
src_compile() { | ||
emake \ | ||
CC="$(tc-getCC)" \ | ||
CFLAGS="${CFLAGS}" \ | ||
linux | ||
} | ||
|
||
src_install() { | ||
dobin netio | ||
dodoc netio.doc | ||
} |