Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipt_netflow/
Date: Fri, 27 Dec 2019 18:52:00
Message-Id: 1577472705.b23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0.jer@gentoo
1 commit: b23e2cd1aefb1b2ff49da3d12c1fb96f2cf361c0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 27 18:48:23 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 27 18:51:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b23e2cd1
7
8 net-firewall/ipt_netflow: Check for NF_NAT in kernel >=5.2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild | 17 ++++++++++++++---
14 net-firewall/ipt_netflow/ipt_netflow-9999.ebuild | 17 ++++++++++++++---
15 2 files changed, 28 insertions(+), 6 deletions(-)
16
17 diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
18 index 88d6cef84f3..b8e3956550b 100644
19 --- a/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
20 +++ b/net-firewall/ipt_netflow/ipt_netflow-2.4.ebuild
21 @@ -31,12 +31,23 @@ PATCHES=(
22 )
23
24 pkg_setup() {
25 + linux-info_pkg_setup
26 +
27 + local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
28 + use debug && CONFIG_CHECK+=" ~DEBUG_FS"
29 + if use natevents; then
30 + CONFIG_CHECK+=" NF_CONNTRACK_EVENTS"
31 + if kernel_is lt 5 2; then
32 + CONFIG_CHECK+=" NF_NAT_NEEDED"
33 + else
34 + CONFIG_CHECK+=" NF_NAT"
35 + fi
36 + fi
37 +
38 BUILD_TARGETS="all"
39 MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
40 IPT_LIB="/usr/$(get_libdir)/xtables"
41 - local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
42 - use debug && CONFIG_CHECK+=" ~DEBUG_FS"
43 - use natevents && CONFIG_CHECK+=" NF_CONNTRACK_EVENTS NF_NAT_NEEDED"
44 +
45 linux-mod_pkg_setup
46 }
47
48
49 diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
50 index 71ba1b74afb..7414800f8c3 100644
51 --- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
52 +++ b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
53 @@ -31,12 +31,23 @@ PATCHES=(
54 )
55
56 pkg_setup() {
57 + linux-info_pkg_setup
58 +
59 + local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
60 + use debug && CONFIG_CHECK+=" ~DEBUG_FS"
61 + if use natevents; then
62 + CONFIG_CHECK+=" NF_CONNTRACK_EVENTS"
63 + if kernel_is lt 5 2; then
64 + CONFIG_CHECK+=" NF_NAT_NEEDED"
65 + else
66 + CONFIG_CHECK+=" NF_NAT"
67 + fi
68 + fi
69 +
70 BUILD_TARGETS="all"
71 MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
72 IPT_LIB="/usr/$(get_libdir)/xtables"
73 - local CONFIG_CHECK="~IP_NF_IPTABLES VLAN_8021Q"
74 - use debug && CONFIG_CHECK+=" ~DEBUG_FS"
75 - use natevents && CONFIG_CHECK+=" NF_CONNTRACK_EVENTS NF_NAT_NEEDED"
76 +
77 linux-mod_pkg_setup
78 }