]> git.99rst.org Git - openwrt-packages.git/commitdiff
netavark: build with the nftables firewall driver
authorDaniel Golle <redacted>
Wed, 2 Sep 2026 13:24:53 +0000 (14:24 +0100)
committerDaniel Golle <redacted>
Sun, 13 Sep 2026 22:57:19 +0000 (23:57 +0100)
OpenWrt has no iptables front end, so default to nftables and depend on
nftables-json and kmod-nft-nat, which the driver's nat chains need.

Signed-off-by: Daniel Golle <redacted>
net/netavark/Makefile

index 87769169e092437287464765fa8be583ba4a9bb2..56b747d9274b6ed09cb0fb7d46c28ccaa9bf5c1a 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netavark
 PKG_VERSION:=1.17.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/containers/netavark/tar.gz/v$(PKG_VERSION)?
@@ -23,7 +23,7 @@ include ../../lang/rust/rust-package.mk
 define Package/netavark
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=$(RUST_ARCH_DEPENDS)
+  DEPENDS:=$(RUST_ARCH_DEPENDS) +nftables-json +kmod-nft-nat
   TITLE:=A container network stack
   URL:=https://github.com/containers/netavark
 endef
@@ -34,7 +34,8 @@ define Package/netavark/description
 endef
 
 CARGO_PKG_VARS += \
-       PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
+       PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc \
+       NETAVARK_DEFAULT_FW=nftables
 
 define Package/netavark/install
        $(INSTALL_DIR) $(1)/etc/config $(1)/usr/lib/podman
git clone https://git.99rst.org/PROJECT