initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_NFTABLES
|
||||
bool "nftables"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
select BR2_PACKAGE_LIBMNL
|
||||
select BR2_PACKAGE_LIBNFTNL
|
||||
help
|
||||
nftables is the project that aims to replace the existing
|
||||
{ip,ip6,arp,eb}tables framework.
|
||||
Basically, this project provides a new packet filtering
|
||||
framework, a new userspace utility and also a compatibility
|
||||
layer for {ip,ip6}tables.
|
||||
|
||||
http://www.netfilter.org/projects/nftables/index.html
|
||||
|
||||
comment "nftables needs a toolchain w/ wchar, headers >= 3.12"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
@@ -0,0 +1,3 @@
|
||||
# From https://netfilter.org/projects/nftables/downloads.html
|
||||
sha256 58bf547daf967a2b88ecb4f425f126006ebde22711db806b25c1d6cf84fe45f4 nftables-1.0.0.tar.bz2
|
||||
sha256 c17bc4fa5b2434c6f283ffcb2312e5bf3c7cdf5787b79505f094d8de734ac53e COPYING
|
||||
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# nftables
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NFTABLES_VERSION = 1.0.0
|
||||
NFTABLES_SOURCE = nftables-$(NFTABLES_VERSION).tar.bz2
|
||||
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_READLINE),y)
|
||||
NFTABLES_DEPENDENCIES += readline
|
||||
NFTABLES_LIBS += -lncurses
|
||||
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_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
|
||||
NFTABLES_CONF_OPTS += --enable-python
|
||||
NFTABLES_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
|
||||
else
|
||||
NFTABLES_CONF_OPTS += --disable-python
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_LIBNFTNL_JSON),yy)
|
||||
NFTABLES_LIBS += -ljansson -lm
|
||||
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))
|
||||
Reference in New Issue
Block a user