From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD81615827B for ; Tue, 26 Aug 2025 02:45:35 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 80B64340DD9 for ; Tue, 26 Aug 2025 02:45:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2639A110560; Tue, 26 Aug 2025 02:45:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 1AC39110560 for ; Tue, 26 Aug 2025 02:45:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9DC27340D30 for ; Tue, 26 Aug 2025 02:45:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1053B2AD1 for ; Tue, 26 Aug 2025 02:45:32 +0000 (UTC) From: "Itai Ferber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Itai Ferber" Message-ID: <1756176299.7cff978336f65db45cc78193824ef34c349ec046.itai@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-vpn/mullvadvpn-app/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-vpn/mullvadvpn-app/Manifest net-vpn/mullvadvpn-app/mullvadvpn-app-2025.9_beta1.ebuild X-VCS-Directories: net-vpn/mullvadvpn-app/ X-VCS-Committer: itai X-VCS-Committer-Name: Itai Ferber X-VCS-Revision: 7cff978336f65db45cc78193824ef34c349ec046 X-VCS-Branch: dev Date: Tue, 26 Aug 2025 02:45:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: df521531-a878-4b49-97fa-9ec7804b1cbe X-Archives-Hash: 1885342d577b88b8f34e59ce56a8abfe commit: 7cff978336f65db45cc78193824ef34c349ec046 Author: Itai Ferber itaiferber net> AuthorDate: Tue Aug 26 02:44:59 2025 +0000 Commit: Itai Ferber itaiferber net> 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 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 +}