commit:     1865f8c4b92381c1407fdb97ad3a92b74ea05862
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  9 13:32:35 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Jan  9 13:39:04 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1865f8c4

net-libs/libpcap: Add USE=yydebug

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-libs/libpcap/libpcap-1.9.1-r1.ebuild | 3 ++-
 net-libs/libpcap/libpcap-9999.ebuild     | 8 +++++---
 net-libs/libpcap/metadata.xml            | 1 +
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/net-libs/libpcap/libpcap-1.9.1-r1.ebuild 
b/net-libs/libpcap/libpcap-1.9.1-r1.ebuild
index bf2ab94c139..704e1bbe519 100644
--- a/net-libs/libpcap/libpcap-1.9.1-r1.ebuild
+++ b/net-libs/libpcap/libpcap-1.9.1-r1.ebuild
@@ -16,7 +16,7 @@ SRC_URI="
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~x86-solaris"
-IUSE="bluetooth dbus netlink -remote static-libs usb"
+IUSE="bluetooth dbus netlink -remote static-libs usb -yydebug"
 
 RDEPEND="
        bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
@@ -52,6 +52,7 @@ multilib_src_configure() {
                $(use_enable dbus) \
                $(use_enable remote) \
                $(use_enable usb) \
+               $(use_enable yydebug) \
                $(use_with netlink libnl) \
                --enable-ipv6
 }

diff --git a/net-libs/libpcap/libpcap-9999.ebuild 
b/net-libs/libpcap/libpcap-9999.ebuild
index 1a75013c5b7..a6571d9395c 100644
--- a/net-libs/libpcap/libpcap-9999.ebuild
+++ b/net-libs/libpcap/libpcap-9999.ebuild
@@ -13,7 +13,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="bluetooth dbus netlink -remote static-libs usb"
+IUSE="bluetooth dbus netlink -remote static-libs usb -yydebug"
 KEYWORDS=""
 
 RDEPEND="
@@ -30,7 +30,7 @@ DEPEND="
 "
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.9.0-pcap-config-includedir.patch
+       "${FILESDIR}"/${PN}-1.9.1-pcap-config.patch
        "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
 )
 
@@ -47,7 +47,9 @@ multilib_src_configure() {
                $(use_enable dbus) \
                $(use_enable remote) \
                $(use_enable usb) \
-               $(use_with netlink libnl)
+               $(use_enable yydebug) \
+               $(use_with netlink libnl) \
+               --enable-ipv6
 }
 
 multilib_src_compile() {

diff --git a/net-libs/libpcap/metadata.xml b/net-libs/libpcap/metadata.xml
index 54d027060e7..6fb2c6c97ae 100644
--- a/net-libs/libpcap/metadata.xml
+++ b/net-libs/libpcap/metadata.xml
@@ -8,6 +8,7 @@
 <use>
 <flag name="netlink">Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces 
in monitor mode.</flag>
 <flag name="remote">Enable remote packet capture which may expose 
libpcap-based applications to attacks by malicious remote capture 
servers!</flag>
+<flag name="yydebug">Enable parser debugging code</flag>
 </use>
 <upstream>
 <remote-id type="cpe">cpe:/a:tcpdump:libpcap</remote-id>

Reply via email to