commit:     9df4894edb868c80d3e867d5c36af980989aaf39
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  2 00:50:33 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 16:10:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9df4894e

net-analyzer/tcpreplay: EAPI 7, flag-o-matic--

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild  | 29 +++++++++++++-----------
 net-analyzer/tcpreplay/tcpreplay-999999.ebuild | 31 ++++++++++++++------------
 2 files changed, 33 insertions(+), 27 deletions(-)

diff --git a/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild 
b/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild
index a5ce8388372..3df344d4160 100644
--- a/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild
+++ b/net-analyzer/tcpreplay/tcpreplay-4.3.3.ebuild
@@ -1,36 +1,39 @@
-# Copyright 1999-2020 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
 
-DESCRIPTION="utilities for editing and replaying previously captured network 
traffic"
+inherit autotools
+
+DESCRIPTION="Utilities for editing and replaying previously captured network 
traffic"
 HOMEPAGE="http://tcpreplay.appneta.com/ https://github.com/appneta/tcpreplay";
-LICENSE="BSD GPL-3"
 SRC_URI="https://github.com/appneta/${PN}/releases/download/v${PV}/${P}.tar.xz";
+S="${WORKDIR}"/${P/_/-}
 
+LICENSE="BSD GPL-3"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~sparc x86"
 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
 
@@ -50,8 +53,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) \
                --enable-dynamic-link \
                --enable-local-libopts \
                --enable-shared \

diff --git a/net-analyzer/tcpreplay/tcpreplay-999999.ebuild 
b/net-analyzer/tcpreplay/tcpreplay-999999.ebuild
index 9e2776949df..52407c59ac7 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 \

Reply via email to