c667e530dc3eac078de1b036ac966514504f0bc1
[openwrt/staging/stintel.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-01-06
13 PKG_SOURCE_VERSION:=b68cf67019452527d6a5a967b823a39dd1ba1edd
14 PKG_MIRROR_HASH:=8ae8bc8ce71e55adc6d89bd5f97c90834127c733d22e37182119d45eb77c0583
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 +kmod-nft-nat6 \
27 +nftables-json \
28 +ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci
29 PROVIDES:=uci-firewall
30 endef
31
32 define Package/firewall4/description
33 This package provides an nftables-based implementation of the UCI firewall
34 sharing the same configuration format.
35 endef
36
37 define Package/firewall4/conffiles
38 /etc/config/firewall
39 /etc/nftables.d/
40 endef
41
42 define Package/firewall4/install
43 $(CP) -a $(PKG_BUILD_DIR)/root/* $(1)/
44 endef
45
46 define Build/Compile
47 endef
48
49 $(eval $(call BuildPackage,firewall4))