d1b8e723fd
Other changes: - Switch to tar.xz as the package is not distributed as a .bz2 any longer. - Update the sha256sum of the license file, as it has been updated to include the following text: "Original author of nftables distributed the code under the terms of the GPL version 2 *only*. New code though is moving to GPL version 2 or any later which is the preferred license for this project these days." The author has also changed from Patrick McHardy <kaber@trash.net> to Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# nftables
|
|
#
|
|
################################################################################
|
|
|
|
NFTABLES_VERSION = 1.0.7
|
|
NFTABLES_SOURCE = nftables-$(NFTABLES_VERSION).tar.xz
|
|
NFTABLES_SITE = https://www.netfilter.org/projects/nftables/files
|
|
NFTABLES_DEPENDENCIES = libmnl libnftnl host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
|
NFTABLES_LICENSE = GPL-2.0
|
|
NFTABLES_LICENSE_FILES = COPYING
|
|
NFTABLES_CONF_OPTS = --disable-debug --disable-man-doc --disable-pdf-doc
|
|
NFTABLES_SELINUX_MODULES = iptables
|
|
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
|
NFTABLES_DEPENDENCIES += gmp
|
|
NFTABLES_CONF_OPTS += --without-mini-gmp
|
|
else
|
|
NFTABLES_CONF_OPTS += --with-mini-gmp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
|
NFTABLES_CONF_OPTS += --with-cli=editline
|
|
NFTABLES_DEPENDENCIES += libedit
|
|
NFTABLES_LIBS += -lncurses
|
|
else ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
NFTABLES_CONF_OPTS += --with-cli=readline
|
|
NFTABLES_DEPENDENCIES += readline
|
|
NFTABLES_LIBS += -lncurses
|
|
else ifeq ($(BR2_PACKAGE_LINENOISE),y)
|
|
NFTABLES_CONF_OPTS += --with-cli=linenoise
|
|
NFTABLES_DEPENDENCIES += linenoise
|
|
else
|
|
NFTABLES_CONF_OPTS += --without-cli
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANSSON),y)
|
|
NFTABLES_DEPENDENCIES += jansson
|
|
NFTABLES_CONF_OPTS += --with-json
|
|
else
|
|
NFTABLES_CONF_OPTS += --without-json
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
NFTABLES_CONF_OPTS += --enable-python
|
|
NFTABLES_DEPENDENCIES += python3
|
|
else
|
|
NFTABLES_CONF_OPTS += --disable-python
|
|
endif
|
|
|
|
NFTABLES_CONF_ENV = LIBS="$(NFTABLES_LIBS)"
|
|
|
|
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
|
|
|
|
$(eval $(autotools-package))
|