net-firewall/ipt_netflow: dot1d (bridge) use flag

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-12-04 09:39:31 +01:00
parent 1ce3056cd0
commit 382efeadc2
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
2 changed files with 5 additions and 2 deletions

View File

@ -15,7 +15,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug dot1q natevents snmp"
IUSE="debug dot1d dot1q natevents snmp"
RDEPEND="
net-firewall/iptables:0=
@ -34,8 +34,9 @@ PATCHES=(
pkg_setup() {
linux-info_pkg_setup
local CONFIG_CHECK="BRIDGE_NETFILTER ~IP_NF_IPTABLES"
local CONFIG_CHECK="~IP_NF_IPTABLES"
use debug && CONFIG_CHECK+=" ~DEBUG_FS"
use dot1d && CONFIG_CHECK+=" BRIDGE_NETFILTER"
use dot1q && CONFIG_CHECK+=" VLAN_8021Q"
if use natevents; then
CONFIG_CHECK+=" NF_CONNTRACK_EVENTS"
@ -87,6 +88,7 @@ src_configure() {
--kdir="${KV_DIR}" \
--kver="${KV_FULL}" \
$(use debug && echo '--enable-debugfs') \
$(use dot1d && echo '--enable-physdev-override') \
$(use dot1q && echo '--enable-vlan') \
$(use natevents && echo '--enable-natevents') \
$(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent')

View File

@ -11,6 +11,7 @@
</maintainer>
<use>
<flag name="natevents">Netflow NAT translation events (NEL) support</flag>
<flag name="dot1d">Enable bridge support (to override interfaces)</flag>
<flag name="dot1q">Enable tagged VLAN support</flag>
</use>
<upstream>