1################################################################################ 2# 3# nftables 4# 5################################################################################ 6 7NFTABLES_VERSION = 1.0.8 8NFTABLES_SOURCE = nftables-$(NFTABLES_VERSION).tar.xz 9NFTABLES_SITE = https://www.netfilter.org/projects/nftables/files 10NFTABLES_DEPENDENCIES = libmnl libnftnl host-pkgconf $(TARGET_NLS_DEPENDENCIES) 11NFTABLES_LICENSE = GPL-2.0 12NFTABLES_LICENSE_FILES = COPYING 13NFTABLES_INSTALL_STAGING = YES 14NFTABLES_SELINUX_MODULES = iptables 15 16# Python bindings are handled by package nftables-python 17NFTABLES_CONF_OPTS = \ 18 --disable-debug \ 19 --disable-man-doc \ 20 --disable-pdf-doc \ 21 --disable-python 22 23ifeq ($(BR2_PACKAGE_GMP),y) 24NFTABLES_DEPENDENCIES += gmp 25NFTABLES_CONF_OPTS += --without-mini-gmp 26else 27NFTABLES_CONF_OPTS += --with-mini-gmp 28endif 29 30ifeq ($(BR2_PACKAGE_LIBEDIT),y) 31NFTABLES_CONF_OPTS += --with-cli=editline 32NFTABLES_DEPENDENCIES += libedit 33NFTABLES_LIBS += -lncurses 34else ifeq ($(BR2_PACKAGE_READLINE),y) 35NFTABLES_CONF_OPTS += --with-cli=readline 36NFTABLES_DEPENDENCIES += readline 37NFTABLES_LIBS += -lncurses 38else ifeq ($(BR2_PACKAGE_LINENOISE),y) 39NFTABLES_CONF_OPTS += --with-cli=linenoise 40NFTABLES_DEPENDENCIES += linenoise 41else 42NFTABLES_CONF_OPTS += --without-cli 43endif 44 45ifeq ($(BR2_PACKAGE_JANSSON),y) 46NFTABLES_DEPENDENCIES += jansson 47NFTABLES_CONF_OPTS += --with-json 48else 49NFTABLES_CONF_OPTS += --without-json 50endif 51 52NFTABLES_CONF_ENV = LIBS="$(NFTABLES_LIBS)" 53 54define NFTABLES_LINUX_CONFIG_FIXUPS 55 $(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER) 56 $(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES) 57 $(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES_INET) 58endef 59 60$(eval $(autotools-package)) 61 62# Legacy: we used to handle it in this .mk 63include package/nftables/nftables-python/nftables-python.mk 64