commit:     54a0654d6e55750583ea2625c92c6acdcfdd0108
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Thu Oct  2 11:40:30 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Oct  2 11:40:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54a0654d

net-vpn/mullvadvpn-app: add 2025.10_beta2

Signed-off-by: Itai Ferber <itai <AT> itaiferber.net>

 net-vpn/mullvadvpn-app/Manifest                    |   2 +
 .../mullvadvpn-app-2025.10_beta2.ebuild            | 148 +++++++++++++++++++++
 2 files changed, 150 insertions(+)

diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index ed5c4594ec..b609a124dc 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1,4 +1,6 @@
 DIST MullvadVPN-2025.10-beta1_aarch64.rpm 87219529 BLAKE2B 
2a78404a3c612fa82924c64f54dbea27b999a87cdc8c3dec06ecaf9726958a46e6549931aba52023cac08802672fccb88b39cee03dadf63843e9b960c4576253
 SHA512 
82d604974fb7d37cc05f1243ecefc65a8b88d4ebb56c58b361933b720624138e7386d32ee5cc58d2490378f92f0015f5c32f71077d1a411313a75b11ea48ee05
 DIST MullvadVPN-2025.10-beta1_x86_64.rpm 93131069 BLAKE2B 
57e8e06a54f0ea368a5104504f25f161b0c69e038647e4cc252d457b2104950f2b0578a36e538fafe52a5ba60a8e6b53bfe5e249896833060457607cb9e6179a
 SHA512 
987880794a68c83312aea890fc82c1cd30b9eb2d790655c17a998329ac0867615dc87ea0897ca86e2ffed888f2b10fdf49e33106097504e5b8036c11be395041
+DIST MullvadVPN-2025.10-beta2_aarch64.rpm 87208889 BLAKE2B 
37e92314a64a1382e95273f072a5ff385e44b12a2e395b8259875263eb125065c6897fa845cd22dfaed38d14c446dece00b62773a3f21445a7579e36f6e47bca
 SHA512 
bd6cf3b03ba1fd707397098357e24ed84e9ec4bee06b8d1768f8e9ccc316ca277493c9d67f4f5aa6adafd3464f61e1d6f660a9ca8f3cd1caa33cb28f155eb3c1
+DIST MullvadVPN-2025.10-beta2_x86_64.rpm 93155265 BLAKE2B 
5e2aae97843ced7340bed54578182e7b4101186ecb4847385845de5feecf7b35e85d2db6a5c6c49f0ffd7ed01101f01b60d0f5bfc60ba277a00a8e504beb7e82
 SHA512 
0a0534179c4bbe77c4fabf0fd6a8a4502fbc6b5f7031f0ae526f4d0a3c856b0d01e9d1ab59775c0e5db6ba6172a45e39bb22e0633c377bec17ea1cfbab2aa309
 DIST MullvadVPN-2025.9_aarch64.rpm 87243633 BLAKE2B 
9a66409af98dd35fb5a5eae6fc863229b4b6deb21b12b045b3ff6689e5693a6a2a4a45917ff190c5d6e2435a63c84899143018c0483d0e3bf8d5dc7ed9480f9b
 SHA512 
0f5b28f2749cbedf6ed70b29c107ed131d10f113ff75afb42cee3daaa1e2218ff1421fd606df2e85940b08ce7acc35b562cb1443097d9f65f70e2c44b1fcdc99
 DIST MullvadVPN-2025.9_x86_64.rpm 93122013 BLAKE2B 
ada9bc4103dd76539630e8a055dfefe745bce48e7446565cfe5389981908e2aacc11f132125f1e4651d029e34b74cfa863463b8902779a11b9baac00d12d79f2
 SHA512 
71f87267943f6295b932ad281d0ae3ffb0dc9c5af9c636d1df330f37a6199f1903997a4ae3e1702ef9b87cddcf894c9f31654423dc836720f6196379458649aa

diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.10_beta2.ebuild 
b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.10_beta2.ebuild
new file mode 100644
index 0000000000..d02c1a2723
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.10_beta2.ebuild
@@ -0,0 +1,148 @@
+# 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
+       || (
+               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
+}

Reply via email to