[Buildroot] [PATCH 1/1] package/keepalived: add optional nftables dependency
Fabrice Fontaine
fontaine.fabrice at gmail.com
Sun Mar 24 12:00:16 UTC 2019
nftables support has been added since version 2.0.11 and
https://github.com/acassen/keepalived/commit/aa12175ea638912a7789e832634d7ccf80fdf48d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/keepalived/keepalived.mk | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/keepalived/keepalived.mk b/package/keepalived/keepalived.mk
index fcdb43ce13..d93f8be057 100644
--- a/package/keepalived/keepalived.mk
+++ b/package/keepalived/keepalived.mk
@@ -46,4 +46,14 @@ else
KEEPALIVED_CONF_OPTS += --disable-libiptc
endif
+ifeq ($(BR2_PACKAGE_IPTABLES_NFTABLES),y)
+KEEPALIVED_DEPENDENCIES += iptables
+KEEPALIVED_CONF_OPTS += --enable-nftables
+else ifeq ($(BR2_PACKAGE_NFTABLES),y)
+KEEPALIVED_DEPENDENCIES += nftables
+KEEPALIVED_CONF_OPTS += --enable-nftables
+else
+KEEPALIVED_CONF_OPTS += --disable-nftables
+endif
+
$(eval $(autotools-package))
--
2.20.1
More information about the buildroot
mailing list