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
:=ad8181b5fcb9ca572f444bed54018749588522ee97e4c21922648bb78d7e7e91
16 PKG_MAINTAINER
:=Steven Barth
<steven@midlink.org
>
22 include $(INCLUDE_DIR
)/package.mk
32 define Package
/nftables
36 TITLE
:=nftables packet filtering userspace utility
37 DEPENDS
:=+kmod-nft-core
+libnftnl
+PACKAGE_NFT_WITH_JSON
:jansson
38 URL
:=http
://netfilter.org
/projects
/nftables
/
41 define Package
/nftables
/config
42 config PACKAGE_NFT_WITH_JSON
43 bool
"Build nftables with json support"
44 depends on PACKAGE_nftables
48 ifeq ($(CONFIG_PACKAGE_NFT_WITH_JSON
),y
)
49 CONFIGURE_ARGS
+= --with-json
52 define Package
/nftables
/install
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/nft
$(1)/usr
/sbin
/
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
59 $(eval
$(call BuildPackage
,nftables
))