net-vpn/mullvadvpn-app: new package, add 2023.5

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2023-10-28 03:06:16 +02:00
parent e69695cc63
commit 9bb410b9d2
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST MullvadVPN-2023.5_x86_64.rpm 81073977 BLAKE2B eb844bd61b1cfcb97e1b9f79940e55d4f6cf9e028bbf472d5a4b3e64778537888aff7788413634d74feca063b1a6d9c71ad2f616708766192633ea9a214dc437 SHA512 b4d6055704a61e3113f3e6446d9e51225f582ee5b33dc7ef8b8d13ecf0d292de42e2a0eeea0bfc323ec0274374de6a6f0b2f927ff2ae6087192d6ebb15f16259

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<upstream>
<remote-id type="github">mullvad/mullvad-app</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,48 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop rpm systemd shell-completion
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/${PV}/MullvadVPN-${PV}_x86_64.rpm )"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="test strip"
KEYWORDS="-* ~amd64"
QA_PREBUILT="*"
S="${WORKDIR}"
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
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
}