Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpreplay: ChangeLog tcpreplay-4.0.3.ebuild tcpreplay-4.0.2.ebuild
Date: Sat, 01 Mar 2014 15:37:29
Message-Id: 20140301153721.391582004C@flycatcher.gentoo.org
1 jer 14/03/01 15:37:21
2
3 Modified: ChangeLog
4 Added: tcpreplay-4.0.3.ebuild
5 Removed: tcpreplay-4.0.2.ebuild
6 Log:
7 Version bump, fixes compile failure (bug #503048).
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A792A613)
10
11 Revision Changes Path
12 1.52 net-analyzer/tcpreplay/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/ChangeLog?rev=1.52&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/ChangeLog?rev=1.52&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/ChangeLog?r1=1.51&r2=1.52
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/ChangeLog,v
21 retrieving revision 1.51
22 retrieving revision 1.52
23 diff -u -r1.51 -r1.52
24 --- ChangeLog 1 Feb 2014 14:19:26 -0000 1.51
25 +++ ChangeLog 1 Mar 2014 15:37:20 -0000 1.52
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-analyzer/tcpreplay
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/ChangeLog,v 1.51 2014/02/01 14:19:26 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/ChangeLog,v 1.52 2014/03/01 15:37:20 jer Exp $
31 +
32 +*tcpreplay-4.0.3 (01 Mar 2014)
33 +
34 + 01 Mar 2014; Jeroen Roovers <jer@g.o> -tcpreplay-4.0.2.ebuild,
35 + +tcpreplay-4.0.3.ebuild:
36 + Version bump, fixes compile failure (bug #503048).
37
38 01 Feb 2014; Jeroen Roovers <jer@g.o> tcpreplay-4.0.2.ebuild:
39 Add new HOMEPAGE.
40
41
42
43 1.1 net-analyzer/tcpreplay/tcpreplay-4.0.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/tcpreplay-4.0.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/tcpreplay-4.0.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: tcpreplay-4.0.3.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpreplay/tcpreplay-4.0.3.ebuild,v 1.1 2014/03/01 15:37:21 jer Exp $
53
54 EAPI=5
55 inherit autotools eutils flag-o-matic
56
57 DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds"
58 HOMEPAGE="http://tcpreplay.synfin.net/ http://tcpreplay.appneta.com/"
59 SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~sparc ~x86"
64 IUSE="debug pcapnav +tcpdump"
65
66 DEPEND="
67 >=sys-devel/autogen-5.16.2[libopts]
68 dev-libs/libdnet
69 >=net-libs/libpcap-0.9
70 tcpdump? ( net-analyzer/tcpdump )
71 pcapnav? ( net-libs/libpcapnav )
72 "
73
74 RDEPEND="${DEPEND}"
75
76 DOCS=( README docs/{CHANGELOG,CREDIT,HACKING,TODO} )
77
78 src_prepare() {
79 sed -i \
80 -e '/CFLAGS=/s|-ggdb -std=gnu99|-std=gnu99|g' \
81 -e 's|-O3||g' \
82 -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
83 configure.ac || die
84 sed -i \
85 -e 's|#include <dnet.h>|#include <dnet/eth.h>|g' \
86 src/common/sendpacket.c || die
87 sed -i \
88 -e 's|@\([A-Z_]*\)@|$(\1)|g' \
89 -e '/tcpliveplay_CFLAGS/s|$| $(LDNETINC)|g' \
90 -e '/tcpliveplay_LDADD/s|$| $(LDNETLIB)|g' \
91 src/Makefile.am || die
92
93 eautoreconf
94 }
95
96 src_configure() {
97 # By default it uses static linking. Avoid that, bug 252940
98 econf \
99 $(use_enable debug) \
100 $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
101 $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
102 --disable-local-libopts \
103 --enable-dynamic-link \
104 --enable-shared \
105 --with-libdnet \
106 --with-testnic2=lo \
107 --with-testnic=lo
108 }
109
110 src_test() {
111 if [[ ! ${EUID} -eq 0 ]]; then
112 ewarn "Some tests were disabled due to FEATURES=userpriv"
113 ewarn "To run all tests issue the following command as root:"
114 ewarn " # make -C ${S}/test"
115 make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
116 else
117 make test || {
118 ewarn "Note, that some tests require eth0 iface to be UP." ;
119 die "self test failed - see ${S}/test/test.log" ; }
120 fi
121 }