Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2021 Jo-Philipp Wich <[email protected]>
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=firewall4
  6. PKG_RELEASE:=1
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall4.git
  9. PKG_SOURCE_DATE:=2023-11-03
  10. PKG_SOURCE_VERSION:=698a53354fd280aae097efe08803c0c9a10c14c2
  11. PKG_MIRROR_HASH:=466c43e46fc4b9c24053874b322b84556e24718c1149bd9a52b889062de0dc29
  12. PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
  13. PKG_LICENSE:=ISC
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/firewall4
  16. SECTION:=net
  17. CATEGORY:=Base system
  18. TITLE:=OpenWrt 4th gen firewall
  19. DEPENDS:= \
  20. +kmod-nft-core +kmod-nft-fib +kmod-nft-offload \
  21. +kmod-nft-nat \
  22. +nftables-json \
  23. +ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci
  24. EXTRA_DEPENDS:=ucode (>=2022.03.22)
  25. PROVIDES:=uci-firewall
  26. endef
  27. define Package/firewall4/description
  28. This package provides an nftables-based implementation of the UCI firewall
  29. sharing the same configuration format.
  30. endef
  31. define Package/firewall4/conffiles
  32. /etc/config/firewall
  33. /etc/nftables.d/
  34. endef
  35. define Package/firewall4/install
  36. $(CP) -a $(PKG_BUILD_DIR)/root/* $(1)/
  37. endef
  38. define Build/Compile
  39. endef
  40. $(eval $(call BuildPackage,firewall4))