commit:     74c1390189ca9268bfbfabb1d9fd319a93574975
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Wed Jun  4 11:06:09 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 11:06:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=74c13901

net-vpn/mullvadvpn-app: add 2025.7_beta1

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

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

diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index ba29774714..275485001b 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1,2 +1,4 @@
 DIST MullvadVPN-2025.6_aarch64.rpm 84081953 BLAKE2B 
73219680ff5ed792d54af3003a8ccec4995879bf945250e91ffce807e2cdca26867f66d0ae13115fd995b4d6009e0c840649a6f3f6b77301bb495d029df46fbb
 SHA512 
dc6ef9f30b752a451dc011b33dbd49073627f621994b51d85396bf76f457ecf4589dedf36684d6c75c3908869604fb3ccf113fad9a8935e41f516680c7b82fcd
 DIST MullvadVPN-2025.6_x86_64.rpm 89423673 BLAKE2B 
6c8fcd6a9a05f1ba3ef31c6b9421398b21f8649484337a425168abe01e954cdd01e7b85c8a54b6839ddae712dd4e8b5b66767b1647b7faa9ca642ab4cebb8753
 SHA512 
6bec6a3116d21f0dd3185c21a5ae14bec5c969ea1e4472d41a7761fcce918bb689e913c822c2eeb6f55c077c048bd95a561a77e9dacac570e0fd09da24c6829d
+DIST MullvadVPN-2025.7-beta1_aarch64.rpm 84695385 BLAKE2B 
7948b360f51bafc8295bda07502ab29cdc7c4d7560ec2f1677d992afc4ab4be8e71caf8badd1bfd8ab90c76a9d905d58881f7eb9cabcf0ef74010e406655c6e7
 SHA512 
30c5c48d5dc88f8113e70809f9c6905830707f08dc0f6059e625e530190e3a967fe7c34edd8b27ec4ee456cfc14b7e023e0175c270242a21d014349f8ab58b63
+DIST MullvadVPN-2025.7-beta1_x86_64.rpm 90089637 BLAKE2B 
9c4345b72fe117bb1d573a0879f1bd2221ecf363b8078af9b731315fc9c5afff3a6e16e55ec089908c9edfbcb5881c77b8eb21ff158a2a0761edd594a51f903b
 SHA512 
21143c9784fcc74890217d53eaba2f29bebc751c611e4c3a17ed089501fa404533cd5e6b37eab3d02ead71d4275718b22f411703252fa06a9f74525ec3b766c5

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