commit:     6c9fd029ec53ec921bcbbce3ea12f6c5d01eb270
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  3 05:24:36 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun  3 05:29:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c9fd029

app-crypt/moolticute: Improve OpenRC script

The attached script updates a couple things which effectively is the same as
the current model however it follows the modular nature of the declarative
syntax.

Changes:
* Splits start_stop_daemon_args into command_background and command_user 
options.

Closes: https://bugs.gentoo.org/828074
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-crypt/moolticute/files/moolticuted.init-r1               | 12 ++++++++++++
 .../{moolticute-9999.ebuild => moolticute-0.43.19-r1.ebuild} |  4 ++--
 app-crypt/moolticute/moolticute-9999.ebuild                  |  4 ++--
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/app-crypt/moolticute/files/moolticuted.init-r1 
b/app-crypt/moolticute/files/moolticuted.init-r1
new file mode 100644
index 000000000000..8c4942a34935
--- /dev/null
+++ b/app-crypt/moolticute/files/moolticuted.init-r1
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/moolticuted
+command_background="yes"
+pidfile=/var/run/moolticuted.pid
+command_user="nobody:usb"
+
+depend() {
+       need udev
+}

diff --git a/app-crypt/moolticute/moolticute-9999.ebuild 
b/app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
similarity index 92%
copy from app-crypt/moolticute/moolticute-9999.ebuild
copy to app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
index 08512b4847b9..ea058a356a20 100644
--- a/app-crypt/moolticute/moolticute-9999.ebuild
+++ b/app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -53,7 +53,7 @@ src_install() {
        emake install INSTALL_ROOT="${D}"
 
        udev_dorules "${FILESDIR}/50-mooltipass.rule"
-       newinitd "${FILESDIR}/moolticuted.init" moolticuted
+       newinitd "${FILESDIR}/moolticuted.init-r1" moolticuted
 }
 
 pkg_postinst() {

diff --git a/app-crypt/moolticute/moolticute-9999.ebuild 
b/app-crypt/moolticute/moolticute-9999.ebuild
index 08512b4847b9..ea058a356a20 100644
--- a/app-crypt/moolticute/moolticute-9999.ebuild
+++ b/app-crypt/moolticute/moolticute-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -53,7 +53,7 @@ src_install() {
        emake install INSTALL_ROOT="${D}"
 
        udev_dorules "${FILESDIR}/50-mooltipass.rule"
-       newinitd "${FILESDIR}/moolticuted.init" moolticuted
+       newinitd "${FILESDIR}/moolticuted.init-r1" moolticuted
 }
 
 pkg_postinst() {

Reply via email to