Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 359353
Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +10 lines)
Line  Link Here
0
-- tcpreplay-3.4.4-r1.ebuild.orig
0
++ tcpreplay-3.4.4-r1.ebuild
Lines 24-40 DEPEND=" Link Here
24
24
25
RDEPEND="${DEPEND}"
25
RDEPEND="${DEPEND}"
26
26
27
: ${TCPREPLAY_NIC:="eth0"}
28
: ${TCPREPLAY_NIC2:="$TCPREPLAY_NIC}"}
29
27
src_prepare() {
30
src_prepare() {
28
	echo "We don't use bundled libopts" > libopts/options.h
31
	echo "We don't use bundled libopts" > libopts/options.h
29
	epatch ${FILESDIR}/${P}-crash.patch
32
	epatch "${FILESDIR}"/${P}-crash.patch
30
}
33
}
31
34
32
src_configure() {
35
src_configure() {
33
	# By default it uses static linking. Avoid that, bug 252940
36
	# By default it uses static linking. Avoid that, bug 252940
34
	econf --enable-shared \
37
	econf --enable-shared \
35
		--disable-local-libopts \
38
		--disable-local-libopts \
36
		--with-testnic=eth1 \
39
		--with-testnic="${TCPREPLAY_NIC}" \
37
		--with-testnic2=wlan0 \
40
		--with-testnic2="${TCPREPLAY_NIC2}" \
38
		$(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
41
		$(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
39
		$(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
42
		$(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
40
		$(use_enable debug)
43
		$(use_enable debug)
Lines 48-54 src_test() { Link Here
48
		make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
51
		make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
49
	else
52
	else
50
		make test || {
53
		make test || {
51
			ewarn "Note, that some tests require eth0 iface to be UP." ;
54
			ewarn "Note, that some tests require an iface to be UP. The" ;
55
			ewarn "default setting is eth0. A different iface can be used by" ;
56
			ewarn "setting 'TCPREPLAY_NIC' and 'TCPREPLAY_NIC2 variables." ;
52
			die "self test failed - see ${S}/test/test.log" ; }
57
			die "self test failed - see ${S}/test/test.log" ; }
53
	fi
58
	fi
54
}
59
}

Return to bug 359353