Fix more APKBUILD issues

This commit is contained in:
Joakim Hulthe
2026-04-23 14:46:00 +02:00
parent 81862a0b80
commit 4486d6a3c1
8 changed files with 21 additions and 21 deletions

View File

@@ -3,7 +3,7 @@
pkgname=mullvad-vpn-daemon pkgname=mullvad-vpn-daemon
pkgver=2026.2_beta1 pkgver=2026.2_beta1
pkgrel=1 pkgrel=1
pkgdesc="Mullvad VPN system service" pkgdesc="Mullvad VPN client (daemon and CLI)"
url="https://mullvad.net/" url="https://mullvad.net/"
arch="all" arch="all"
license="GPL-3-or-later" license="GPL-3-or-later"
@@ -37,9 +37,9 @@ subpackages="
$pkgname-suid $pkgname-suid
" "
source=" source="
https://github.com/mullvad/mullvadvpn-app/archive/refs/tags/2026.2-beta1.tar.gz https://github.com/mullvad/mullvadvpn-app/archive/refs/tags/${pkgver//_/-}.tar.gz
" "
builddir="$srcdir/mullvadvpn-app-2026.2-beta1/" builddir="$srcdir/mullvadvpn-app-${pkgver//_/-}/"
options="net suid" options="net suid"
_cargo_target_dir="${CARGO_TARGET_DIR:-$builddir/target}" _cargo_target_dir="${CARGO_TARGET_DIR:-$builddir/target}"
@@ -98,10 +98,10 @@ systemd() {
pkgdesc="systemd service files for Mullvad VPN" pkgdesc="systemd service files for Mullvad VPN"
depends="$pkgname=$pkgver-r$pkgrel" depends="$pkgname=$pkgver-r$pkgrel"
install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-daemon.service" \ install -m755 -D "$builddir/dist-assets/linux/mullvad-daemon.service" \
"$subpkgdir/usr/lib/systemd/system/mullvad-daemon.service" "$subpkgdir/usr/lib/systemd/system/mullvad-daemon.service"
install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-early-boot-blocking.service" \ install -m755 -D "$builddir/dist-assets/linux/mullvad-early-boot-blocking.service" \
"$subpkgdir/usr/lib/systemd/system/mullvad-early-boot-blocking.service" "$subpkgdir/usr/lib/systemd/system/mullvad-early-boot-blocking.service"
} }

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# Are we running systemd? # Are we running systemd?
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq offline >/dev/null 2>&1; then
# Does `mullvad-daemon.service` exist? # Does `mullvad-daemon.service` exist?
if systemctl list-unit-files mullvad-daemon.service &> /dev/null; then if systemctl list-unit-files mullvad-daemon.service >/dev/null 2>&1; then
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service" systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service" systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service"
systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service" systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service"

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# Are we running systemd? # Are we running systemd?
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq offline >/dev/null 2>&1; then
# Does `mullvad-daemon.service` exist? # Does `mullvad-daemon.service` exist?
if systemctl list-unit-files mullvad-daemon.service &> /dev/null; then if systemctl list-unit-files mullvad-daemon.service >/dev/null 2>&1; then
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service" systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service" systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service"
systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service" systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service"

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
rm -r --interactive=never /var/log/mullvad-vpn/ || \ rm -r /var/log/mullvad-vpn/ || \
echo "Failed to remove mullvad-vpn logs" echo "Failed to remove mullvad-vpn logs"
rm -r --interactive=never /var/cache/mullvad-vpn/ || \ rm -r /var/cache/mullvad-vpn/ || \
echo "Failed to remove mullvad-vpn cache" echo "Failed to remove mullvad-vpn cache"
rm -r --interactive=never /etc/mullvad-vpn || \ rm -r /etc/mullvad-vpn || \
echo "Failed to remove mullvad-vpn config" echo "Failed to remove mullvad-vpn config"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# Overwrite the cached relay list with the one embedded in the package. # Overwrite the cached relay list with the one embedded in the package.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# Overwrite the cached relay list with the one embedded in the package. # Overwrite the cached relay list with the one embedded in the package.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# the user might've disabled or stopped the service themselves already # the user might've disabled or stopped the service themselves already

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/bin/sh
set -eu set -eu
# Are we running systemd? # Are we running systemd?
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then if which systemctl >/dev/null 2>&1 && systemctl is-system-running | grep -vq offline >/dev/null 2>&1; then
# Is `mullvad-daemon.service` running? # Is `mullvad-daemon.service` running?
if systemctl status mullvad-daemon &> /dev/null; then if systemctl status mullvad-daemon >/dev/null 2>&1; then
mullvad-setup prepare-restart || true mullvad-setup prepare-restart || true
systemctl stop mullvad-daemon.service systemctl stop mullvad-daemon.service
systemctl disable mullvad-daemon.service systemctl disable mullvad-daemon.service