Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/moolticute/files/, app-crypt/moolticute/
Date: Fri, 03 Jun 2022 05:32:50
Message-Id: 1654234188.6c9fd029ec53ec921bcbbce3ea12f6c5d01eb270.sam@gentoo
1 commit: 6c9fd029ec53ec921bcbbce3ea12f6c5d01eb270
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 05:24:36 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 05:29:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c9fd029
7
8 app-crypt/moolticute: Improve OpenRC script
9
10 The attached script updates a couple things which effectively is the same as
11 the current model however it follows the modular nature of the declarative
12 syntax.
13
14 Changes:
15 * Splits start_stop_daemon_args into command_background and command_user options.
16
17 Closes: https://bugs.gentoo.org/828074
18 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
19 Signed-off-by: Sam James <sam <AT> gentoo.org>
20
21 app-crypt/moolticute/files/moolticuted.init-r1 | 12 ++++++++++++
22 .../{moolticute-9999.ebuild => moolticute-0.43.19-r1.ebuild} | 4 ++--
23 app-crypt/moolticute/moolticute-9999.ebuild | 4 ++--
24 3 files changed, 16 insertions(+), 4 deletions(-)
25
26 diff --git a/app-crypt/moolticute/files/moolticuted.init-r1 b/app-crypt/moolticute/files/moolticuted.init-r1
27 new file mode 100644
28 index 000000000000..8c4942a34935
29 --- /dev/null
30 +++ b/app-crypt/moolticute/files/moolticuted.init-r1
31 @@ -0,0 +1,12 @@
32 +#!/sbin/openrc-run
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +command=/usr/bin/moolticuted
37 +command_background="yes"
38 +pidfile=/var/run/moolticuted.pid
39 +command_user="nobody:usb"
40 +
41 +depend() {
42 + need udev
43 +}
44
45 diff --git a/app-crypt/moolticute/moolticute-9999.ebuild b/app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
46 similarity index 92%
47 copy from app-crypt/moolticute/moolticute-9999.ebuild
48 copy to app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
49 index 08512b4847b9..ea058a356a20 100644
50 --- a/app-crypt/moolticute/moolticute-9999.ebuild
51 +++ b/app-crypt/moolticute/moolticute-0.43.19-r1.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2019 Gentoo Authors
54 +# Copyright 1999-2022 Gentoo Authors
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=7
58 @@ -53,7 +53,7 @@ src_install() {
59 emake install INSTALL_ROOT="${D}"
60
61 udev_dorules "${FILESDIR}/50-mooltipass.rule"
62 - newinitd "${FILESDIR}/moolticuted.init" moolticuted
63 + newinitd "${FILESDIR}/moolticuted.init-r1" moolticuted
64 }
65
66 pkg_postinst() {
67
68 diff --git a/app-crypt/moolticute/moolticute-9999.ebuild b/app-crypt/moolticute/moolticute-9999.ebuild
69 index 08512b4847b9..ea058a356a20 100644
70 --- a/app-crypt/moolticute/moolticute-9999.ebuild
71 +++ b/app-crypt/moolticute/moolticute-9999.ebuild
72 @@ -1,4 +1,4 @@
73 -# Copyright 1999-2019 Gentoo Authors
74 +# Copyright 1999-2022 Gentoo Authors
75 # Distributed under the terms of the GNU General Public License v2
76
77 EAPI=7
78 @@ -53,7 +53,7 @@ src_install() {
79 emake install INSTALL_ROOT="${D}"
80
81 udev_dorules "${FILESDIR}/50-mooltipass.rule"
82 - newinitd "${FILESDIR}/moolticuted.init" moolticuted
83 + newinitd "${FILESDIR}/moolticuted.init-r1" moolticuted
84 }
85
86 pkg_postinst() {