Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=nftables
  8. PKG_VERSION:=0.4+2015-04-09
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_SOURCE_URL:=git://git.netfilter.org/nftables
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_VERSION:=3ed296118a065caff5600e60d4f7ef18e137f9a0
  15. PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. CONFIGURE_ARGS += \
  20. --with-mini-gmp \
  21. --without-cli \
  22. define Package/nftables
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Firewall
  26. TITLE:=nftables packet filtering userspace utility
  27. DEPENDS:=+kmod-nft-core +kmod-nft-nat +libnftnl
  28. URL:=http://netfilter.org/projects/nftables/
  29. endef
  30. define Package/nftables/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(CP) $(PKG_BUILD_DIR)/src/nft $(1)/usr/sbin/
  33. endef
  34. $(eval $(call BuildPackage,nftables))