From b8b0a2dd689a2b3406b918587be6a13e2e9cc455 Mon Sep 17 00:00:00 2001 From: Itai Ferber Date: Tue, 19 May 2026 07:43:43 -0400 Subject: [PATCH] net-vpn/mullvadvpn-app: add 2026.3_beta1 Signed-off-by: Itai Ferber --- net-vpn/mullvadvpn-app/Manifest | 2 + .../mullvadvpn-app-2026.3_beta1.ebuild | 156 ++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 net-vpn/mullvadvpn-app/mullvadvpn-app-2026.3_beta1.ebuild diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest index 145085fc18..2e3c66c659 100644 --- a/net-vpn/mullvadvpn-app/Manifest +++ b/net-vpn/mullvadvpn-app/Manifest @@ -1,2 +1,4 @@ DIST MullvadVPN-2026.2_aarch64.rpm 86648725 BLAKE2B 444f0c0fbacd152f9b9f8370fb9dc6317bd4145cade6f1de80d2ea80f1296a7c3514f850aefbcef1f6393134b40fdcee316d48662db0bc44ef52ca041ac5faf5 SHA512 11466107e37d8fcf4c0b6dec4d10c4adc45f942b0a88e16fc101d47892ccacd4f641f36393b96c88a356638533ce1b9d29119338f0d31d942ad16671fd62d2b8 DIST MullvadVPN-2026.2_x86_64.rpm 92476557 BLAKE2B a8f8ef36443c6626339f212653a560ca88faf67f46ff3dcd679a9d96fb9cb08e957e6aec706750a13a003dd405ff89375c7f3ca08f8d78ab28746700722b2edc SHA512 8fc1adc375be15a1ae174064adf141b77e5dc74f86b139515b83df22008e9eb5154cdc47a87cdc4401ff068ecdb340030c9ac082b779feb24cbca21393c650c9 +DIST MullvadVPN-2026.3-beta1_aarch64.rpm 86593117 BLAKE2B 3d2e013c2b1e49119f48271006518f243bf72fb7cff3e1b079a37bb1db630edaf39804387ce8db8b6a98f55f89079b990dc56dfacec695a02319c4acea495d70 SHA512 b6ddecaf79f86d4348d7cf9f1268e391c95edf41b410820fc05ecc5c95fe3f1bbbeb893c3c69ed36ed4d3c01207fcad710ae8331f861672ad443e44225863ef7 +DIST MullvadVPN-2026.3-beta1_x86_64.rpm 92416845 BLAKE2B 45ced52c61d304104b47d81271a562085afcbb91a5ea0b7eca9ec5664373f8414d223bf422ba3442266063988ac89070c31c0b9e0a9c7aab8b1793f8ba512def SHA512 eb0cc822df717bf74191801bf34ad24f21061e5e48e85524b3857945e7dc8a755fb69572d5aa90d67ad19d3c05823f5237100c746fca39dbbf0c95efa550f10c diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2026.3_beta1.ebuild b/net-vpn/mullvadvpn-app/mullvadvpn-app-2026.3_beta1.ebuild new file mode 100644 index 0000000000..3407daab5e --- /dev/null +++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2026.3_beta1.ebuild @@ -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 +}