2014-04-17 15:12:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nftables
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-01-07 21:35:34 +01:00
|
|
|
NFTABLES_VERSION = 1.0.1
|
2014-04-17 15:12:44 +02:00
|
|
|
NFTABLES_SOURCE = nftables-$(NFTABLES_VERSION).tar.bz2
|
2018-11-13 21:00:09 +01:00
|
|
|
NFTABLES_SITE = https://www.netfilter.org/projects/nftables/files
|
2020-07-16 23:31:38 +02:00
|
|
|
NFTABLES_DEPENDENCIES = libmnl libnftnl host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:32 +02:00
|
|
|
NFTABLES_LICENSE = GPL-2.0
|
2014-04-17 15:12:44 +02:00
|
|
|
NFTABLES_LICENSE_FILES = COPYING
|
2021-10-15 00:00:11 +02:00
|
|
|
NFTABLES_CONF_OPTS = --disable-debug --disable-man-doc --disable-pdf-doc
|
2020-12-28 17:11:27 +01:00
|
|
|
NFTABLES_SELINUX_MODULES = iptables
|
2014-04-17 15:12:44 +02:00
|
|
|
|
2020-04-17 15:36:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
|
|
|
NFTABLES_DEPENDENCIES += gmp
|
|
|
|
NFTABLES_CONF_OPTS += --without-mini-gmp
|
|
|
|
else
|
|
|
|
NFTABLES_CONF_OPTS += --with-mini-gmp
|
|
|
|
endif
|
|
|
|
|
2014-12-07 00:21:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2022-01-07 21:35:34 +01:00
|
|
|
NFTABLES_CONF_OPTS += --with-cli=readline
|
2014-12-07 00:21:53 +01:00
|
|
|
NFTABLES_DEPENDENCIES += readline
|
|
|
|
NFTABLES_LIBS += -lncurses
|
|
|
|
else
|
2016-12-21 15:47:11 +01:00
|
|
|
NFTABLES_CONF_OPTS += --without-cli
|
2014-12-07 00:21:53 +01:00
|
|
|
endif
|
|
|
|
|
2018-11-13 21:00:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JANSSON),y)
|
|
|
|
NFTABLES_DEPENDENCIES += jansson
|
|
|
|
NFTABLES_CONF_OPTS += --with-json
|
|
|
|
else
|
|
|
|
NFTABLES_CONF_OPTS += --without-json
|
|
|
|
endif
|
|
|
|
|
2022-02-09 17:50:56 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
2020-03-31 01:46:12 +02:00
|
|
|
NFTABLES_CONF_OPTS += --enable-python
|
2022-02-09 17:50:56 +01:00
|
|
|
NFTABLES_DEPENDENCIES += python3
|
2020-03-31 01:46:12 +02:00
|
|
|
else
|
|
|
|
NFTABLES_CONF_OPTS += --disable-python
|
|
|
|
endif
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_LIBNFTNL_JSON),yy)
|
2014-11-26 20:49:02 +01:00
|
|
|
NFTABLES_LIBS += -ljansson -lm
|
|
|
|
endif
|
|
|
|
|
2018-03-06 07:36:53 +01:00
|
|
|
NFTABLES_CONF_ENV = LIBS="$(NFTABLES_LIBS)"
|
2014-05-06 12:59:45 +02:00
|
|
|
|
2020-05-08 01:14:53 +02:00
|
|
|
define NFTABLES_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES_INET)
|
|
|
|
endef
|
|
|
|
|
2014-04-17 15:12:44 +02:00
|
|
|
$(eval $(autotools-package))
|