net-vpn/mullvadvpn-app: add 2026.4_beta2

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber committed 2026-08-10 08:22:13 -04:00
1 parent 2361bc5700
commit e5f4201837
2 files changed
+158

No files matched your search

+2
View File
@@ -2,3 +2,5 @@ DIST MullvadVPN-2026.3_aarch64.rpm 86586701 BLAKE2B 19e23dd53116df4fa0dbd3affce1
DIST MullvadVPN-2026.3_x86_64.rpm 92403313 BLAKE2B e61b732f108e043b38f99ece7f560cc8d9a6d1b68b180b334dc7b80e7be9b9b364e90c42a711d7a8011e0dd1ee278bd62db4323027bd53b3d2ec89e136d0d523 SHA512 3df078700eb02310a7d31ec11dc538c9e2a328eaaa12d1a7753c11e7bbddc8cc6047ce198a283becd91130bbafebf17aebaaf449dd72c34e8c45dae335ee9e9f
DIST MullvadVPN-2026.4-beta1_aarch64.rpm 90111669 BLAKE2B cdc7ad3d5142f5a52f2ac58955a654572eee440ccdca25771291d909324a80811895ec32e1864f51672098bf1eaf2d171a9256874e90c9d3db4f4c4f79004625 SHA512 2363a014ed0ca27a08fe5b8512712fbd386e3deef00caf6c1be8531e5bc21f411130a20e9b408ea975882793c73fe5879d188f9a4bfd5e2679d7f8b277d553a5
DIST MullvadVPN-2026.4-beta1_x86_64.rpm 95958245 BLAKE2B 640d76b5d7b08434084bcb6ad0df64437fed03e5aa13bb2a129b83ce3775d12ad180506512180ce969fc08ffc3e250cc02d6e13d91bc03c8b10f326f1f272805 SHA512 6151da9d636db605ae9921f4f09b6d1c85fed6b33f4ab60f45b3e53842a4600db9c1a3f4efb44fdd9737ea4fa17fad6d18109076d217090cb008eed19ce8d0b8
DIST MullvadVPN-2026.4-beta2_aarch64.rpm 90090613 BLAKE2B 692efdc700cd2ace96ea3d3bc756a84d20fd7b54687d2dad77a471a9efe12cd998ad01fd29fbd18cd15a7b908cea5cb3a447f25fadd9f072a67e974e6a30f79a SHA512 7b0972c4739c629d071551b2cebc5b9b04fa180e0e9f8132d4a5e284e4fb88f386e63563d53b7049c60712b432603921a01888ac11ca93d98155be71304d1747
DIST MullvadVPN-2026.4-beta2_x86_64.rpm 95953801 BLAKE2B 87ba3bcfabbb68a166cb813e87b0f6236486a62160bfea6dd42992e269d05c5da425e3ded80ae4da10ddae8ed736bd8380a9dc89e89e7637878a60cd98ae47bf SHA512 37e0099b4e2f5d4d85155a3ec3ab87aaf80b20b5227ff2fb6c1b64fb8540ea76708cdecdebe991e34c55616bbbe760cda4784221d503a050c39fecf45d9f8d71
@@ -0,0 +1,156 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RPM_COMPRESS_TYPE="xz"
inherit desktop rpm systemd shell-completion xdg
MYPV="${PV/_beta/-beta}"
DESCRIPTION="Tool used to manage daemon setup"
HOMEPAGE="https://github.com/mullvad/mullvadvpn-app https://mullvad.net/"
SRC_URI="
amd64? ( https://github.com/mullvad/mullvadvpn-app/releases/download/${MYPV}/MullvadVPN-${MYPV}_x86_64.rpm )
arm64? ( https://github.com/mullvad/mullvadvpn-app/releases/download/${MYPV}/MullvadVPN-${MYPV}_aarch64.rpm )
"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
# Betas are kept unkeyworded; users can opt in to testing by accepting '**' instead of '~amd64'/
# '~arm64' keywords.
#
# See https://bugs.gentoo.org/966989
if [[ "${PV}" != *_beta* ]]; then
KEYWORDS="-* ~amd64 ~arm64"
fi
RESTRICT="bindist mirror strip"
RDEPEND="
app-accessibility/at-spi2-core:2
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/mesa
net-print/cups
sys-apps/dbus
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libdrm
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libxkbcommon
x11-libs/libXrandr
x11-libs/pango
|| (
net-firewall/nftables
net-firewall/iptables[nftables]
)
"
QA_PREBUILT="*"
src_install() {
sed -i "s|SCRIPT_DIR=.*|SCRIPT_DIR=\"/opt/Mullvad VPN/\"|g" "${S}/opt/Mullvad VPN/mullvad-vpn" || die
# Using doins -r would strip executable bits from all binaries
cp -pPR opt "${D}"/ || die "Failed to copy files"
fperms +x "/opt/Mullvad VPN/chrome_crashpad_handler"
fperms 4755 "/opt/Mullvad VPN/chrome-sandbox"
dobin ./usr/bin/mullvad
dobin ./usr/bin/mullvad-daemon
dobin ./usr/bin/mullvad-exclude
dosym -r "/opt/Mullvad VPN/mullvad-vpn" /usr/bin/mullvad-vpn
dosym -r "/opt/Mullvad VPN/resources/mullvad-problem-report" /usr/bin/mullvad-problem-report
# mullvad-exclude uses cgroups to manage exclusions, which requires root permissions, but is
# also most often used to exclude graphical applications which can't or shouldn't run as root
# (i.e., can't be run under `sudo/doas /usr/bin/mullvad-exclude ...`, because `sudo`/`doas`
# change user). The setuid bit allows any user to exclude executables under their own UID.
fperms 4755 /usr/bin/mullvad-exclude
newinitd "${FILESDIR}"/mullvad-daemon.initd mullvad-daemon
systemd_newunit ./usr/lib/systemd/system/mullvad-daemon.service mullvad-daemon.service
systemd_newunit ./usr/lib/systemd/system/mullvad-early-boot-blocking.service mullvad-early-boot-blocking.service
newbashcomp ./usr/share/bash-completion/completions/mullvad mullvad
newfishcomp ./usr/share/fish/vendor_completions.d/mullvad.fish mullvad
newzshcomp ./usr/share/zsh/site-functions/_mullvad _mullvad
domenu ./usr/share/applications/mullvad-vpn.desktop
local x
for x in 16 32 48 64 128 256 512 1024; do
doicon -s "${x}" "./usr/share/icons/hicolor/${x}x${x}/apps/mullvad-vpn.png"
done
}
pkg_postrm() {
xdg_pkg_postrm
if [[ -z ${REPLACED_BY_VERSION} ]]; then
if ! command -v pgrep &>/dev/null || pgrep -f "mullvad-(daemon|gui)"; then
elog "Mullvad has been uninstalled. To stop the service,"
elog "1. Quit the Mullvad app"
elog " * Manually: 'Disconnect & quit' from the Mullvad menu"
elog " OR"
elog " * Command line: pkill -f mullvad-gui"
elog "2. Stop the daemon"
elog " * OpenRC: rc-service mullvad-daemon stop"
elog " OR"
elog " * systemd: systemctl stop mullvad-daemon"
elog " OR"
elog " * other: pkill -f mullvad-daemon"
fi
fi
}
pkg_postinst() {
xdg_pkg_postinst
if [[ -n ${REPLACING_VERSIONS} ]]; then
if command -v pgrep &>/dev/null && pgrep -f "mullvad-(daemon|gui)" &>/dev/null; then
elog "Mullvad has been updated. To restart the service,"
elog "1. Restart the daemon"
elog " * OpenRC: rc-service mullvad-daemon restart"
elog " OR"
elog " * systemd: systemctl restart mullvad-daemon"
elog "2. Restart the app"
elog " * Manually: 'Disconnect & quit' from the Mullvad menu and relaunch using"
elog " your preferred desktop launcher"
elog " OR"
elog " * Command line: pkill -f mullvad-gui && '/opt/Mullvad VPN/mullvad-vpn' & disown"
else
elog "Mullvad has been updated. To start the service,"
elog "1. Start the daemon"
elog " * OpenRC: rc-service mullvad-daemon start"
elog " OR"
elog " * systemd: systemctl start mullvad-daemon"
elog "2. Launch the app"
elog " * Manually: use your preferred desktop launcher"
elog " OR"
elog " * Command line: '/opt/Mullvad VPN/mullvad-vpn' & disown"
fi
else
elog "Mullvad has been installed. To start the service,"
elog "1. Enable and start the daemon"
elog " * OpenRC: rc-update add mullvad-daemon default"
elog " rc-service mullvad-daemon start"
elog " OR"
elog " * systemd: systemctl enable mullvad-daemon"
elog " systemctl start mullvad-daemon"
elog "2. Launch the app"
elog " * Manually: use your preferred desktop launcher"
elog " OR"
elog " * Command line: '/opt/Mullvad VPN/mullvad-vpn' & disown"
fi
}