From: Rosy Song Date: Tue, 31 Jul 2018 09:09:34 +0000 (+0800) Subject: nftables: allow to build with json support X-Git-Tag: v19.07.0-rc1~2940 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f30583c41d37c39d3ca063b31871a3c207734b1f;p=oweals%2Fopenwrt.git nftables: allow to build with json support Signed-off-by: Rosy Song --- diff --git a/package/network/utils/nftables/Makefile b/package/network/utils/nftables/Makefile index f3bdc5caee..d1e995116d 100644 --- a/package/network/utils/nftables/Makefile +++ b/package/network/utils/nftables/Makefile @@ -34,10 +34,21 @@ define Package/nftables CATEGORY:=Network SUBMENU:=Firewall TITLE:=nftables packet filtering userspace utility - DEPENDS:=+kmod-nft-core +libnftnl + DEPENDS:=+kmod-nft-core +libnftnl +PACKAGE_NFT_WITH_JSON:jansson URL:=http://netfilter.org/projects/nftables/ endef +define Package/nftables/config + config PACKAGE_NFT_WITH_JSON + bool "Build nftables with json support" + depends on PACKAGE_nftables + default n +endef + +ifeq ($(CONFIG_PACKAGE_NFT_WITH_JSON),y) +CONFIGURE_ARGS += --with-json +endif + define Package/nftables/install $(INSTALL_DIR) $(1)/usr/sbin $(CP) $(PKG_INSTALL_DIR)/usr/sbin/nft $(1)/usr/sbin/