diff options
Diffstat (limited to 'net-analyzer/tptest/tptest-3.1.7-r2.ebuild')
-rw-r--r-- | net-analyzer/tptest/tptest-3.1.7-r2.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net-analyzer/tptest/tptest-3.1.7-r2.ebuild b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild new file mode 100644 index 000000000000..e7135687839a --- /dev/null +++ b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils + +MY_PV="${PV/./_}" + +DESCRIPTION="Internet bandwidth tester" +HOMEPAGE="http://tptest.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="amd64 ppc sparc x86" + +src_prepare() { + sed -i apps/unix/{client,server}/Makefile \ + -e "s:^CFLAGS[[:space:]]*=:CFLAGS+=:" \ + || die + epatch "${FILESDIR}/${PN}-3.1.7-getstatsfromlinevuln.patch" + cp -f os-dep/unix/* . + cp -f engine/* . +} + +src_compile() { + emake -C apps/unix/client \ + CC=$(tc-getCC) \ + LDFLAGS="${LDFLAGS}" \ + || die + emake -C apps/unix/server \ + CC=$(tc-getCC) \ + LDFLAGS="${LDFLAGS}" \ + || die +} + +src_install() { + dobin apps/unix/client/tptestclient + dosbin apps/unix/server/tptestserver + + insinto /etc + doins apps/unix/server/tptest.conf +} |