main/postmarketos-config-nftables: use versioned constraints in install_if (MR 3536)

Consistently use `install_if="$pkgname=$pkgver-r$pkgrel ...` everywhere,
this is recommended upstream.

See https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#install_if
This commit is contained in:
Alexey Minnekhanov 2022-10-16 08:15:59 +03:00
parent 1efe44bb36
commit 4144c7631f
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF

View file

@ -1,7 +1,7 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net> # Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-config-nftables pkgname=postmarketos-config-nftables
pkgver=0.12 pkgver=0.12
pkgrel=0 pkgrel=1
pkgdesc="nftables firewall configuration for postmarketOS" pkgdesc="nftables firewall configuration for postmarketOS"
url="https://gitlab.com/postmarketos" url="https://gitlab.com/postmarketos"
arch="noarch" arch="noarch"
@ -64,7 +64,7 @@ log() {
chromecast() { chromecast() {
depends="$pkgname $pkgname-mdns" depends="$pkgname $pkgname-mdns"
description="Enables networking for Chromium Chromecast" description="Enables networking for Chromium Chromecast"
install_if="$pkgname chromium" install_if="$pkgname=$pkgver-r$pkgrel chromium"
# meta package is empty # meta package is empty
mkdir -p "$pkgdir"-chromecast mkdir -p "$pkgdir"-chromecast
@ -73,7 +73,7 @@ chromecast() {
docker() { docker() {
depends="$pkgname" depends="$pkgname"
description="Enables networking for Docker" description="Enables networking for Docker"
install_if="$pkgname docker" install_if="$pkgname=$pkgver-r$pkgrel docker"
amove etc/nftables.d/51_docker.nft amove etc/nftables.d/51_docker.nft
} }
@ -96,7 +96,7 @@ moshserver() {
upnp_client() { upnp_client() {
depends="$pkgname" depends="$pkgname"
description="Enables networking for SSDP/UPnP client" description="Enables networking for SSDP/UPnP client"
install_if="$pkgname libupnp" install_if="$pkgname=$pkgver-r$pkgrel libupnp"
amove etc/nftables.d/50_upnp_client.nft amove etc/nftables.d/50_upnp_client.nft
} }
@ -104,7 +104,7 @@ upnp_client() {
vlc_chromecast() { vlc_chromecast() {
depends="$pkgname $pkgname-chromecast" depends="$pkgname $pkgname-chromecast"
description="Enables networking for VLC Chromecast casting" description="Enables networking for VLC Chromecast casting"
install_if="$pkgname vlc" install_if="$pkgname=$pkgver-r$pkgrel vlc"
amove etc/nftables.d/50_vlc_chromecast.nft amove etc/nftables.d/50_vlc_chromecast.nft
} }
@ -119,7 +119,7 @@ vncserver() {
networkmanager() { networkmanager() {
depends="$pkgname" depends="$pkgname"
description="Enables nftables backend in NetworkManager" description="Enables nftables backend in NetworkManager"
install_if="$pkgname networkmanager" install_if="$pkgname=$pkgver-r$pkgrel networkmanager"
install -Dm644 "$srcdir"/networkmanager.conf \ install -Dm644 "$srcdir"/networkmanager.conf \
"$subpkgdir"/etc/NetworkManager/conf.d/nftables.conf "$subpkgdir"/etc/NetworkManager/conf.d/nftables.conf