Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcpreplay/
Date: Tue, 25 May 2021 13:59:44
Message-Id: 1621951168.840391c3fc715e59f7d5ff2c531b6351273d5fa1.whissi@gentoo
1 commit: 840391c3fc715e59f7d5ff2c531b6351273d5fa1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 25 13:59:19 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 13:59:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840391c3
7
8 net-analyzer/tcpreplay: security cleanup
9
10 Bug: https://bugs.gentoo.org/750344
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 net-analyzer/tcpreplay/Manifest | 1 -
15 net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild | 77 ---------------------------
16 2 files changed, 78 deletions(-)
17
18 diff --git a/net-analyzer/tcpreplay/Manifest b/net-analyzer/tcpreplay/Manifest
19 index 913acf2a40f..ddd047da003 100644
20 --- a/net-analyzer/tcpreplay/Manifest
21 +++ b/net-analyzer/tcpreplay/Manifest
22 @@ -1,2 +1 @@
23 -DIST tcpreplay-4.3.3.tar.xz 748220 BLAKE2B 2de09f75e6bb6035fc25f34f41d9ce2ccbb961d7464a9a6dae16ec417d629e4819593fd781d95075293ffa3a3db7c4a50ae8667c4e7d07c0b425361027c8df06 SHA512 110d7768a176d2126766829466a209cdd983afcf0c988f7e128baa5057b3ac1dc918fcaeb168a2e6654429100a146afcbdafcda8c3d67adf6b17892a48689a02
24 DIST tcpreplay-4.3.4.tar.xz 739280 BLAKE2B 8b680363ee182fc7581f99cc4587d50e36285446d07a5be370e2439b31582ad88c786c11d662e28dadc5b69aee376889b1c0f6a86d61c106426ab6ab2c085012 SHA512 6d19cf492114c68a9fafcf7790c08f31607d2c0112e02fa41eed8747255bbbef85f281f74348e1d51f1d476b88f07d64715224618ec15268688baefaf7cc7124
25
26 diff --git a/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild b/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild
27 deleted file mode 100644
28 index 3df344d4160..00000000000
29 --- a/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild
30 +++ /dev/null
31 @@ -1,77 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -inherit autotools
38 -
39 -DESCRIPTION="Utilities for editing and replaying previously captured network traffic"
40 -HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay"
41 -SRC_URI="https://github.com/appneta/${PN}/releases/download/v${PV}/${P}.tar.xz"
42 -S="${WORKDIR}"/${P/_/-}
43 -
44 -LICENSE="BSD GPL-3"
45 -SLOT="0"
46 -KEYWORDS="amd64 ~arm ~sparc x86"
47 -IUSE="debug pcapnav +tcpdump"
48 -
49 -# libpcapnav for pcapnav-config
50 -BDEPEND="
51 - net-libs/libpcapnav
52 - >=sys-devel/autogen-5.18.4[libopts]
53 -"
54 -DEPEND="
55 - dev-libs/libdnet
56 - >=net-libs/libpcap-0.9
57 - pcapnav? ( net-libs/libpcapnav )
58 - tcpdump? ( net-analyzer/tcpdump )
59 -"
60 -RDEPEND="${DEPEND}"
61 -
62 -DOCS=( docs/{CHANGELOG,CREDIT,HACKING,TODO} )
63 -
64 -PATCHES=(
65 - "${FILESDIR}"/${PN}-4.3.0-enable-pcap_findalldevs.patch
66 -)
67 -
68 -src_prepare() {
69 - default
70 -
71 - sed -i \
72 - -e 's|#include <dnet.h>|#include <dnet/eth.h>|g' \
73 - src/common/sendpacket.c || die
74 - sed -i \
75 - -e 's|@\([A-Z_]*\)@|$(\1)|g' \
76 - -e '/tcpliveplay_CFLAGS/s|$| $(LDNETINC)|g' \
77 - -e '/tcpliveplay_LDADD/s|$| $(LDNETLIB)|g' \
78 - src/Makefile.am || die
79 -
80 - eautoreconf
81 -}
82 -
83 -src_configure() {
84 - # By default it uses static linking. Avoid that, bug 252940
85 - econf \
86 - $(use_enable debug) \
87 - $(use_with pcapnav pcapnav-config "${BROOT}"/usr/bin/pcapnav-config) \
88 - $(use_with tcpdump tcpdump "${ESYSROOT}"/usr/sbin/tcpdump) \
89 - --enable-dynamic-link \
90 - --enable-local-libopts \
91 - --enable-shared \
92 - --with-libdnet \
93 - --with-testnic2=lo \
94 - --with-testnic=lo
95 -}
96 -
97 -src_test() {
98 - if [[ ! ${EUID} -eq 0 ]]; then
99 - ewarn "Some tests were disabled due to FEATURES=userpriv"
100 - ewarn "To run all tests issue the following command as root:"
101 - ewarn " # make -C ${S}/test"
102 - emake -j1 -C test tcpprep
103 - else
104 - emake -j1 test || {
105 - ewarn "Note that some tests require eth0 iface to be up." ;
106 - die "self test failed - see ${S}/test/test.log" ; }
107 - fi
108 -}