net-libs/libpcap: Add USE=yydebug
authorJeroen Roovers <jer@gentoo.org>
Thu, 9 Jan 2020 13:32:35 +0000 (14:32 +0100)
committerJeroen Roovers <jer@gentoo.org>
Thu, 9 Jan 2020 13:39:04 +0000 (14:39 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-libs/libpcap/libpcap-1.9.1-r1.ebuild
net-libs/libpcap/libpcap-9999.ebuild
net-libs/libpcap/metadata.xml

index bf2ab94c1396b139f2aba97903298945a0640eca..704e1bbe519ab8cbfd7707fe460df734fdf08416 100644 (file)
@@ -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
 }
index 1a75013c5b772eaf4bcf85ae0a7200e7d1fe1575..a6571d9395c0ff79b452c198c8f0604644780d40 100644 (file)
@@ -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() {
index 54d027060e7b181e60b5e7960b65270864c0ff3a..6fb2c6c97aedcdb64c1f6299cf54ce04fecf8b66 100644 (file)
@@ -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>