OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # Copyright (C) 2015 OpenWrt.org |
2 | # |
||
3 | # This is free software, licensed under the GNU General Public License v2. |
||
4 | # See /LICENSE for more information. |
||
5 | # |
||
6 | |||
7 | include $(TOPDIR)/rules.mk |
||
8 | |||
9 | PKG_NAME:=nftables |
||
10 | PKG_VERSION:=0.9.0 |
||
11 | PKG_RELEASE:=1 |
||
12 | |||
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> |
||
17 | PKG_LICENSE:=GPL-2.0 |
||
18 | |||
19 | PKG_FIXUP:=autoreconf |
||
20 | PKG_INSTALL:=1 |
||
21 | |||
22 | include $(INCLUDE_DIR)/package.mk |
||
23 | |||
24 | DISABLE_NLS:= |
||
25 | |||
26 | CONFIGURE_ARGS += \ |
||
27 | --disable-debug \ |
||
28 | --disable-man-doc \ |
||
29 | --with-mini-gmp \ |
||
30 | --without-cli \ |
||
31 | |||
32 | define Package/nftables |
||
33 | SECTION:=net |
||
34 | CATEGORY:=Network |
||
35 | SUBMENU:=Firewall |
||
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/ |
||
39 | endef |
||
40 | |||
41 | define Package/nftables/config |
||
42 | config PACKAGE_NFT_WITH_JSON |
||
43 | bool "Build nftables with json support" |
||
44 | depends on PACKAGE_nftables |
||
45 | default n |
||
46 | endef |
||
47 | |||
48 | ifeq ($(CONFIG_PACKAGE_NFT_WITH_JSON),y) |
||
49 | CONFIGURE_ARGS += --with-json |
||
50 | endif |
||
51 | |||
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/ |
||
57 | endef |
||
58 | |||
59 | $(eval $(call BuildPackage,nftables)) |