-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-vpn/mullvadvpn-app: add 2024.6_beta1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
- Loading branch information
1 parent
162d4d1
commit 817ee8c
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST MullvadVPN-2024.5_aarch64.rpm 85185769 BLAKE2B 1b6d5791f0363041b5861ed09a259053a6304c9a2efdfc14d0c0317a9f86eb446eeeca1a740d6154eee1aae349159b8d5f62358c5b2ede965ff2d6bf7b0dadf7 SHA512 cc3d58241c68b4cc3376723911f0cd9228958e8abd92572d6e946e70a172af1b90b6a3f5588e30c25d3d9072be00f95c0fffc11874349f0c03fc4b23966d5e25 | ||
DIST MullvadVPN-2024.5_x86_64.rpm 91119641 BLAKE2B 91ec3ac8eb749592a050582a3b4038b0ad577dac3f4fe169c3bbb311c7741d78032308d76ad54bcb9ca7e6ace91ea3dcd551b232d9ac111d2fae5d7570332916 SHA512 8ddf461ed9336f82a2753c5b6071047c094e1e3dca36ce3a45985dc6681e9f208958533f90f5cb97d1574e8a03742d1e6942fbcf7ae9e97ae785a980866942f7 | ||
DIST MullvadVPN-2024.6-beta1_aarch64.rpm 83123577 BLAKE2B 53923b70b467c6fd6fa0bd15192d2f1097e56afa2ea3bf4ac405ce31a2097cc2501509b5a3cef23e16ddf1e2885070885dc254c334f3b2196eae60645ce7fb53 SHA512 fb90b81a3605f803b21bf5410d333da0e14292e336e51c764d51ad468e57b0171f3900514794875fd15e51bc1e261265af9e6ef5e66348784a34d654b09e5b3a | ||
DIST MullvadVPN-2024.6-beta1_x86_64.rpm 88907705 BLAKE2B 4aaf0df070c70efd42a75853e38cc16cb789815ed28df6a5c08472b79daaa0f439f1cf1f9349fdd7e327dd6b141aad3e812e00b5f70635426f810db8ad3f91fa SHA512 20dd7ca6bca307a48e8617d7abccdc554aa9cdf1f6bbcf0640a5a6492681ceb64791887723349955e2fc4890d9c99ed61a15e703d306c0e43da6cd166d8719d7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# 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="*" | ||
|
||
MULLVAD_GUI_NEEDS_RESTART=0 | ||
|
||
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 | ||
} |