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.8.1
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
  12. PKG_HASH:=8aead66cce70d68c70e4be917813abcbcf62811ee6de4c7761d0e34391772fc4
  13. PKG_MAINTAINER:=Steven Barth <[email protected]>
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_FIXUP:=autoreconf
  16. include $(INCLUDE_DIR)/package.mk
  17. DISABLE_NLS:=
  18. CONFIGURE_ARGS += \
  19. --with-mini-gmp \
  20. --without-cli \
  21. define Package/nftables
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Firewall
  25. TITLE:=nftables packet filtering userspace utility
  26. DEPENDS:=+kmod-nft-core +kmod-nft-nat +libnftnl
  27. URL:=http://netfilter.org/projects/nftables/
  28. endef
  29. define Package/nftables/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(CP) $(PKG_BUILD_DIR)/src/nft $(1)/usr/sbin/
  32. endef
  33. $(eval $(call BuildPackage,nftables))