Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcpreplay/
Date: Thu, 27 Apr 2017 12:54:40
Message-Id: 1493297616.b46998560eed21f2245b5e0b253626974c9dc7b9.jer@gentoo
1 commit: b46998560eed21f2245b5e0b253626974c9dc7b9
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 27 12:53:36 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 27 12:53:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4699856
7
8 net-analyzer/tcpreplay: Version bump.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-analyzer/tcpreplay/Manifest | 1 +
13 net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild | 74 +++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/net-analyzer/tcpreplay/Manifest b/net-analyzer/tcpreplay/Manifest
17 index cf8a70f9d0d..52a20cb27f9 100644
18 --- a/net-analyzer/tcpreplay/Manifest
19 +++ b/net-analyzer/tcpreplay/Manifest
20 @@ -2,3 +2,4 @@ DIST tcpreplay-4.1.2.tar.gz 2162175 SHA256 da483347e83a9b5df0e0dbb0f822a2d37236e
21 DIST tcpreplay-4.2.1.tar.gz 3528019 SHA256 224b519e561d969b4bdb0e700c2283e036620e3cb5895d5aab2a7e4f27d21a79 SHA512 0ecfc6ec80c94b2ea001ea1fee31f06cfb265dcd7bb45cc09d480aa6ed2d11733b7383c54425805bfed02750e05339500f3d4de9b7c6054fa12f015153366875 WHIRLPOOL b6d1bbb0c18398b9f10562f1040780e4a058046e8b040a195fdf0a937ccfa9282fed520ec5478ed443b92fa322412bc6b3ff2040728393903acf2080eedbf350
22 DIST tcpreplay-4.2.2.tar.gz 3597722 SHA256 e674166b54486db8f5417554ed88c06f44f368d70585c2897b0bc085009d8dd5 SHA512 5ae57957ab95790df8e880a53905e0e8e62b3a3d80f1fb2030e7bc360d8d4146335b48d7a5c02448edacafc146f2ea485086a824ce4e305eb3a34a8587ac46ae WHIRLPOOL 195ef1c28850e8a57f7cf520d4bb3e32e1bdc89a1e230176ac2334ff7b9f8026f24ef0d07ab9331e93ed106485ef3b501521fc4a8a3ba9752cabeb4f4d675dc5
23 DIST tcpreplay-4.2.3.tar.gz 3490534 SHA256 68d8d49dab5bf58b2e8d244eee1ee7f2379d967da19fe97dd9d59bcf40a22abc SHA512 0d92c8cdb231d602dddc58e1c5b4e4a443a68f302b20a8ac402fb4eefbac365fd1ba72cfbe05ca667240e4b82ce9fd5de6a04b7eed7017e5b9563eff779c3a85 WHIRLPOOL d87a2176e980d44993a932c4cc90b360834f31e4d49003d979a83b337fb7e15d1c0a0de8967ef7b6ddbc58d74302be38a5361a0925e437f0b38702203a450eaa
24 +DIST tcpreplay-4.2.4.tar.gz 3489615 SHA256 da78ea1a1fe8ff177a4f9e71c4c6739b79ac86db2c2bb90955318b8e8439beb7 SHA512 b29463272abb18789b5e095a86b0c10433e3f3c8a1af8a906f68221d78c1c9e6703d3f000e7ad86151ec6356f24aa80e1d0c6d128a52c426a14f080341e1cc10 WHIRLPOOL 7d116a159928088e18ba1bcf4a5dbb3b3bae91cb43227820baa42aff9f5406b43383381844d18cf038d40d3844b40bf064ff724a772a2025f0871e98c31573eb
25
26 diff --git a/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild b/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild
27 new file mode 100644
28 index 00000000000..ee0ea9dffd4
29 --- /dev/null
30 +++ b/net-analyzer/tcpreplay/tcpreplay-4.2.4.ebuild
31 @@ -0,0 +1,74 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit autotools flag-o-matic
37 +
38 +DESCRIPTION="utilities for editing and replaying previously captured network traffic"
39 +HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay"
40 +LICENSE="BSD GPL-3"
41 +SRC_URI="https://github.com/appneta/${PN}/releases/download/v${PV/_/-}/${P/_/-}.tar.gz -> ${P}.tar.gz"
42 +
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~sparc ~x86"
45 +IUSE="debug pcapnav +tcpdump"
46 +
47 +DEPEND="
48 + >=sys-devel/autogen-5.18.4[libopts]
49 + dev-libs/libdnet
50 + >=net-libs/libpcap-0.9
51 + tcpdump? ( net-analyzer/tcpdump )
52 + pcapnav? ( net-libs/libpcapnav )
53 +"
54 +RDEPEND="${DEPEND}"
55 +
56 +DOCS=(
57 + docs/{CHANGELOG,CREDIT,HACKING,TODO}
58 +)
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-4.1.0-enable-pcap_findalldevs.patch
61 +)
62 +
63 +S=${WORKDIR}/${P/_/-}
64 +
65 +src_prepare() {
66 + default
67 +
68 + sed -i \
69 + -e 's|#include <dnet.h>|#include <dnet/eth.h>|g' \
70 + src/common/sendpacket.c || die
71 + sed -i \
72 + -e 's|@\([A-Z_]*\)@|$(\1)|g' \
73 + -e '/tcpliveplay_CFLAGS/s|$| $(LDNETINC)|g' \
74 + -e '/tcpliveplay_LDADD/s|$| $(LDNETLIB)|g' \
75 + src/Makefile.am || die
76 +
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + # By default it uses static linking. Avoid that, bug 252940
82 + econf \
83 + $(use_enable debug) \
84 + $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
85 + $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
86 + --disable-local-libopts \
87 + --enable-dynamic-link \
88 + --enable-shared \
89 + --with-libdnet \
90 + --with-testnic2=lo \
91 + --with-testnic=lo
92 +}
93 +
94 +src_test() {
95 + if [[ ! ${EUID} -eq 0 ]]; then
96 + ewarn "Some tests were disabled due to FEATURES=userpriv"
97 + ewarn "To run all tests issue the following command as root:"
98 + ewarn " # make -C ${S}/test"
99 + emake -j1 -C test tcpprep || die "self test failed - see ${S}/test/test.log"
100 + else
101 + emake -j1 test || {
102 + ewarn "Note, that some tests require eth0 iface to be UP." ;
103 + die "self test failed - see ${S}/test/test.log" ; }
104 + fi
105 +}