54b209dce04bd7b504114c74d31602a458611591
[lede.git] / package / network / utils / nftables / Makefile
1 # Copyright (C) 2014 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.3+2014-12-11
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE_URL:=git://git.netfilter.org/nftables
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_VERSION:=81cffc1ee5098809167085bc997297a61d7476bd
18 PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
19 PKG_LICENSE:=GPL-2.0
20
21 PKG_FIXUP:=autoreconf
22
23 include $(INCLUDE_DIR)/package.mk
24
25 CONFIGURE_ARGS += \
26         --disable-debug \
27         --without-libgmp \
28         --without-cli \
29
30 TARGET_CFLAGS += -D_GNU_SOURCE
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 +kmod-nft-nat +libnftnl
38   URL:=http://netfilter.org/projects/nftables/
39 endef
40
41 define Package/nftables/install
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(CP) $(PKG_BUILD_DIR)/src/nft $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,nftables))