hostapd: remove erroneous $(space) redefinition
[openwrt/openwrt.git] / package / network / utils / nftables / Makefile
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.2
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:=5cb66180143e6bfc774f4eb316206d40ac1cb6df269a90882404cbf7165513f5
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 --disable-python \
32
33 define Package/nftables
34 SECTION:=net
35 CATEGORY:=Network
36 SUBMENU:=Firewall
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/
40 endef
41
42 define Package/nftables/config
43 config PACKAGE_NFT_WITH_JSON
44 bool "Build nftables with json support"
45 depends on PACKAGE_nftables
46 default n
47 endef
48
49 ifeq ($(CONFIG_PACKAGE_NFT_WITH_JSON),y)
50 CONFIGURE_ARGS += --with-json
51 endif
52
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/
58 endef
59
60 $(eval $(call BuildPackage,nftables))