Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2021 Jo-Philipp Wich <[email protected]>
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=firewall4
  6. PKG_RELEASE:=2
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall4.git
  9. PKG_SOURCE_DATE:=2025-03-17
  10. PKG_SOURCE_VERSION:=b6e5157527d361f99ad52eaa6da273cb0f2dfd59
  11. PKG_MIRROR_HASH:=fb563b493411922a8fbddf6a5a6766cffa47f87621e056b8dcf38309091835eb
  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. DEFAULT_VARIANT:=1
  27. endef
  28. define Package/firewall4/description
  29. This package provides an nftables-based implementation of the UCI firewall
  30. sharing the same configuration format.
  31. endef
  32. define Package/firewall4/conffiles
  33. /etc/config/firewall
  34. /etc/nftables.d/
  35. endef
  36. define Package/firewall4/install
  37. $(CP) -a $(PKG_BUILD_DIR)/root/* $(1)/
  38. endef
  39. define Build/Compile
  40. endef
  41. $(eval $(call BuildPackage,firewall4))