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: Fri, 06 May 2016 05:47:52
Message-Id: 1462513658.605a2edb259f027e326eba47c35b645db2b771a5.jer@gentoo
1 commit: 605a2edb259f027e326eba47c35b645db2b771a5
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 6 05:46:07 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 05:47:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=605a2edb
7
8 net-analyzer/tcpreplay: Old.
9
10 Package-Manager: portage-2.2.28
11
12 net-analyzer/tcpreplay/Manifest | 1 -
13 net-analyzer/tcpreplay/tcpreplay-4.1.0-r1.ebuild | 73 ------------------------
14 2 files changed, 74 deletions(-)
15
16 diff --git a/net-analyzer/tcpreplay/Manifest b/net-analyzer/tcpreplay/Manifest
17 index 79d59e6..4c66272 100644
18 --- a/net-analyzer/tcpreplay/Manifest
19 +++ b/net-analyzer/tcpreplay/Manifest
20 @@ -1,2 +1 @@
21 -DIST tcpreplay-4.1.0.tar.gz 2118212 SHA256 ad285b08d7a61ed88799713c4c5d657a7a503eee832304d3a767f67efe5d1a20 SHA512 bfd7a0679dccd86aba7ca5d102665e6feba72bffb1596915985bc50261f9ac10ce56b870e1aa64a33efa79e3bee89b8c66e2c26328fb15d3722a5bc957ea77a2 WHIRLPOOL e6a07495cb07a09f707b3784d15a266c04a7b3d369b7d8eb9d7d5683838accdcc539255ff05f99c2fc8036d045e66f3a250a0c7f1896024c65065a6c6d282b7a
22 DIST tcpreplay-4.1.1.tar.gz 2173781 SHA256 61b916ef91049cad2a9ddc8de6f5e3e3cc5d9998dbb644dc91cf3a798497ffe4 SHA512 6be88d3742b93fa557c9142eebe7ae2cf61a5436087f8400260472f87c1dd0d61515b338706afa1c850ae2380c0d5fa664691052d3dc01f3099ad068b67eee87 WHIRLPOOL ce1e4fe845ffbc019316f7a11249828d7b8c65afd9bfbff04950d0666aa79ee61e3bfd98d0870f820423cfb5b21e5274bf328cb4a020f290b0e7faa81297c544
23
24 diff --git a/net-analyzer/tcpreplay/tcpreplay-4.1.0-r1.ebuild b/net-analyzer/tcpreplay/tcpreplay-4.1.0-r1.ebuild
25 deleted file mode 100644
26 index 325f34c..0000000
27 --- a/net-analyzer/tcpreplay/tcpreplay-4.1.0-r1.ebuild
28 +++ /dev/null
29 @@ -1,73 +0,0 @@
30 -# Copyright 1999-2015 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -# $Id$
33 -
34 -EAPI=5
35 -inherit autotools eutils flag-o-matic
36 -
37 -DESCRIPTION="a suite of utilities for editing and replaying previously captured network traffic"
38 -HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay"
39 -LICENSE="BSD GPL-3"
40 -SRC_URI="https://github.com/appneta/${PN}/releases/download/v${PV}/${P}.tar.gz"
41 -
42 -SLOT="0"
43 -KEYWORDS="amd64 ~sparc x86"
44 -IUSE="debug pcapnav +tcpdump"
45 -
46 -DEPEND="
47 - >=sys-devel/autogen-5.16.2[libopts]
48 - dev-libs/libdnet
49 - >=net-libs/libpcap-0.9
50 - tcpdump? ( net-analyzer/tcpdump )
51 - pcapnav? ( net-libs/libpcapnav )
52 -"
53 -
54 -RDEPEND="${DEPEND}"
55 -
56 -DOCS=( docs/{CHANGELOG,CREDIT,HACKING,TODO} )
57 -
58 -src_prepare() {
59 - epatch "${FILESDIR}"/${PN}-4.1.0-enable-pcap_findalldevs.patch
60 -
61 - sed -i \
62 - -e 's|-O3||g' \
63 - -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
64 - configure.ac || die
65 - sed -i \
66 - -e 's|#include <dnet.h>|#include <dnet/eth.h>|g' \
67 - src/common/sendpacket.c || die
68 - sed -i \
69 - -e 's|@\([A-Z_]*\)@|$(\1)|g' \
70 - -e '/tcpliveplay_CFLAGS/s|$| $(LDNETINC)|g' \
71 - -e '/tcpliveplay_LDADD/s|$| $(LDNETLIB)|g' \
72 - src/Makefile.am || die
73 -
74 - eautoreconf
75 -}
76 -
77 -src_configure() {
78 - # By default it uses static linking. Avoid that, bug 252940
79 - econf \
80 - $(use_enable debug) \
81 - $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
82 - $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
83 - --disable-local-libopts \
84 - --enable-dynamic-link \
85 - --enable-shared \
86 - --with-libdnet \
87 - --with-testnic2=lo \
88 - --with-testnic=lo
89 -}
90 -
91 -src_test() {
92 - if [[ ! ${EUID} -eq 0 ]]; then
93 - ewarn "Some tests were disabled due to FEATURES=userpriv"
94 - ewarn "To run all tests issue the following command as root:"
95 - ewarn " # make -C ${S}/test"
96 - emake -j1 -C test tcpprep || die "self test failed - see ${S}/test/test.log"
97 - else
98 - emake -j1 test || {
99 - ewarn "Note, that some tests require eth0 iface to be UP." ;
100 - die "self test failed - see ${S}/test/test.log" ; }
101 - fi
102 -}