# # Copyright (C) 2021 Jo-Philipp Wich # include $(TOPDIR)/rules.mk PKG_NAME:=firewall4 PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall4.git PKG_SOURCE_DATE:=2022-02-07 PKG_SOURCE_VERSION:=b54f462272c3a68a1a733a9037dc7c109c54499d PKG_MIRROR_HASH:=dc9ffcc94e3a2d461da22f740d19112a9ea9fedbeb58051a7c79bdca3b145d2d PKG_MAINTAINER:=Jo-Philipp Wich PKG_LICENSE:=ISC include $(INCLUDE_DIR)/package.mk define Package/firewall4 SECTION:=net CATEGORY:=Base system TITLE:=OpenWrt 4th gen firewall DEPENDS:= \ +kmod-nft-core +kmod-nft-fib +kmod-nft-offload \ +kmod-nft-nat +kmod-nft-nat6 \ +nftables-json \ +ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci EXTRA_DEPENDS:=ucode (>= 2022-01-26) PROVIDES:=uci-firewall endef define Package/firewall4/description This package provides an nftables-based implementation of the UCI firewall sharing the same configuration format. endef define Package/firewall4/conffiles /etc/config/firewall /etc/nftables.d/ endef define Package/firewall4/install $(CP) -a $(PKG_BUILD_DIR)/root/* $(1)/ endef define Build/Compile endef $(eval $(call BuildPackage,firewall4))