keepalived: fix libip6tc dependency
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 6 Apr 2022 09:39:28 +0000 (11:39 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 8 Apr 2022 06:55:28 +0000 (08:55 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit eed4277d5cc923c41ae2c4e182fc7449bb44b090)

net/keepalived/Config.in
net/keepalived/Makefile

index 862398db12142905bf9b3013c73ec622ba2cd113..33321aa8762820a661c84c236e9b63da070aec87 100644 (file)
@@ -66,11 +66,21 @@ config KEEPALIVED_IPTABLES
        depends on KEEPALIVED_VRRP
        bool
        default y
+       select KEEPALIVED_IP6TABLES
        prompt "Enable iptables for VIP filtering"
        help
                Builds support for using iptables/ipsets for filtering packets
                to VIPs
 
+config KEEPALIVED_IP6TABLES
+       depends on KEEPALIVED_VRRP && KEEPALIVED_IPTABLES && IPV6
+       bool
+       default y
+       prompt "Enable ip6tables for VIP filtering"
+       help
+               Builds support for using ip6tables/ipsets for filtering packets
+               to VIPs
+
 config KEEPALIVED_NFTABLES
        depends on KEEPALIVED_VRRP
        bool
index ce1afd233a442f456159217c0ee3dfc29cab6a13..3665df8346e31239e9d0e9bb016ec4a9b494b127 100644 (file)
@@ -64,7 +64,7 @@ define Package/keepalived
     +KEEPALIVED_VRRP:libnfnetlink \
     +KEEPALIVED_SHA1:libopenssl \
     +KEEPALIVED_IPTABLES:libip4tc \
-    +(KEEPALIVED_IPTABLES&&IPV6):libip6tc \
+    +KEEPALIVED_IP6TABLES:libip6tc \
     +KEEPALIVED_IPTABLES:libxtables \
     +KEEPALIVED_IPTABLES:libipset \
     +(KEEPALIVED_SNMP_VRRP||KEEPALIVED_SNMP_CHECKER||KEEPALIVED_SNMP_RFC2||KEEPALIVED_SNMP_RFC3):libnetsnmp \