aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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