commit:     d1c4217456364c563e6ff53b47e642a81721e24c
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 07:54:35 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 07:55:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1c42174

net-analyzer/tcpdump: Do actually use that patch from January

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Closes: https://bugs.gentoo.org/731192
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/tcpdump/tcpdump-4.9.3-r1.ebuild | 19 +++++++++++--------
 net-analyzer/tcpdump/tcpdump-9999.ebuild     | 18 +++++++++---------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/net-analyzer/tcpdump/tcpdump-4.9.3-r1.ebuild 
b/net-analyzer/tcpdump/tcpdump-4.9.3-r1.ebuild
index 8374b080d4e..e23d799be4b 100644
--- a/net-analyzer/tcpdump/tcpdump-4.9.3-r1.ebuild
+++ b/net-analyzer/tcpdump/tcpdump-4.9.3-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit flag-o-matic toolchain-funcs user
+inherit autotools user
 
 DESCRIPTION="A Tool for network monitoring and data acquisition"
 HOMEPAGE="
@@ -20,8 +20,8 @@ IUSE="+drop-root libressl smi ssl samba suid test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
-       drop-root? ( sys-libs/libcap-ng )
        net-libs/libpcap
+       drop-root? ( sys-libs/libcap-ng )
        smi? ( net-libs/libsmi )
        ssl? (
                !libressl? ( >=dev-libs/openssl-0.9.6m:0= )
@@ -30,12 +30,14 @@ RDEPEND="
 "
 DEPEND="
        ${RDEPEND}
-       drop-root? ( virtual/pkgconfig )
        test? (
                >=net-libs/libpcap-1.9.1
                dev-lang/perl
        )
 "
+PATCHES=(
+       "${FILESDIR}"/${PN}-9999-libdir.patch
+)
 
 pkg_setup() {
        if use drop-root || use suid; then
@@ -44,14 +46,15 @@ pkg_setup() {
        fi
 }
 
-src_configure() {
-       if use drop-root; then
-               append-cppflags -DHAVE_CAP_NG_H
-               export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng )
-       fi
+src_prepare() {
+       default
+       eautoreconf
+}
 
+src_configure() {
        econf \
                $(use_enable samba smb) \
+               $(use_with drop-root cap-ng) \
                $(use_with drop-root chroot '') \
                $(use_with smi) \
                $(use_with ssl crypto "${ESYSROOT}/usr") \

diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild 
b/net-analyzer/tcpdump/tcpdump-9999.ebuild
index ac642f4be7b..b0c0a0baa59 100644
--- a/net-analyzer/tcpdump/tcpdump-9999.ebuild
+++ b/net-analyzer/tcpdump/tcpdump-9999.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit flag-o-matic toolchain-funcs user
+inherit autotools git-r3 user
 
 DESCRIPTION="A Tool for network monitoring and data acquisition"
 EGIT_REPO_URI="https://github.com/the-tcpdump-group/tcpdump";
@@ -32,9 +32,11 @@ RDEPEND="
                libressl? ( dev-libs/libressl:= )
        )
 "
+BDEPEND="
+       drop-root? ( virtual/pkgconfig )
+"
 DEPEND="
        ${RDEPEND}
-       drop-root? ( virtual/pkgconfig )
        test? (
                >=net-libs/libpcap-1.9.1
                dev-lang/perl
@@ -52,22 +54,20 @@ pkg_setup() {
 }
 
 src_prepare() {
-       default
-
        sed -i -e '/^eapon1/d;' tests/TESTLIST || die
 
        # bug 630394
        sed -i -e '/^nbns-valgrind/d' tests/TESTLIST || die
+
+       default
+
+       eautoreconf
 }
 
 src_configure() {
-       if use drop-root; then
-               append-cppflags -DHAVE_CAP_NG_H
-               export LIBS=$( $(tc-getPKG_CONFIG) --libs libcap-ng )
-       fi
-
        econf \
                $(use_enable samba smb) \
+               $(use_with drop-root cap-ng) \
                $(use_with drop-root chroot '') \
                $(use_with smi) \
                $(use_with ssl crypto "${ESYSROOT}/usr") \

Reply via email to