summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-14 04:56:12 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-14 05:28:24 -0400
commitfcabf1041d7948601c083fdb87c3723a95eef65f (patch)
tree23fcae25f0fd6c5e921cae7a5f5374fc6a088ce1 /net-firewall
parentnet-firewall/iptables: drop old (diff)
downloadgentoo-fcabf1041d7948601c083fdb87c3723a95eef65f.tar.gz
gentoo-fcabf1041d7948601c083fdb87c3723a95eef65f.tar.bz2
gentoo-fcabf1041d7948601c083fdb87c3723a95eef65f.zip
net-firewall/iptables: add USE=conntrack #492744
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/iptables/iptables-1.4.21-r1.ebuild4
-rw-r--r--net-firewall/iptables/metadata.xml3
2 files changed, 5 insertions, 2 deletions
diff --git a/net-firewall/iptables/iptables-1.4.21-r1.ebuild b/net-firewall/iptables/iptables-1.4.21-r1.ebuild
index 9ce24cd4b92c..eddbed3a52a8 100644
--- a/net-firewall/iptables/iptables-1.4.21-r1.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r1.ebuild
@@ -16,9 +16,10 @@ 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="ipv6 netlink static-libs"
+IUSE="conntrack ipv6 netlink static-libs"
RDEPEND="
+ conntrack? ( net-libs/libnetfilter_conntrack )
netlink? ( net-libs/libnfnetlink )
"
DEPEND="${RDEPEND}
@@ -40,6 +41,7 @@ src_configure() {
sed -i \
-e "/nfnetlink=[01]/s:=[01]:=$(usex netlink 1 0):" \
+ -e "/nfconntrack=[01]/s:=[01]:=$(usex conntrack 1 0):" \
configure || die
econf \
diff --git a/net-firewall/iptables/metadata.xml b/net-firewall/iptables/metadata.xml
index ed96e3dd4e4e..2770855f89c1 100644
--- a/net-firewall/iptables/metadata.xml
+++ b/net-firewall/iptables/metadata.xml
@@ -3,7 +3,8 @@
<pkgmetadata>
<herd>base-system</herd>
<use>
- <flag name='netlink'>Build against libnfnetlink which enables the nfnl_osf util</flag>
+ <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>
</use>
<longdescription>
iptables is the userspace command line program used to set up, maintain, and