commit: 7cff978336f65db45cc78193824ef34c349ec046
Author: Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Tue Aug 26 02:44:59 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Aug 26 02:44:59 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7cff9783
net-vpn/mullvadvpn-app: add 2025.9_beta1
Signed-off-by: Itai Ferber <itai <AT> itaiferber.net>
net-vpn/mullvadvpn-app/Manifest | 2 +
.../mullvadvpn-app-2025.9_beta1.ebuild | 152 +++++++++++++++++++++
2 files changed, 154 insertions(+)
diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index c2a20263fe..2628de5317 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1,2 +1,4 @@
DIST MullvadVPN-2025.8_aarch64.rpm 87969433 BLAKE2B
d4c394433ae708c504d72c1f8de8154f9772f11746340c79f672e2e3b26e3c62120f1674bd05685942352f365f23983d956a13040e6b429e50c1b2998b3be8c3
SHA512
eef1d76182bd60399982cdc4b091367c394912632c4b4cf09e284e153adc111c4d857f905c8a82c86f70513524a664c5131ccf182c0d303b2fe4fd9c4aa92586
DIST MullvadVPN-2025.8_x86_64.rpm 93755725 BLAKE2B
1b471e7a4ad17a002aeff1e6c8bc9caf88728a3b3ff5580231e93f9d2e1240405a8968e0f76f3a5071d5d84ab9652ec24dad4bb47da0a8f7249a17380746bce5
SHA512
5d4792bfedffeef653ae6ca450334836e2e48e76deaa9e934e9e9929e4d06b0ca9eb7f061cafcfe81afe68786873ee80a6bf5b36f3d5c1dc78b1fd8fe262d78e
+DIST MullvadVPN-2025.9-beta1_aarch64.rpm 87222193 BLAKE2B
a295106f980aced7dafb874ebfea5a2f9a168052d59eba4d0594b48007ad136ff1ba9ba8bf856765c4fee16c4bef3445dce605e68a3de46224e77530346e6800
SHA512
98332c6c08721d9168bfe6c4b38132e9495dd69b8b602c5a85228f412ba61f33927d4209055bf7027698838086cace7faadc926508adfae264e2483f527e872f
+DIST MullvadVPN-2025.9-beta1_x86_64.rpm 93127121 BLAKE2B
2045c2fb4c6db1eac142853fa0fa28315090bc5da37d7befa7ad0a886422f8f2b298dc270a0b0bfa0237adbc7a118cc30cf93a18e0978cb049a9f8e68d66b8e3
SHA512
9cb4e8fa72efbbf1b02e8a4de0cb7652f36d7e0366fe5cf7d780018e22caa96b619d5aab60e50638976daf96a47c849bd23f9b69f2581fca18c7196eb6b222b9
diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.9_beta1.ebuild
b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.9_beta1.ebuild
new file mode 100644
index 0000000000..ed23aab17e
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.9_beta1.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2025 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
+}