diff options
Diffstat (limited to 'net-analyzer/tcpreplay/tcpreplay-999999.ebuild')
-rw-r--r-- | net-analyzer/tcpreplay/tcpreplay-999999.ebuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/net-analyzer/tcpreplay/tcpreplay-999999.ebuild b/net-analyzer/tcpreplay/tcpreplay-999999.ebuild index 9e2776949df2..52407c59ac72 100644 --- a/net-analyzer/tcpreplay/tcpreplay-999999.ebuild +++ b/net-analyzer/tcpreplay/tcpreplay-999999.ebuild @@ -1,35 +1,38 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools flag-o-matic git-r3 -DESCRIPTION="utilities for editing and replaying previously captured network traffic" +inherit autotools git-r3 + +DESCRIPTION="Utilities for editing and replaying previously captured network traffic" HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay" -LICENSE="BSD GPL-3" EGIT_REPO_URI="https://github.com/appneta/tcpreplay" +S="${WORKDIR}"/${P/_/-} +LICENSE="BSD GPL-3" SLOT="0" -KEYWORDS="" IUSE="debug pcapnav +tcpdump" -DEPEND=" +# libpcapnav for pcapnav-config +BDEPEND=" + net-libs/libpcapnav >=sys-devel/autogen-5.18.4[libopts] +" +DEPEND=" dev-libs/libdnet >=net-libs/libpcap-0.9 - tcpdump? ( net-analyzer/tcpdump ) pcapnav? ( net-libs/libpcapnav ) + tcpdump? ( net-analyzer/tcpdump ) " RDEPEND="${DEPEND}" -DOCS=( - docs/{CHANGELOG,CREDIT,HACKING,TODO} -) + +DOCS=( docs/{CHANGELOG,CREDIT,HACKING,TODO} ) + PATCHES=( "${FILESDIR}"/${PN}-4.3.0-enable-pcap_findalldevs.patch ) -S=${WORKDIR}/${P/_/-} - src_prepare() { default @@ -49,8 +52,8 @@ src_configure() { # By default it uses static linking. Avoid that, bug 252940 econf \ $(use_enable debug) \ - $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \ - $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \ + $(use_with pcapnav pcapnav-config "${BROOT}"/usr/bin/pcapnav-config) \ + $(use_with tcpdump tcpdump "${ESYSROOT}"/usr/sbin/tcpdump) \ --disable-local-libopts \ --enable-dynamic-link \ --enable-shared \ |