commit: 9bb410b9d256183146c3c75b0d10dc9fe096bb88 Author: David Roman <davidroman96 <AT> gmail <DOT> com> AuthorDate: Sat Oct 28 01:06:16 2023 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Sat Oct 28 01:06:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bb410b9
net-vpn/mullvadvpn-app: new package, add 2023.5 Signed-off-by: David Roman <davidroman96 <AT> gmail.com> net-vpn/mullvadvpn-app/Manifest | 1 + net-vpn/mullvadvpn-app/metadata.xml | 11 +++++ .../mullvadvpn-app/mullvadvpn-app-2023.5.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/net-vpn/mullvadvpn-app/Manifest b/net-vpn/mullvadvpn-app/Manifest new file mode 100644 index 0000000000..4dba13678e --- /dev/null +++ b/net-vpn/mullvadvpn-app/Manifest @@ -0,0 +1 @@ +DIST MullvadVPN-2023.5_x86_64.rpm 81073977 BLAKE2B eb844bd61b1cfcb97e1b9f79940e55d4f6cf9e028bbf472d5a4b3e64778537888aff7788413634d74feca063b1a6d9c71ad2f616708766192633ea9a214dc437 SHA512 b4d6055704a61e3113f3e6446d9e51225f582ee5b33dc7ef8b8d13ecf0d292de42e2a0eeea0bfc323ec0274374de6a6f0b2f927ff2ae6087192d6ebb15f16259 diff --git a/net-vpn/mullvadvpn-app/metadata.xml b/net-vpn/mullvadvpn-app/metadata.xml new file mode 100644 index 0000000000..b2cd3596d1 --- /dev/null +++ b/net-vpn/mullvadvpn-app/metadata.xml @@ -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>[email protected]</email> + <name>David Roman</name> + </maintainer> + <upstream> + <remote-id type="github">mullvad/mullvad-app</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild b/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild new file mode 100644 index 0000000000..89814fa77a --- /dev/null +++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild @@ -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 + +}
