commit:     cda3c298152cde05c308142b6331e33caa385c7d
Author:     Thanos Apollo <public <AT> thanosapollo <DOT> com>
AuthorDate: Mon Nov  6 10:58:34 2023 +0000
Commit:     thanosapollo <public <AT> thanosapollo <DOT> com>
CommitDate: Mon Nov  6 11:00:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cda3c298

net-vpn/mullvadvpn-app: Add openrc service for mullvad-daemon

Signed-off-by: Thanos Apollo <public <AT> thanosapollo.com>

 net-vpn/mullvadvpn-app/files/mullvad-daemon.initd   | 7 +++++++
 net-vpn/mullvadvpn-app/mullvadvpn-app-2023.5.ebuild | 2 ++
 2 files changed, 9 insertions(+)

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 0000000000..6a7c965459
--- /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 2d0ec2ef34..81d0825e99 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
 

Reply via email to