1 |
commit: ee9dcea0ca6023d17537c1f40a251af9f2e8f839 |
2 |
Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 20 05:13:32 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 21:40:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9dcea0 |
7 |
|
8 |
sys-apps/busybox: Add openrc files for crond |
9 |
|
10 |
Closes: https://bugs.gentoo.org/751988 |
11 |
Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sys-apps/busybox/busybox-1.34.1-r1.ebuild | 4 ++++ |
15 |
sys-apps/busybox/files/crond.confd | 2 ++ |
16 |
sys-apps/busybox/files/crond.initd | 12 ++++++++++++ |
17 |
3 files changed, 18 insertions(+) |
18 |
|
19 |
diff --git a/sys-apps/busybox/busybox-1.34.1-r1.ebuild b/sys-apps/busybox/busybox-1.34.1-r1.ebuild |
20 |
index 654edbe4c4b7..80086ac713ca 100644 |
21 |
--- a/sys-apps/busybox/busybox-1.34.1-r1.ebuild |
22 |
+++ b/sys-apps/busybox/busybox-1.34.1-r1.ebuild |
23 |
@@ -293,6 +293,10 @@ src_install() { |
24 |
if busybox_config_enabled ASH && ! use make-symlinks; then |
25 |
dosym -r /bin/busybox /bin/ash |
26 |
fi |
27 |
+ if busybox_config_enabled CROND; then |
28 |
+ newconfd "${FILESDIR}"/crond.confd busybox-crond |
29 |
+ newinitd "${FILESDIR}"/crond.initd busybox-crond |
30 |
+ fi |
31 |
|
32 |
# bundle up the symlink files for use later |
33 |
emake DESTDIR="${ED}" install |
34 |
|
35 |
diff --git a/sys-apps/busybox/files/crond.confd b/sys-apps/busybox/files/crond.confd |
36 |
new file mode 100644 |
37 |
index 000000000000..707366252913 |
38 |
--- /dev/null |
39 |
+++ b/sys-apps/busybox/files/crond.confd |
40 |
@@ -0,0 +1,2 @@ |
41 |
+# Config file for /etc/init.d/busybox-crond |
42 |
+CRONDARGS= |
43 |
|
44 |
diff --git a/sys-apps/busybox/files/crond.initd b/sys-apps/busybox/files/crond.initd |
45 |
new file mode 100644 |
46 |
index 000000000000..e098b14714a4 |
47 |
--- /dev/null |
48 |
+++ b/sys-apps/busybox/files/crond.initd |
49 |
@@ -0,0 +1,12 @@ |
50 |
+#!/sbin/openrc-run |
51 |
+# Copyright 1999-2021 Gentoo Foundation |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+command="/bin/busybox crond" |
55 |
+command_args="${CRONDARGS}" |
56 |
+pidfile="/run/crond.pid" |
57 |
+ |
58 |
+depend() { |
59 |
+ need clock logger |
60 |
+ provide cron |
61 |
+} |