Makefile 907 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) 2015-2016 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.6
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/nftables
  12. PKG_MD5SUM:=fd320e35fdf14b7be795492189b13dae
  13. PKG_LICENSE:=GPL-2.0
  14. include $(INCLUDE_DIR)/package.mk
  15. CONFIGURE_ARGS += \
  16. --with-mini-gmp \
  17. --without-cli \
  18. define Package/nftables
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Firewall
  22. TITLE:=nftables packet filtering userspace utility
  23. DEPENDS:=+kmod-nft-core +kmod-nft-nat +libnftnl +libmnl
  24. URL:=http://netfilter.org/projects/nftables/
  25. endef
  26. define Package/nftables/install
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(CP) $(PKG_BUILD_DIR)/src/nft $(1)/usr/sbin/
  29. endef
  30. $(eval $(call BuildPackage,nftables))