diff --git a/main/postmarketos-config-nftables/APKBUILD b/main/postmarketos-config-nftables/APKBUILD index b85532791..87cb7b272 100644 --- a/main/postmarketos-config-nftables/APKBUILD +++ b/main/postmarketos-config-nftables/APKBUILD @@ -1,12 +1,11 @@ # Maintainer: Clayton Craft pkgname=postmarketos-config-nftables pkgver=0.16 -pkgrel=0 +pkgrel=1 pkgdesc="nftables firewall configuration for postmarketOS" url="https://gitlab.com/postmarketos" arch="noarch" license="MIT" -depends="nftables-openrc" subpackages=" $pkgname-openusb:openusb $pkgname-log:log @@ -19,6 +18,7 @@ subpackages=" $pkgname-vlc-chromecast:vlc_chromecast $pkgname-vncserver:vncserver $pkgname-wifi-display:wifi_display + $pkgname-openrc " source=" rules/00_log_all.nft @@ -39,7 +39,6 @@ source=" networkmanager.conf " options="!check" # No tests -install="$pkgname.post-install" package() { cd rules @@ -48,6 +47,14 @@ package() { done } +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install" + depends="nftables-openrc" + + mkdir -p "$subpkgdir" +} + openusb() { depends="$pkgname" description="Adds a rule to accept all incoming connections to the usb* interface" diff --git a/main/postmarketos-config-nftables/postmarketos-config-nftables.post-install b/main/postmarketos-config-nftables/postmarketos-config-nftables-openrc.post-install similarity index 100% rename from main/postmarketos-config-nftables/postmarketos-config-nftables.post-install rename to main/postmarketos-config-nftables/postmarketos-config-nftables-openrc.post-install