net-vpn/mullvadvpn-app: add 2025.6_beta1

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2025-04-16 13:22:07 -04:00
parent 1f94c69ab9
commit f3cd9758a0
2 changed files with 154 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST MullvadVPN-2025.5_aarch64.rpm 83196461 BLAKE2B 4543f963147978016c3e0827c9d537e1ab8926db45e027df9b9c3267dae8aa1fe89876dd7e09fe7e3ddad75ff03b3039957234479cfbc151a8c82974fb07c52b SHA512 e02bc60a4c3b725b548f499437eaa5a2860cff02a99b6b2d6f87604dd456581e7dded20d1219e5c06b5ee460a2b2bc268eb32d1b171112e6e262ed08687846ea
DIST MullvadVPN-2025.5_x86_64.rpm 88596417 BLAKE2B 380755f0935eb98426f4b212f14fb57242f84ede3eabc56aaf85a2b40cf5498f68be0101c5af93be7eac02becee5743d80cc23dd735e6ccac4e840d892e23901 SHA512 12e87f627d3cc6e86e32b781c758893dcaffbacf3bfd6956b2e006deabdbcd0f04d4af99445370948e39084d1be54297b445f3b0bfaec4d72325f0749aefc19c
DIST MullvadVPN-2025.6-beta1_aarch64.rpm 84077401 BLAKE2B 76f820cd6b572333adf655f54416b6c4d274cfecaffbba3253e7b735472ddc4bbdd474f77cb07a3076b9111ceeb96e01c85124176a3a327a407b0e36fd02805b SHA512 5f7475abfb3996f8a85960bc035f2f2ada0cc73ff0f14c0f74dcddafb8dd4878f1f830a3f2f72b5390b151d7d9d51c4ed31ca0d4c3580bbb436ec30edf51e1be
DIST MullvadVPN-2025.6-beta1_x86_64.rpm 89417757 BLAKE2B f0fb28cac72177cc4151057bff8d268d395050c2f814b34ca66374834c70d0c0e66a54635a6f20750083aadcfa244acf05d086926349cfaa6dec5d3c4e422abf SHA512 c4113d2e5681d7b93b6aec8c4a1c0f3f407a3b75d05842de889b6db2696218f2557bcb4a491432676ff4f221c0289ae2e5d496f8a61746a7c0607f52b403d6b1

View File

@@ -0,0 +1,152 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
KEYWORDS="-* ~amd64 ~arm64"
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
"
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
}
MULLVAD_IS_BEING_UPDATED=false
pkg_preinst() {
xdg_pkg_preinst
[[ -n "$(best_version "${CATEGORY}/${PN}")" ]] && MULLVAD_IS_BEING_UPDATED=true
}
pkg_postrm() {
xdg_pkg_postrm
if [[ ${MULLVAD_IS_BEING_UPDATED} = "false" ]]; 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 [[ ${MULLVAD_IS_BEING_UPDATED} = "true" ]]; 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
}