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