1 # Copyright (C) 2015 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_SOURCE_URL
:=https
://netfilter.org
/projects
/$(PKG_NAME
)/files
15 PKG_HASH
:=5cb66180143e6bfc774f4eb316206d40ac1cb6df269a90882404cbf7165513f5
16 PKG_MAINTAINER
:=Steven Barth
<steven@midlink.org
>
22 include $(INCLUDE_DIR
)/package.mk
33 define Package
/nftables
37 TITLE
:=nftables packet filtering userspace utility
38 DEPENDS
:=+kmod-nft-core
+libnftnl
+PACKAGE_NFT_WITH_JSON
:jansson
39 URL
:=http
://netfilter.org
/projects
/nftables
/
42 define Package
/nftables
/config
43 config PACKAGE_NFT_WITH_JSON
44 bool
"Build nftables with json support"
45 depends on PACKAGE_nftables
49 ifeq ($(CONFIG_PACKAGE_NFT_WITH_JSON
),y
)
50 CONFIGURE_ARGS
+= --with-json
53 define Package
/nftables
/install
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/nft
$(1)/usr
/sbin
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,nftables
))