commit:     d5da0bfce6d5b87378b1b11891a18b4e03644ced
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Thu Jul 17 12:07:23 2025 +0000
Commit:     Itai Ferber <itai <AT> itaiferber <DOT> net>
CommitDate: Thu Jul 17 12:07:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d5da0bfc

net-vpn/mullvadvpn-app: add 2025.8_beta1

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

 net-vpn/mullvadvpn-app/Manifest                    |   2 +
 .../mullvadvpn-app-2025.8_beta1.ebuild             | 152 +++++++++++++++++++++
 2 files changed, 154 insertions(+)

diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index e9e49171ce..0f58ca278c 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1,2 +1,4 @@
 DIST MullvadVPN-2025.7_aarch64.rpm 84714301 BLAKE2B 
ae14d94cc533d91b48f030439777a9b55460251324e7dd5c976ecc60c96045640a2efc21eea06e7fbab363209f8df01941469e04dfeea6b91d91a92117919fe0
 SHA512 
a3fbb0c5a447409f954d1d965abed7fb1f019d7b3d8cb8a69f784242f52a9893c1f4e9c71fd4aed6b5b4fa20eabb411a8660e65b3e6966d7635348eb4d3dcffe
 DIST MullvadVPN-2025.7_x86_64.rpm 90085325 BLAKE2B 
197a709c3623bdaba7397d670267d39d8c0922d4a01561fa63e5b09a9ff8ea00b1e134a569745f7423d79cf3ade6e21b2d26362ccd3b3704aad1d78d36cd3f23
 SHA512 
28973f67e019eb9d8f1d5882b564b1d9763dd59c212a19339550e23812de4333c26a17f13a17039ab8fcac9091d820ba9de58e4f685a59c10f5965bbd85e89ce
+DIST MullvadVPN-2025.8-beta1_aarch64.rpm 88000473 BLAKE2B 
f0724e53183ea3289b3a8b7db569fc0ce8569b378d86c0616a26ef1edf04c8618a2bcccc91b37b8e35a252bfdf7fde8366e1449ea1c9da890905c2ee2093e1df
 SHA512 
dc232f74d82fae41a6a2b794a171fef9324e91aa56d10ca3a3783631d8caaaab12e2ba6a1242b41722d1f29f685b17b40e66b507dff682b67b9545997b353fc3
+DIST MullvadVPN-2025.8-beta1_x86_64.rpm 93763045 BLAKE2B 
fa1e2ab513a57f0032bba5476d77b85a6946101bb70c05bd3e17d3c34ad25c2412f608d81ebb148c8d8eef4fa85690e875b9e4d417802a8c976707174c25a8ee
 SHA512 
cab9867b2ac572ad0752fa8645550be6d5a61214b7a0a66fbcc81e5ed9fb09815f687244c6f0850b5bb7c15e2c459712ee4658b67cd37f0a7ed35103b74d77dc

diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.8_beta1.ebuild 
b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.8_beta1.ebuild
new file mode 100644
index 0000000000..8d1312be68
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2025.8_beta1.ebuild
@@ -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
+}

Reply via email to