Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.xz
  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_MIRROR_MD5SUM:=561d0e057e916289eaa1f1a688deb78d7de095b002c8bb0f478ce6e53ae220a4
  16. PKG_MAINTAINER:=Steven Barth <[email protected]>
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. CONFIGURE_ARGS += \
  21. --with-mini-gmp \
  22. --without-cli \
  23. define Package/nftables
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=Firewall
  27. TITLE:=nftables packet filtering userspace utility
  28. DEPENDS:=+kmod-nft-core +kmod-nft-nat +libnftnl
  29. URL:=http://netfilter.org/projects/nftables/
  30. endef
  31. define Package/nftables/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(CP) $(PKG_BUILD_DIR)/src/nft $(1)/usr/sbin/
  34. endef
  35. $(eval $(call BuildPackage,nftables))