From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1646709-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id A716B1580CF
	for <garchives@archives.gentoo.org>; Tue, 25 Jun 2024 12:16:20 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E1C57E2ACA;
	Tue, 25 Jun 2024 12:16:15 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BF527E2AC9
	for <gentoo-commits@lists.gentoo.org>; Tue, 25 Jun 2024 12:16:15 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6B59933BE12
	for <gentoo-commits@lists.gentoo.org>; Tue, 25 Jun 2024 12:16:14 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 71F021D53
	for <gentoo-commits@lists.gentoo.org>; Tue, 25 Jun 2024 12:16:11 +0000 (UTC)
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" <davidroman96@gmail.com>
Message-ID: <1719244162.ddadfc9f4d9cecd47a6c6599df83fb5d34f464bc.davidroman@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-vpn/mullvadvpn-app/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-vpn/mullvadvpn-app/Manifest net-vpn/mullvadvpn-app/metadata.xml net-vpn/mullvadvpn-app/mullvadvpn-app-2024.4_beta1.ebuild
X-VCS-Directories: net-vpn/mullvadvpn-app/
X-VCS-Committer: davidroman
X-VCS-Committer-Name: David Roman
X-VCS-Revision: ddadfc9f4d9cecd47a6c6599df83fb5d34f464bc
X-VCS-Branch: master
Date: Tue, 25 Jun 2024 12:16:11 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b4397ad7-a3b7-4f92-9e83-ba5da0063fa8
X-Archives-Hash: 0f50ff32b47de918ff6f8544dba12f56

commit:     ddadfc9f4d9cecd47a6c6599df83fb5d34f464bc
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Mon Jun 24 15:49:22 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jun 24 15:49:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ddadfc9f

net-vpn/mullvadvpn-app: add 2024.4_beta1

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

 net-vpn/mullvadvpn-app/Manifest                    |  1 +
 net-vpn/mullvadvpn-app/metadata.xml                |  1 -
 .../mullvadvpn-app-2024.4_beta1.ebuild             | 73 ++++++++++++++++++++++
 3 files changed, 74 insertions(+), 1 deletion(-)

diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest
index 3315713c9..a026738bd 100644
--- a/net-vpn/mullvadvpn-app/Manifest
+++ b/net-vpn/mullvadvpn-app/Manifest
@@ -1 +1,2 @@
 DIST MullvadVPN-2024.3_x86_64.rpm 88010345 BLAKE2B 8335327427e3033eca1219f16e340b0a5e9aac399e1d54f9abd771a0c02a5a6451dff89af7d9bc977ef2aca744259e99ba5ada1014eae6a69c38c384d1762d03 SHA512 4feec0521cd3a52b7d3aa82f851694ff8a27ab63188d673d6ce8b62d5485acbd8eefc6d35f99da6c40c6b6fce0e9c735d121329d97589a6869138aafafd62fd9
+DIST MullvadVPN-2024.4-beta1_x86_64.rpm 90815893 BLAKE2B 276d5194f5588e204ea7a50a7c64b637300d72c1ff6f5eff8b76c842324a6ce1e815548a5e128ec536586e53ccc8b1333e3ba8383f97d4572a8c96b010896d5b SHA512 3ba9f4593db906f7ee48f121ba6e961f7f7e43e41fc6f5e5d49ceef9b66513cc59429900501561e90bf486bac57463d7a5add57792097bd0f1797ea71d320d2f

diff --git a/net-vpn/mullvadvpn-app/metadata.xml b/net-vpn/mullvadvpn-app/metadata.xml
index b9f59b27e..0ef47ce42 100644
--- a/net-vpn/mullvadvpn-app/metadata.xml
+++ b/net-vpn/mullvadvpn-app/metadata.xml
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<!-- maintainer-needed -->
 	<upstream>
 		<remote-id type="github">mullvad/mullvadvpn-app</remote-id> 
 	</upstream>

diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.4_beta1.ebuild b/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.4_beta1.ebuild
new file mode 100644
index 000000000..e6ee527fe
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2024.4_beta1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 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 )"
+
+S="${WORKDIR}"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+RESTRICT="bindist mirror test strip"
+
+RDEPEND="
+	app-accessibility/at-spi2-core
+	dev-libs/nspr
+	dev-libs/nss
+	media-libs/alsa-lib
+	media-libs/mesa
+	net-print/cups
+	x11-libs/gtk+
+	x11-libs/libdrm
+	x11-libs/libXcomposite
+	x11-libs/libXdamage
+	x11-libs/libXfixes
+	x11-libs/libxkbcommon
+	x11-libs/libXrandr
+	x11-libs/pango
+"
+
+QA_PREBUILT="*"
+
+src_install() {
+	# 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"
+
+	# tbh I don't know if all next lines are needed or we can just do cp -pPR "${S}"/usr "${D}"/"
+
+	local i
+	dobin "${S}"/usr/bin/mullvad
+	dobin "${S}"/usr/bin/mullvad-daemon
+	dobin "${S}"/usr/bin/mullvad-exclude
+	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
+}