summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2006-02-06 01:11:15 +0000
committerMarkus Ullmann <jokey@gentoo.org>2006-02-06 01:11:15 +0000
commit607ca715cf5dffc883534c3b4b56cdc587cee138 (patch)
treec7406874d509879cc083edba5ac1bf3595d64ac3 /net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild
parentVersion bump #94040 + work around #121657 + mark myself maintainer (diff)
downloadgentoo-2-607ca715cf5dffc883534c3b4b56cdc587cee138.tar.gz
gentoo-2-607ca715cf5dffc883534c3b4b56cdc587cee138.tar.bz2
gentoo-2-607ca715cf5dffc883534c3b4b56cdc587cee138.zip
Version bump wrt bug #118466
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild')
-rw-r--r--net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild b/net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild
new file mode 100644
index 000000000000..37f39af20b76
--- /dev/null
+++ b/net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/tcpreplay-3.0_beta7.ebuild,v 1.1 2006/02/06 01:11:15 jokey Exp $
+
+MY_P=${PN}-${PV/_beta7/.beta7}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds"
+HOMEPAGE="http://tcpreplay.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+RESTRICT="nomirror"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug pcapnav"
+
+DEPEND=">=net-libs/libnet-1.1.1
+ virtual/libpcap
+ net-analyzer/tcpdump
+ pcapnav? ( net-libs/libpcapnav )"
+
+src_compile() {
+ econf \
+ $(use_enable debug) \
+ || die "econf failed"
+ emake CFLAGS="${CFLAGS}" || 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 || \
+ die "self test failed - see ${S}/test/test.log"
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "emake install failed"
+ rm ${D}/usr/bin/man2html
+ dodoc docs/*
+}