mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-vpn/mullvadvpn-app: add 2026.1_beta2
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST MullvadVPN-2025.14_aarch64.rpm 89062049 BLAKE2B 34102379a7ae4526b5b0e48fd2e
|
||||
DIST MullvadVPN-2025.14_x86_64.rpm 95157225 BLAKE2B 277ad993c19db4813a829e2ac4de66019736f331022ee0d5b8db5fe6d3ecde42c0e251161321201c2986df700915907825309153f5e0703b6e38f4e085110f11 SHA512 0dc3ccec3aa4e20a8fc2322d585f0a73c7355707f2c1372b44b9ac011d11523b967cf14825f883cf9d8d901ad1a1b2731349230ebb877b848ef5303df15f5192
|
||||
DIST MullvadVPN-2026.1-beta1_aarch64.rpm 86852185 BLAKE2B 855b227779f3a67d6acfdd477df4af212d605b71d4b8110bcb1d85da147e880065d0338f76cc851e3eebd3ade409a4a30287630da9eda1aeb9d40dcf91c429eb SHA512 0b1312a35ecfe9670e04b241ca16bf56577b3b5a6caacb11eacbd44606ec0e6defe09e445172f9022399d906b431c296b4e93002a1022d36b3f5045b53af0589
|
||||
DIST MullvadVPN-2026.1-beta1_x86_64.rpm 92646577 BLAKE2B fff32b4ecff16568858bb3a58a08dbb8921bb195f1b086367fc9093d87c6e97a19a4258ab3cda979f3507d92e777d4bb24dcb67ec98afb3e1555a05fbcb4f6aa SHA512 271955b28ce10736291300afa187eae196f4b779eb7fd39df90007ec56b5f6e4b6e574438cc3e2ebc4cb367889a71571891870b72c3fc9c239e7e8d8794d88eb
|
||||
DIST MullvadVPN-2026.1-beta2_aarch64.rpm 86843985 BLAKE2B 72ffdbb321d7b2691b5fc6bf1b5f2fa232c517e4c731a8cd1ffbf19c3590e3823580f0fcda16702eda3360e0e6273ed7a35f3c7df5e959802a6b9c92368be933 SHA512 788382173ad397e34b73ec3be33b444965d59c6dbbff30273937e782f842559fab8688356531c55629070731365349be1e5a383572c64f7da04fac1e47181379
|
||||
DIST MullvadVPN-2026.1-beta2_x86_64.rpm 92644269 BLAKE2B 7bc11b048fb6ebd0356a2a021c3a4df61842947b39c125004e88a38fe8896c987977f313d92416215ced5a6037d62f380f1920ddcdc55d3d4c03341d74a3ae3e SHA512 76a56ba70a6e9e7f083de0f5f9c595ac6b7bff71ef17ea6d1159650d7ef1f86c45ba8ca8805f9261be767ded03723eb3d639d8b684215986abe271cbef434add
|
||||
|
||||
155
net-vpn/mullvadvpn-app/mullvadvpn-app-2026.1_beta2.ebuild
Normal file
155
net-vpn/mullvadvpn-app/mullvadvpn-app-2026.1_beta2.ebuild
Normal file
@@ -0,0 +1,155 @@
|
||||
# Copyright 1999-2025 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"
|
||||
|
||||
# Betas are kept unkeyworded; users can opt in to testing by accepting '**' instead of '~amd64'/
|
||||
# '~arm64' keywords.
|
||||
#
|
||||
# See https://bugs.gentoo.org/966989
|
||||
if [[ "${PV}" != *_beta* ]]; then
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
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
|
||||
|| (
|
||||
net-firewall/nftables
|
||||
net-firewall/iptables[nftables]
|
||||
)
|
||||
"
|
||||
|
||||
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 opt "${D}"/ || die "Failed to copy files"
|
||||
fperms +x "/opt/Mullvad VPN/chrome_crashpad_handler"
|
||||
fperms 4755 "/opt/Mullvad VPN/chrome-sandbox"
|
||||
|
||||
dobin ./usr/bin/mullvad
|
||||
dobin ./usr/bin/mullvad-daemon
|
||||
dobin ./usr/bin/mullvad-exclude
|
||||
dosym -r "/opt/Mullvad VPN/mullvad-vpn" /usr/bin/mullvad-vpn
|
||||
dosym -r "/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 ./usr/lib/systemd/system/mullvad-daemon.service mullvad-daemon.service
|
||||
systemd_newunit ./usr/lib/systemd/system/mullvad-early-boot-blocking.service mullvad-early-boot-blocking.service
|
||||
|
||||
newbashcomp ./usr/share/bash-completion/completions/mullvad mullvad
|
||||
newfishcomp ./usr/share/fish/vendor_completions.d/mullvad.fish mullvad
|
||||
newzshcomp ./usr/share/zsh/site-functions/_mullvad _mullvad
|
||||
|
||||
domenu ./usr/share/applications/mullvad-vpn.desktop
|
||||
local x
|
||||
for x in 16 32 48 64 128 256 512 1024; do
|
||||
doicon -s "${x}" "./usr/share/icons/hicolor/${x}x${x}/apps/mullvad-vpn.png"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
|
||||
if [[ -z ${REPLACED_BY_VERSION} ]]; then
|
||||
if ! command -v pgrep &>/dev/null || pgrep -f "mullvad-(daemon|gui)"; then
|
||||
elog "Mullvad has been uninstalled. To stop the service,"
|
||||
elog "1. Quit the Mullvad app"
|
||||
elog " * Manually: 'Disconnect & quit' from the Mullvad menu"
|
||||
elog " OR"
|
||||
elog " * Command line: pkill -f mullvad-gui"
|
||||
elog "2. Stop the daemon"
|
||||
elog " * OpenRC: rc-service mullvad-daemon stop"
|
||||
elog " OR"
|
||||
elog " * systemd: systemctl stop mullvad-daemon"
|
||||
elog " OR"
|
||||
elog " * other: pkill -f mullvad-daemon"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if command -v pgrep &>/dev/null && pgrep -f "mullvad-(daemon|gui)" &>/dev/null; then
|
||||
elog "Mullvad has been updated. To restart the service,"
|
||||
elog "1. Restart the daemon"
|
||||
elog " * OpenRC: rc-service mullvad-daemon restart"
|
||||
elog " OR"
|
||||
elog " * systemd: systemctl restart mullvad-daemon"
|
||||
elog "2. Restart the app"
|
||||
elog " * Manually: 'Disconnect & quit' from the Mullvad menu and relaunch using"
|
||||
elog " your preferred desktop launcher"
|
||||
elog " OR"
|
||||
elog " * Command line: pkill -f mullvad-gui && '/opt/Mullvad VPN/mullvad-vpn' & disown"
|
||||
else
|
||||
elog "Mullvad has been updated. To start the service,"
|
||||
elog "1. Start the daemon"
|
||||
elog " * OpenRC: rc-service mullvad-daemon start"
|
||||
elog " OR"
|
||||
elog " * systemd: systemctl start mullvad-daemon"
|
||||
elog "2. Launch the app"
|
||||
elog " * Manually: use your preferred desktop launcher"
|
||||
elog " OR"
|
||||
elog " * Command line: '/opt/Mullvad VPN/mullvad-vpn' & disown"
|
||||
fi
|
||||
else
|
||||
elog "Mullvad has been installed. To start the service,"
|
||||
elog "1. Enable and start the daemon"
|
||||
elog " * OpenRC: rc-update add mullvad-daemon default"
|
||||
elog " rc-service mullvad-daemon start"
|
||||
elog " OR"
|
||||
elog " * systemd: systemctl enable mullvad-daemon"
|
||||
elog " systemctl start mullvad-daemon"
|
||||
elog "2. Launch the app"
|
||||
elog " * Manually: use your preferred desktop launcher"
|
||||
elog " OR"
|
||||
elog " * Command line: '/opt/Mullvad VPN/mullvad-vpn' & disown"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user