|
@@ -10,9 +10,15 @@ NFTABLES_SITE = https://www.netfilter.org/projects/nftables/files
|
|
NFTABLES_DEPENDENCIES = libmnl libnftnl host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
|
NFTABLES_DEPENDENCIES = libmnl libnftnl host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
|
NFTABLES_LICENSE = GPL-2.0
|
|
NFTABLES_LICENSE = GPL-2.0
|
|
NFTABLES_LICENSE_FILES = COPYING
|
|
NFTABLES_LICENSE_FILES = COPYING
|
|
-NFTABLES_CONF_OPTS = --disable-debug --disable-man-doc --disable-pdf-doc
|
|
|
|
NFTABLES_SELINUX_MODULES = iptables
|
|
NFTABLES_SELINUX_MODULES = iptables
|
|
|
|
|
|
|
|
+# Python bindings are handled by package nftables-python
|
|
|
|
+NFTABLES_CONF_OPTS = \
|
|
|
|
+ --disable-debug \
|
|
|
|
+ --disable-man-doc \
|
|
|
|
+ --disable-pdf-doc \
|
|
|
|
+ --disable-python
|
|
|
|
+
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
|
NFTABLES_DEPENDENCIES += gmp
|
|
NFTABLES_DEPENDENCIES += gmp
|
|
NFTABLES_CONF_OPTS += --without-mini-gmp
|
|
NFTABLES_CONF_OPTS += --without-mini-gmp
|
|
@@ -42,13 +48,6 @@ else
|
|
NFTABLES_CONF_OPTS += --without-json
|
|
NFTABLES_CONF_OPTS += --without-json
|
|
endif
|
|
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)"
|
|
NFTABLES_CONF_ENV = LIBS="$(NFTABLES_LIBS)"
|
|
|
|
|
|
define NFTABLES_LINUX_CONFIG_FIXUPS
|
|
define NFTABLES_LINUX_CONFIG_FIXUPS
|
|
@@ -58,3 +57,6 @@ define NFTABLES_LINUX_CONFIG_FIXUPS
|
|
endef
|
|
endef
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(autotools-package))
|
|
|
|
+
|
|
|
|
+# Legacy: we used to handle it in this .mk
|
|
|
|
+include package/nftables/nftables-python/nftables-python.mk
|