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

View file

@ -11,6 +11,7 @@
</maintainer> </maintainer>
<use> <use>
<flag name="natevents">Netflow NAT translation events (NEL) support</flag> <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> <flag name="dot1q">Enable tagged VLAN support</flag>
</use> </use>
<upstream> <upstream>