Makefile 974 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=nftables
  8. PKG_VERSION:=0.3+2014-09-11
  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:=ae355b89e7b74c28de753bf2878a8e189030ad47
  15. PKG_MAINTAINER:=Steven Barth <[email protected]>
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  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 +libgmp
  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))