2014-04-17 15:12:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nftables
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-11-04 08:38:22 +01:00
|
|
|
NFTABLES_VERSION = 0.9.2
|
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
|
2014-12-07 00:21:53 +01:00
|
|
|
NFTABLES_DEPENDENCIES = gmp libmnl libnftnl host-bison host-flex \
|
2017-07-03 23:07:17 +02:00
|
|
|
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
|
2018-03-06 07:36:53 +01:00
|
|
|
NFTABLES_CONF_OPTS = --disable-man-doc --disable-pdf-doc
|
2014-04-17 15:12:44 +02:00
|
|
|
|
2014-12-07 00:21:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2014-04-17 15:12:44 +02:00
|
|
|
$(eval $(autotools-package))
|