mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-vpn/mullvadvpn-app: drop 2025.10, 2025.13_beta2, add 2025.13
Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST MullvadVPN-2025.10_aarch64.rpm 87199241 BLAKE2B c3778f46fa0f9f0957cc7605949b59dab9541122ca661bff77847b163f7937cdbad8eaa4090fb55d310cec9a56767e84494f4e2b49635611a7fb105f2045f0d0 SHA512 cb75a722126d86709f6dd06d403277d7397131bb8546f95d2be543a4692e8dd3f1dfe15ee1dcf09f9b853cca613f57564abff755d812243e14c54d736c2dfef4
|
||||
DIST MullvadVPN-2025.10_x86_64.rpm 93122525 BLAKE2B 95c5f795c495f174726c195e09a6ac97c1a26ce1e6f7fe9aa84c0b6eaa50feff3bb5937b0506b10e99322d7812e27eff809466e1426fc1b415b9f94f3b17689d SHA512 b9f113bbe736af97f3b2270885b2be5d0845a10e04e70ad06344b46f93c2c18a811501591228bf5b3cdc67215d715190942579c6c008b16f60fce756020606a7
|
||||
DIST MullvadVPN-2025.13-beta2_aarch64.rpm 89105085 BLAKE2B 15986dbd012eafb2722399c65ed2030ac2cee2eac76041a5a75afcf00bc2647c5e4fcc7ff19b23dadc45efb8c6c183177d61b81a4a2cf7a7320b748f27406782 SHA512 6f160d9b4da6b62024f26b2bc0b2b30b97802c05f34454c4767abf418d01d5ace50c34cc743c9f8cc7932e0af690ffe819a113f9541b6a516a622026633aa27e
|
||||
DIST MullvadVPN-2025.13-beta2_x86_64.rpm 95225005 BLAKE2B a02710232032f53ecec867328e6e0dbff967fb2f1d4b570a6ddb8d0adc5d8b380deb2a157d965f30a25d59ab2caab0b3eec118622161e92148b519dc42e26ba7 SHA512 67982167b218af2ccd017273f465182229a51412165d5f416bc45c14b3e7268f499f55d8eabaae5a2e52a77963fb598205a9f367ebcc0d7596520797fc602ef0
|
||||
DIST MullvadVPN-2025.13_aarch64.rpm 89102365 BLAKE2B 75f12d1da3246ab2843efc79e60d1cc186bafb2cc0550f8afa2d47c99331597fc4eddfc63261faa7b56501cd367ab01db880da6cdbe45f71a8c8d94e4f343cdc SHA512 cd380728e57dfb6e5edff270bb002e443a2bc205476e077ecfc08adb15711ebe6e22763adc807ed5f85f7cd3af9b2c6b428151d92af5f3eef0f30ed7907c2a9a
|
||||
DIST MullvadVPN-2025.13_x86_64.rpm 95200485 BLAKE2B c0f055a42854db5b47f30413cca364bd34c78e0485d249ebe415cec74f035d9ae9fac6c78a93da5000bb266aa149c4b0b8a4be8c8b8c207f53415ad2bb555f23 SHA512 d83f6941db174d0afe8fc684aaca0f1bad5a56c44a6eeb2212b36505ec9ffa3d3603cdbda29e35454b0c7d42b61ffaee3705b9714e4eef15e6215b10efe6643d
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
# 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
|
||||
|
||||
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 )
|
||||
arm64? ( https://github.com/mullvad/mullvadvpn-app/releases/download/${PV}/MullvadVPN-${PV}_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
|
||||
|| (
|
||||
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