summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-12-27 19:48:23 +0100
committerJeroen Roovers <jer@gentoo.org>2019-12-27 19:51:45 +0100
commitb23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0 (patch)
tree8d17c61deabb5919a66c3bf35fb878f27b6cf478 /net-firewall
parentdev-python/python-nbxmpp: Add python 3.8, remove python 2 (diff)
downloadgentoo-b23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0.tar.gz
gentoo-b23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0.tar.bz2
gentoo-b23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0.zip
net-firewall/ipt_netflow: Check for NF_NAT in kernel >=5.2
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild17
-rw-r--r--net-firewall/ipt_netflow/ipt_netflow-9999.ebuild17
2 files changed, 28 insertions, 6 deletions
diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
index 88d6cef84f3f..b8e3956550bb 100644
--- a/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
+++ b/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
@@ -31,12 +31,23 @@ PATCHES=(
)
pkg_setup() {
+ linux-info_pkg_setup
+
+ local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
+ use debug && CONFIG_CHECK+=" ~DEBUG_FS"
+ if use natevents; then
+ CONFIG_CHECK+=" NF_CONNTRACK_EVENTS"
+ if kernel_is lt 5 2; then
+ CONFIG_CHECK+=" NF_NAT_NEEDED"
+ else
+ CONFIG_CHECK+=" NF_NAT"
+ fi
+ fi
+
BUILD_TARGETS="all"
MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
IPT_LIB="/usr/$(get_libdir)/xtables"
- local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
- use debug && CONFIG_CHECK+=" ~DEBUG_FS"
- use natevents && CONFIG_CHECK+=" NF_CONNTRACK_EVENTS NF_NAT_NEEDED"
+
linux-mod_pkg_setup
}
diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
index 71ba1b74afbf..7414800f8c36 100644
--- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
+++ b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
@@ -31,12 +31,23 @@ PATCHES=(
)
pkg_setup() {
+ linux-info_pkg_setup
+
+ local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
+ use debug && CONFIG_CHECK+=" ~DEBUG_FS"
+ if use natevents; then
+ CONFIG_CHECK+=" NF_CONNTRACK_EVENTS"
+ if kernel_is lt 5 2; then
+ CONFIG_CHECK+=" NF_NAT_NEEDED"
+ else
+ CONFIG_CHECK+=" NF_NAT"
+ fi
+ fi
+
BUILD_TARGETS="all"
MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
IPT_LIB="/usr/$(get_libdir)/xtables"
- local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
- use debug && CONFIG_CHECK+=" ~DEBUG_FS"
- use natevents && CONFIG_CHECK+=" NF_CONNTRACK_EVENTS NF_NAT_NEEDED"
+
linux-mod_pkg_setup
}