2020-10-22 14:28:51 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2021 Jo-Philipp Wich <jo@mein.io>
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=firewall4
|
2021-10-25 23:27:26 +00:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2020-10-22 14:28:51 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall4.git
|
2022-10-14 15:32:28 +00:00
|
|
|
PKG_SOURCE_DATE:=2022-10-14
|
|
|
|
PKG_SOURCE_VERSION:=4fbf6d75a4a9e523d1848a28d8a3ea095e870195
|
|
|
|
PKG_MIRROR_HASH:=d8ffb01baf0c8412962aaaf504ad05387f3fef5bd709f7b7840ddd4e8311b4bb
|
2020-10-22 14:28:51 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
|
|
PKG_LICENSE:=ISC
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/firewall4
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=OpenWrt 4th gen firewall
|
2022-01-06 15:55:13 +00:00
|
|
|
DEPENDS:= \
|
2021-11-06 13:42:30 +00:00
|
|
|
+kmod-nft-core +kmod-nft-fib +kmod-nft-offload \
|
2022-08-07 12:06:14 +00:00
|
|
|
+kmod-nft-nat \
|
2021-12-03 15:45:28 +00:00
|
|
|
+nftables-json \
|
|
|
|
+ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci
|
2022-03-22 20:09:27 +00:00
|
|
|
EXTRA_DEPENDS:=ucode (>= 2022-03-22)
|
2021-10-18 22:42:02 +00:00
|
|
|
PROVIDES:=uci-firewall
|
2020-10-22 14:28:51 +00:00
|
|
|
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))
|