commit:     37261ff6fa9b2a95e544238fdf18fa26e20a3092
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Thu Dec  5 16:04:07 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 16:04:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=37261ff6

net-vpn/mullvadvpn-app: add 2024.9_beta1

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

 net-vpn/mullvadvpn-app/Manifest                    |  2 +
 .../mullvadvpn-app-2024.9_beta1.ebuild             | 83 ++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index 315f8059c..b8895422d 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1,2 +1,4 @@
 DIST MullvadVPN-2024.8_aarch64.rpm 83171245 BLAKE2B 
06b9258fdd72b26637a6ad3e6acb08ad9d38dd5bec8f843560fddc5c812e9ab22312df4b5a8574a162a2b3f2aa45bc46b9d9a09bb3be2b7f20246a4c2e81df58
 SHA512 
950f5f0840e75b192ff12171c5b93f7820cebe4682bae5ad7e8687cce43449152bd1266d3895883d65f7d4eab1c52f5c902a0b0077e0430d5e32de0045f84094
 DIST MullvadVPN-2024.8_x86_64.rpm 88951337 BLAKE2B 
541a52cf23f7de6dee8b03d4c004dc1f2cae6f3b337cfb9fe51782f55cb371fe52f46877c13da53439fd6230096fa0738d485d8a4510cebb3c2536257e8809d1
 SHA512 
7cd29c7472ce8a23eb737ec73de101b703e5c0c32b9a3c32055d6c874f5e7eb5ef7fb382c95bf1b01267f48936d4bc83012fca5967ca32a000233098964337f4
+DIST MullvadVPN-2024.9-beta1_aarch64.rpm 83133761 BLAKE2B 
cf3680d2abceab4fdff38d6b86ea150d22f4734c4f80bffcf5bf53c096d2b250ec77d0b384a3e3ee9a521e3747da657d7d24d15fae43bbff68a7819632e246a3
 SHA512 
88765fba9115b42b0083e6015ae743525a10bc553dd6f19b434c62898bde3bdac935f539fbc5485c40723a3ec5fe8c2e0cf47aab79c7291a9381494701c503fd
+DIST MullvadVPN-2024.9-beta1_x86_64.rpm 88897153 BLAKE2B 
10be174ec661801f7e702ddd529089927626400afa17e6086f23d0ea552862d7dc67aeafe573c24a8ab0ef8017169b7a35c844d6ef672a4fe8947050e7665456
 SHA512 
1d56d5567e6778439744edc1104c278736dc9687a7af249e9901b26d1e03df607ab97fbe59842c80f8f2c3a758de754e98334853ed5e6c7d03d51b2f10ad95e0

diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.9_beta1.ebuild 
b/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.9_beta1.ebuild
new file mode 100644
index 000000000..74b5bde48
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.9_beta1.ebuild
@@ -0,0 +1,83 @@
+# 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 "${S}"/opt "${D}"/ || die "Failed to copy files"
+       fperms +x "/opt/Mullvad VPN/chrome_crashpad_handler"
+       fperms 4755 "/opt/Mullvad VPN/chrome-sandbox"
+
+       dobin "${S}"/usr/bin/mullvad
+       dobin "${S}"/usr/bin/mullvad-daemon
+       dobin "${S}"/usr/bin/mullvad-exclude
+       dosym "../../opt/Mullvad VPN/mullvad-vpn" /usr/bin/mullvad-vpn
+       dosym "../../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 "${S}"/usr/lib/systemd/system/mullvad-daemon.service 
mullvad-daemon.service
+       systemd_newunit 
"${S}"/usr/lib/systemd/system/mullvad-early-boot-blocking.service 
mullvad-early-boot-blocking.service
+
+       newbashcomp "${S}"/usr/share/bash-completion/completions/mullvad mullvad
+       newfishcomp "${S}"/usr/share/fish/vendor_completions.d/mullvad.fish 
mullvad
+       newzshcomp "${S}"/usr/share/zsh/site-functions/_mullvad _mullvad
+
+       domenu "${S}"/usr/share/applications/mullvad-vpn.desktop
+       local x
+       for x in 16 32 48 64 128 256 512 1024; do
+               doicon -s ${x} 
"${S}"/usr/share/icons/hicolor/${x}x${x}/apps/mullvad-vpn.png
+       done
+}

Reply via email to