diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-04-27 14:53:36 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-04-27 14:53:36 +0200 |
commit | b46998560eed21f2245b5e0b253626974c9dc7b9 (patch) | |
tree | 09202a2efba87ce9126a00bf0b6f1a79ec1d1535 /net-analyzer/tcpreplay | |
parent | sys-kernel/vanilla-sources: Automated version bump to {4.4.64,4.9.25,4.10.13}... (diff) | |
download | gentoo-b46998560eed21f2245b5e0b253626974c9dc7b9.tar.gz gentoo-b46998560eed21f2245b5e0b253626974c9dc7b9.tar.bz2 gentoo-b46998560eed21f2245b5e0b253626974c9dc7b9.zip |
net-analyzer/tcpreplay: Version bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-analyzer/tcpreplay')
-rw-r--r-- | net-analyzer/tcpreplay/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/net-analyzer/tcpreplay/Manifest b/net-analyzer/tcpreplay/Manifest index cf8a70f9d0d1..52a20cb27f96 100644 --- a/net-analyzer/tcpreplay/Manifest +++ b/net-analyzer/tcpreplay/Manifest @@ -2,3 +2,4 @@ DIST tcpreplay-4.1.2.tar.gz 2162175 SHA256 da483347e83a9b5df0e0dbb0f822a2d37236e DIST tcpreplay-4.2.1.tar.gz 3528019 SHA256 224b519e561d969b4bdb0e700c2283e036620e3cb5895d5aab2a7e4f27d21a79 SHA512 0ecfc6ec80c94b2ea001ea1fee31f06cfb265dcd7bb45cc09d480aa6ed2d11733b7383c54425805bfed02750e05339500f3d4de9b7c6054fa12f015153366875 WHIRLPOOL b6d1bbb0c18398b9f10562f1040780e4a058046e8b040a195fdf0a937ccfa9282fed520ec5478ed443b92fa322412bc6b3ff2040728393903acf2080eedbf350 DIST tcpreplay-4.2.2.tar.gz 3597722 SHA256 e674166b54486db8f5417554ed88c06f44f368d70585c2897b0bc085009d8dd5 SHA512 5ae57957ab95790df8e880a53905e0e8e62b3a3d80f1fb2030e7bc360d8d4146335b48d7a5c02448edacafc146f2ea485086a824ce4e305eb3a34a8587ac46ae WHIRLPOOL 195ef1c28850e8a57f7cf520d4bb3e32e1bdc89a1e230176ac2334ff7b9f8026f24ef0d07ab9331e93ed106485ef3b501521fc4a8a3ba9752cabeb4f4d675dc5 DIST tcpreplay-4.2.3.tar.gz 3490534 SHA256 68d8d49dab5bf58b2e8d244eee1ee7f2379d967da19fe97dd9d59bcf40a22abc SHA512 0d92c8cdb231d602dddc58e1c5b4e4a443a68f302b20a8ac402fb4eefbac365fd1ba72cfbe05ca667240e4b82ce9fd5de6a04b7eed7017e5b9563eff779c3a85 WHIRLPOOL d87a2176e980d44993a932c4cc90b360834f31e4d49003d979a83b337fb7e15d1c0a0de8967ef7b6ddbc58d74302be38a5361a0925e437f0b38702203a450eaa +DIST tcpreplay-4.2.4.tar.gz 3489615 SHA256 da78ea1a1fe8ff177a4f9e71c4c6739b79ac86db2c2bb90955318b8e8439beb7 SHA512 b29463272abb18789b5e095a86b0c10433e3f3c8a1af8a906f68221d78c1c9e6703d3f000e7ad86151ec6356f24aa80e1d0c6d128a52c426a14f080341e1cc10 WHIRLPOOL 7d116a159928088e18ba1bcf4a5dbb3b3bae91cb43227820baa42aff9f5406b43383381844d18cf038d40d3844b40bf064ff724a772a2025f0871e98c31573eb diff --git a/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild b/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild new file mode 100644 index 000000000000..ee0ea9dffd4b --- /dev/null +++ b/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools flag-o-matic + +DESCRIPTION="utilities for editing and replaying previously captured network traffic" +HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay" +LICENSE="BSD GPL-3" +SRC_URI="https://github.com/appneta/${PN}/releases/download/v${PV/_/-}/${P/_/-}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="debug pcapnav +tcpdump" + +DEPEND=" + >=sys-devel/autogen-5.18.4[libopts] + dev-libs/libdnet + >=net-libs/libpcap-0.9 + tcpdump? ( net-analyzer/tcpdump ) + pcapnav? ( net-libs/libpcapnav ) +" +RDEPEND="${DEPEND}" + +DOCS=( + docs/{CHANGELOG,CREDIT,HACKING,TODO} +) +PATCHES=( + "${FILESDIR}"/${PN}-4.1.0-enable-pcap_findalldevs.patch +) + +S=${WORKDIR}/${P/_/-} + +src_prepare() { + default + + sed -i \ + -e 's|#include <dnet.h>|#include <dnet/eth.h>|g' \ + src/common/sendpacket.c || die + sed -i \ + -e 's|@\([A-Z_]*\)@|$(\1)|g' \ + -e '/tcpliveplay_CFLAGS/s|$| $(LDNETINC)|g' \ + -e '/tcpliveplay_LDADD/s|$| $(LDNETLIB)|g' \ + src/Makefile.am || die + + eautoreconf +} + +src_configure() { + # By default it uses static linking. Avoid that, bug 252940 + econf \ + $(use_enable debug) \ + $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \ + $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \ + --disable-local-libopts \ + --enable-dynamic-link \ + --enable-shared \ + --with-libdnet \ + --with-testnic2=lo \ + --with-testnic=lo +} + +src_test() { + if [[ ! ${EUID} -eq 0 ]]; then + ewarn "Some tests were disabled due to FEATURES=userpriv" + ewarn "To run all tests issue the following command as root:" + ewarn " # make -C ${S}/test" + emake -j1 -C test tcpprep || die "self test failed - see ${S}/test/test.log" + else + emake -j1 test || { + ewarn "Note, that some tests require eth0 iface to be UP." ; + die "self test failed - see ${S}/test/test.log" ; } + fi +} |