aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <public@thanosapollo.com>2023-11-06 12:58:34 +0200
committerThanos Apollo <public@thanosapollo.com>2023-11-06 13:00:09 +0200
commitcda3c298152cde05c308142b6331e33caa385c7d (patch)
tree6d37c329c8d1795cac6cd795ea6352f2fc541196 /net-vpn
parentnet-misc/youtube-dl: improve ebuild and inherit shell-completion (diff)
downloadguru-cda3c298152cde05c308142b6331e33caa385c7d.tar.gz
guru-cda3c298152cde05c308142b6331e33caa385c7d.tar.bz2
guru-cda3c298152cde05c308142b6331e33caa385c7d.zip
net-vpn/mullvadvpn-app: Add openrc service for mullvad-daemon
Signed-off-by: Thanos Apollo <public@thanosapollo.com>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/mullvadvpn-app/files/mullvad-daemon.initd7
-rw-r--r--net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild2
2 files changed, 9 insertions, 0 deletions
diff --git a/net-vpn/mullvadvpn-app/files/mullvad-daemon.initd b/net-vpn/mullvadvpn-app/files/mullvad-daemon.initd
new file mode 100644
index 000000000..6a7c96545
--- /dev/null
+++ b/net-vpn/mullvadvpn-app/files/mullvad-daemon.initd
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/mullvad-daemon"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_background=true
diff --git a/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild b/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild
index 2d0ec2ef3..81d0825e9 100644
--- a/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild
+++ b/net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild
@@ -49,6 +49,8 @@ src_install() {
dobin "${S}"/usr/bin/mullvad-exclude
dosym "/opt/Mullvad VPN/resources/mullvad-problem-report" /usr/bin/mullvad-problem-report
+ 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