net-firewall/iptables: add support for USE=pcap #512934
authorMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 09:11:46 +0000 (05:11 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 09:28:25 +0000 (05:28 -0400)
net-firewall/iptables/iptables-1.4.21-r2.ebuild
net-firewall/iptables/metadata.xml

index c05cbf66b7c122741bb2bd87b2e5c54170b0b2f9..eaba4222c29f93d5e83b98de0e04a2aafd5ff592 100644 (file)
@@ -16,11 +16,12 @@ SRC_URI="http://www.netfilter.org/projects/iptables/files/${P}.tar.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="conntrack ipv6 netlink static-libs"
+IUSE="conntrack ipv6 netlink pcap static-libs"
 
 RDEPEND="
        conntrack? ( net-libs/libnetfilter_conntrack )
        netlink? ( net-libs/libnfnetlink )
+       pcap? ( net-libs/libpcap )
 "
 DEPEND="${RDEPEND}
        virtual/os-headers
@@ -49,6 +50,7 @@ src_configure() {
                --libexecdir="${EPREFIX}/$(get_libdir)" \
                --enable-devel \
                --enable-shared \
+               $(use_enable pcap bpf-compiler) \
                $(use_enable static-libs static) \
                $(use_enable ipv6)
 }
index 2770855f89c155154802e73ea3bd3e8ab9796020..7979119512b0aeaf3006ee6437ad1b47899ae5b4 100644 (file)
@@ -5,6 +5,7 @@
 <use>
        <flag name='conntrack'>Build against <pkg>net-libs/libnetfilter_conntrack</pkg> when enables the connlabel matcher</flag>
        <flag name='netlink'>Build against libnfnetlink which enables the nfnl_osf util</flag>
+       <flag name='pcap'>Build against <pkg>net-libs/libpcap</pkg> which enables the nfbpf_compile util</flag>
 </use>
 <longdescription>
   iptables is the userspace command line program used to set up, maintain, and