diff options
author | Markus Ullmann <jokey@gentoo.org> | 2008-07-07 21:49:40 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2008-07-07 21:49:40 +0000 |
commit | 1b88b9462dd1d78946ccfdd3e5ad0e661abb3a8d (patch) | |
tree | 26c718bc14499a6149bb1f9f8e943a9154103c13 /net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild | |
parent | amd64 stable wrt bug #229679 (diff) | |
download | gentoo-2-1b88b9462dd1d78946ccfdd3e5ad0e661abb3a8d.tar.gz gentoo-2-1b88b9462dd1d78946ccfdd3e5ad0e661abb3a8d.tar.bz2 gentoo-2-1b88b9462dd1d78946ccfdd3e5ad0e661abb3a8d.zip |
Version bump for bug #229259
(Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r3 i686)
Diffstat (limited to 'net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild')
-rw-r--r-- | net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild b/net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild new file mode 100644 index 000000000000..5ef2d3942321 --- /dev/null +++ b/net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/tcpreplay-3.3.2.ebuild,v 1.1 2008/07/07 21:49:40 jokey Exp $ + +DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds" +HOMEPAGE="http://tcpreplay.synfin.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="debug pcapnav" + +DEPEND=">=net-libs/libnet-1.1.1 + net-libs/libpcap + net-analyzer/tcpdump + pcapnav? ( net-libs/libpcapnav )" + +src_compile() { + econf \ + $(use_enable debug) \ + || die "econf failed" + emake || die "emake failed" +} + +src_test() { + whoami + if hasq userpriv "${FEATURES}"; then + ewarn "Some tested disabled due to FEATURES=userpriv" + ewarn "For a full test as root - make -C ${S}/test" + make -C test tcpprep || die "self test failed - see ${S}/test/test.log" + else + make test || { + ewarn "Note, that some tests require eth0 iface to be UP." ; + die "self test failed - see ${S}/test/test.log" ; } + fi +} + +src_install() { + make DESTDIR="${D}" install || die "emake install failed" + dodoc docs/{CHANGELOG,CREDIT,HACKING,TODO} +} |