Compare commits
1 Commits
2026.1-dev
...
0b35be6284
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b35be6284 |
@@ -14,8 +14,7 @@ RUN apk update && apk add \
|
|||||||
libmnl libmnl-dev \
|
libmnl libmnl-dev \
|
||||||
libnftnl libnftnl-dev \
|
libnftnl libnftnl-dev \
|
||||||
dbus dbus-dev \
|
dbus dbus-dev \
|
||||||
fontconfig-dev \
|
fontconfig-dev
|
||||||
wayland-dev
|
|
||||||
|
|
||||||
# Set pkg-config to use static libraries
|
# Set pkg-config to use static libraries
|
||||||
ENV PKG_CONFIG_ALLOW_STATIC=1
|
ENV PKG_CONFIG_ALLOW_STATIC=1
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
# Maintainer: Joakim Hulthe <joakim@hulthe.net>
|
# Maintainer: Joakim Hulthe <joakim@hulthe.net>
|
||||||
pkgname=mullvad-vpn-daemon
|
pkgname=mullvad-vpn-daemon
|
||||||
pkgver=2026.1_git
|
pkgver=2026.1_git
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc="Mullvad VPN system service"
|
pkgdesc="Mullvad VPN system service"
|
||||||
url="https://mullvad.net/"
|
url="https://mullvad.net/"
|
||||||
arch="all"
|
arch="$(uname -m)"
|
||||||
license="GPL-3-or-later"
|
license="GPL-3-or-later"
|
||||||
depends="
|
depends="
|
||||||
dbus
|
dbus
|
||||||
@@ -24,7 +24,9 @@ makedepends="
|
|||||||
libnftnl-dev
|
libnftnl-dev
|
||||||
"
|
"
|
||||||
checkdepends=""
|
checkdepends=""
|
||||||
install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade $pkgname.pre-deinstall $pkgname.post-deinstall"
|
# TODO: pre/post(de)install-scripts
|
||||||
|
install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||||
|
#install=""
|
||||||
subpackages="$pkgname-systemd"
|
subpackages="$pkgname-systemd"
|
||||||
source=""
|
source=""
|
||||||
builddir="$srcdir/"
|
builddir="$srcdir/"
|
||||||
@@ -42,44 +44,38 @@ prepare() {
|
|||||||
build() {
|
build() {
|
||||||
cd "$startdir/mullvadvpn-app"
|
cd "$startdir/mullvadvpn-app"
|
||||||
|
|
||||||
# Specify `--target` so that the build artifacts ends up in target/<target>/release to
|
# * Force the `stable` toolchain since it's installed in the container.
|
||||||
# avoid clashes with host system when running in a container with a mounted target folder.
|
# We don't wan't to needlessly download rust while building.
|
||||||
|
# * Specify `--target` so that the final binary ends up in target/<target>/release.
|
||||||
cargo auditable build --release --locked \
|
cargo auditable build --release --locked \
|
||||||
--target "$CHOST" \
|
--target "$CHOST" \
|
||||||
-p mullvad-cli \
|
|
||||||
-p mullvad-daemon \
|
-p mullvad-daemon \
|
||||||
|
-p mullvad-cli \
|
||||||
-p mullvad-exclude \
|
-p mullvad-exclude \
|
||||||
-p mullvad-problem-report \
|
-p mullvad-problem-report
|
||||||
-p mullvad-setup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$startdir/mullvadvpn-app"
|
cd "$startdir/mullvadvpn-app"
|
||||||
cargo test --target "$CHOST" --frozen
|
cargo test --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad" \
|
|
||||||
"$pkgdir"/usr/bin/mullvad
|
|
||||||
|
|
||||||
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-daemon" \
|
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-daemon" \
|
||||||
"$pkgdir"/usr/bin/mullvad-daemon
|
"$pkgdir"/usr/bin/mullvad-daemon
|
||||||
|
|
||||||
# mullvad-exclude requires setuid
|
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad" \
|
||||||
install -m4755 -D "$_cargo_target_dir/$CHOST/release/mullvad-exclude" \
|
"$pkgdir"/usr/bin/mullvad
|
||||||
|
|
||||||
|
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-exclude" \
|
||||||
"$pkgdir"/usr/bin/mullvad-exclude
|
"$pkgdir"/usr/bin/mullvad-exclude
|
||||||
|
chmod u+s "$pkgdir"/usr/bin/mullvad-exclude
|
||||||
|
|
||||||
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-problem-report" \
|
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-problem-report" \
|
||||||
"$pkgdir"/usr/bin/mullvad-problem-report
|
"$pkgdir"/usr/bin/mullvad-problem-report
|
||||||
|
|
||||||
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-setup" \
|
|
||||||
"$pkgdir"/usr/bin/mullvad-setup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
systemd() {
|
systemd() {
|
||||||
install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-daemon.service" \
|
install -m755 -D "$startdir/mullvadvpn-app/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" \
|
|
||||||
"$subpkgdir"/usr/lib/systemd/system/mullvad-early-boot-blocking.service
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,39 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
rm -r --interactive=never /var/log/mullvad-vpn/ || \
|
function remove_logs_and_cache {
|
||||||
echo "Failed to remove mullvad-vpn logs"
|
rm -r --interactive=never /var/log/mullvad-vpn/ || \
|
||||||
rm -r --interactive=never /var/cache/mullvad-vpn/ || \
|
echo "Failed to remove mullvad-vpn logs"
|
||||||
echo "Failed to remove mullvad-vpn cache"
|
rm -r --interactive=never /var/cache/mullvad-vpn/ || \
|
||||||
rm -r --interactive=never /etc/mullvad-vpn || \
|
echo "Failed to remove mullvad-vpn cache"
|
||||||
echo "Failed to remove mullvad-vpn config"
|
}
|
||||||
|
|
||||||
|
function remove_config {
|
||||||
|
rm -r --interactive=never /etc/mullvad-vpn || \
|
||||||
|
echo "Failed to remove mullvad-vpn config"
|
||||||
|
}
|
||||||
|
|
||||||
|
function remove_symlinks {
|
||||||
|
rm /usr/bin/mullvad-problem-report || \
|
||||||
|
echo "Failed to remove mullvad-problem-report"
|
||||||
|
}
|
||||||
|
|
||||||
|
# checking what kind of an action is taking place
|
||||||
|
case $@ in
|
||||||
|
# apt purge passes "purge"
|
||||||
|
"purge")
|
||||||
|
remove_logs_and_cache
|
||||||
|
remove_config
|
||||||
|
remove_symlinks
|
||||||
|
;;
|
||||||
|
# apt remove passes "remove"
|
||||||
|
"remove")
|
||||||
|
remove_symlinks
|
||||||
|
;;
|
||||||
|
# dnf remove passes a 0
|
||||||
|
"0")
|
||||||
|
remove_logs_and_cache
|
||||||
|
remove_config
|
||||||
|
remove_symlinks
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
ln -sf /opt/Mullvad\ VPN/resources/mullvad-problem-report /usr/bin/mullvad-problem-report
|
||||||
if systemctl status mullvad-daemon &> /dev/null; 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"
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
|
||||||
if systemctl status mullvad-daemon &> /dev/null; then
|
|
||||||
systemctl enable "/usr/lib/systemd/system/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"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -19,5 +19,5 @@ systemctl disable mullvad-daemon.service || true
|
|||||||
systemctl stop mullvad-early-boot-blocking.service || true
|
systemctl stop mullvad-early-boot-blocking.service || true
|
||||||
systemctl disable mullvad-early-boot-blocking.service || true
|
systemctl disable mullvad-early-boot-blocking.service || true
|
||||||
|
|
||||||
mullvad-setup reset-firewall || echo "Failed to reset firewall"
|
/opt/Mullvad\ VPN/resources/mullvad-setup reset-firewall || echo "Failed to reset firewall"
|
||||||
mullvad-setup remove-device || echo "Failed to remove device from account"
|
/opt/Mullvad\ VPN/resources/mullvad-setup remove-device || echo "Failed to remove device from account"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set -eu
|
|||||||
|
|
||||||
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
|
||||||
if systemctl status mullvad-daemon &> /dev/null; then
|
if systemctl status mullvad-daemon &> /dev/null; then
|
||||||
mullvad-setup prepare-restart || true
|
/opt/Mullvad\ VPN/resources/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
|
||||||
systemctl disable mullvad-early-boot-blocking.service || true
|
systemctl disable mullvad-early-boot-blocking.service || true
|
||||||
Submodule mullvad-vpn-daemon/mullvadvpn-app updated: 236bbc4c0e...7cd3cfe21e
@@ -2,23 +2,22 @@
|
|||||||
# Maintainer: Joakim Hulthe <joakim@hulthe.net>
|
# Maintainer: Joakim Hulthe <joakim@hulthe.net>
|
||||||
pkgname=mullvad-vpn-slint
|
pkgname=mullvad-vpn-slint
|
||||||
pkgver=2026.1_git
|
pkgver=2026.1_git
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc="Mullvad VPN GUI"
|
pkgdesc="Mullvad VPN GUI"
|
||||||
url="https://mullvad.net/"
|
url="https://mullvad.net/"
|
||||||
arch="all"
|
arch="$(uname -m)"
|
||||||
license="GPL-3-or-later"
|
license="GPL-3-or-later"
|
||||||
# TODO: maybe depend on mullvad-vpn-daemon?
|
# TODO: maybe depend on mullvad-vpn-daemon?
|
||||||
depends="
|
depends="
|
||||||
"
|
"
|
||||||
makedepends="
|
makedepends="
|
||||||
build-base
|
build-base
|
||||||
cargo-auditable
|
rustup
|
||||||
rust
|
musl-dev
|
||||||
pkgconfig
|
pkgconfig
|
||||||
protobuf-dev
|
protobuf-dev
|
||||||
fontconfig-dev
|
fontconfig-dev
|
||||||
dbus-dev
|
dbus-dev
|
||||||
wayland-dev
|
|
||||||
"
|
"
|
||||||
checkdepends=""
|
checkdepends=""
|
||||||
install=""
|
install=""
|
||||||
@@ -29,25 +28,28 @@ options="net !check"
|
|||||||
|
|
||||||
_cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}"
|
_cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}"
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
|
|
||||||
cd "$startdir/mullvadvpn-app"
|
|
||||||
cargo fetch --target "$CHOST" --locked
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
# rustup-init -y --default-toolchain stable
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
|
||||||
cd "$startdir/mullvadvpn-app"
|
cd "$startdir/mullvadvpn-app"
|
||||||
|
|
||||||
# Specify `--target` so that the final binary ends up in target/<target>/release.
|
# rustup default stable
|
||||||
cargo build --release --locked \
|
local target="$(rustup +stable show active-toolchain | sed 's/^[^-]*-//' | grep -o "^[^ ]*")"
|
||||||
--target "$CHOST" \
|
|
||||||
|
# * Force the `stable` toolchain since it's installed in the container.
|
||||||
|
# We don't wan't to needlessly download rust while building.
|
||||||
|
# * Specify `--target` so that the final binary ends up in target/<target>/release.
|
||||||
|
cargo +stable build --release --locked \
|
||||||
|
--target "$target" \
|
||||||
-p mullvad-slint
|
-p mullvad-slint
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
local target="$(rustup +stable show active-toolchain | sed 's/^[^-]*-//' | grep -o "^[^ ]*")"
|
||||||
|
|
||||||
# Executable
|
# Executable
|
||||||
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-slint" \
|
install -m755 -D "$_cargo_target_dir/$target/release/mullvad-slint" \
|
||||||
"$pkgdir"/usr/bin/mullvad-slint
|
"$pkgdir"/usr/bin/mullvad-slint
|
||||||
|
|
||||||
# .desktop file
|
# .desktop file
|
||||||
|
|||||||
Submodule mullvad-vpn-slint/mullvadvpn-app updated: 236bbc4c0e...7cd3cfe21e
Reference in New Issue
Block a user