You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
922 B
49 lines
922 B
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
13 years ago
|
inherit eutils toolchain-funcs
|
||
|
|
||
7 years ago
|
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"
|
||
13 years ago
|
|
||
|
LICENSE="free-noncomm"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||
|
RESTRICT="mirror" # bug #391789 comment #1
|
||
|
|
||
7 years ago
|
DEPEND="
|
||
|
app-arch/unzip
|
||
|
>=sys-apps/sed-4
|
||
|
"
|
||
13 years ago
|
|
||
|
S="${WORKDIR}"
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-1.26-linux-include.patch
|
||
|
)
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
7 years ago
|
edos2unix *.c *.h *.doc
|
||
|
|
||
|
default
|
||
13 years ago
|
|
||
10 years ago
|
sed -i \
|
||
13 years ago
|
-e "s|LFLAGS=\"\"|LFLAGS?=\"${LDFLAGS}\"|g" \
|
||
10 years ago
|
-e 's|\(CC\)=|\1?=|g' \
|
||
|
-e 's|\(CFLAGS\)=|\1+=|g' \
|
||
|
Makefile || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
12 years ago
|
emake \
|
||
13 years ago
|
CC="$(tc-getCC)" \
|
||
12 years ago
|
CFLAGS="${CFLAGS}" \
|
||
|
linux
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin netio
|
||
|
dodoc netio.doc
|
||
|
}
|