1 |
commit: 59aabc7502b0c032bb48c86e89c9aaaa76b3ae6e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 02:54:12 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 09:46:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59aabc75 |
7 |
|
8 |
sys-process/cronie: Bump to version 1.5.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-process/cronie/Manifest | 1 + |
14 |
sys-process/cronie/cronie-1.5.5.ebuild | 112 ++++++++++++++++++++++++++++++++ |
15 |
sys-process/cronie/files/cronie-crontab | 2 +- |
16 |
3 files changed, 114 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest |
19 |
index caf878723a8..85685348109 100644 |
20 |
--- a/sys-process/cronie/Manifest |
21 |
+++ b/sys-process/cronie/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST cronie-1.5.4.tar.gz 122452 BLAKE2B 042961390807c22aa1db3ab592470538d9a348d33fee8f088dfa20e45ee72c72d9502bf5eb5a957494c55d99a6705b94774442f5a2fb06eeab1aa0b0e1a4d6ae SHA512 40a8cd750bc18dcb264e88cf049b0ea66f053b7b6cc10f38fd4f4e6b912871f41ce7ad126521a08203e81c00846e001016b47da3c5e8730a7b49fc970d7b2a6a |
24 |
+DIST cronie-1.5.5.tar.gz 124642 BLAKE2B 19bb690a2ae66b9b99dcd0536c115fbdf46c0f1c58922e08fb31d9789df3358438001bd4b6b55d16e99e3927364c618ac22cb04661db1245d09709fcb58eef1e SHA512 88b0e877e5b36a0063b37a6ce82133117c95ebd4435ce843e09c6247ac50f36c66503b850aafa75512fab07d46a110ddfdf52e7e984638ed794588e338547166 |
25 |
|
26 |
diff --git a/sys-process/cronie/cronie-1.5.5.ebuild b/sys-process/cronie/cronie-1.5.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..33cb53bf282 |
29 |
--- /dev/null |
30 |
+++ b/sys-process/cronie/cronie-1.5.5.ebuild |
31 |
@@ -0,0 +1,112 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools cron flag-o-matic pam systemd user |
38 |
+ |
39 |
+DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron" |
40 |
+HOMEPAGE="https://github.com/cronie-crond/cronie" |
41 |
+SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="ISC BSD BSD-2 GPL-2" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
45 |
+IUSE="+anacron +inotify pam selinux" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ pam? ( sys-libs/pam ) |
49 |
+ anacron? ( !sys-process/anacron |
50 |
+ elibc_musl? ( sys-libs/obstack-standalone ) |
51 |
+ ) |
52 |
+" |
53 |
+RDEPEND="${DEPEND} |
54 |
+ sys-apps/debianutils |
55 |
+" |
56 |
+ |
57 |
+#cronie supports /etc/crontab |
58 |
+CRON_SYSTEM_CRONTAB="yes" |
59 |
+ |
60 |
+S="${WORKDIR}/${PN}-${P}" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}/${PN}-1.5.3-systemd.patch" |
64 |
+) |
65 |
+ |
66 |
+pkg_setup() { |
67 |
+ enewgroup crontab |
68 |
+} |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local myeconfargs=( |
77 |
+ $(use_with inotify) |
78 |
+ $(use_with pam) |
79 |
+ $(use_with selinux) |
80 |
+ $(use_enable anacron) |
81 |
+ --enable-syscrontab |
82 |
+ --with-daemon_username=cron |
83 |
+ --with-daemon_groupname=cron |
84 |
+ ) |
85 |
+ |
86 |
+ if use anacron; then |
87 |
+ use elibc_musl && append-cflags "-lobstack" |
88 |
+ fi |
89 |
+ SPOOL_DIR="/var/spool/cron/crontabs" \ |
90 |
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \ |
91 |
+ econf "${myeconfargs[@]}" |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ default |
96 |
+ |
97 |
+ docrondir -m 1730 -o root -g crontab |
98 |
+ fowners root:crontab /usr/bin/crontab |
99 |
+ fperms 2751 /usr/bin/crontab |
100 |
+ |
101 |
+ newconfd "${S}"/crond.sysconfig ${PN} |
102 |
+ |
103 |
+ insinto /etc |
104 |
+ newins "${FILESDIR}/${PN}-crontab" crontab |
105 |
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny |
106 |
+ |
107 |
+ insinto /etc/cron.d |
108 |
+ doins contrib/0hourly |
109 |
+ |
110 |
+ newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} |
111 |
+ newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond |
112 |
+ |
113 |
+ systemd_newunit contrib/cronie.systemd cronie.service |
114 |
+ |
115 |
+ if use anacron ; then |
116 |
+ local anacrondir="/var/spool/anacron" |
117 |
+ keepdir ${anacrondir} |
118 |
+ fowners root:cron ${anacrondir} |
119 |
+ fperms 0750 ${anacrondir} |
120 |
+ |
121 |
+ insinto /etc |
122 |
+ doins contrib/anacrontab |
123 |
+ |
124 |
+ insinto /etc/cron.hourly |
125 |
+ doins contrib/0anacron |
126 |
+ fperms 0750 /etc/cron.hourly/0anacron |
127 |
+ else |
128 |
+ insinto /etc/cron.d |
129 |
+ doins contrib/dailyjobs |
130 |
+ fi |
131 |
+ |
132 |
+ einstalldocs |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ cron_pkg_postinst |
137 |
+ |
138 |
+ if [[ -n "${REPLACING_VERSIONS}" ]] ; then |
139 |
+ ewarn "You should restart ${PN} daemon or else you might experience segfaults" |
140 |
+ ewarn "or ${PN} not working reliably anymore." |
141 |
+ einfo "(see https://bugs.gentoo.org/557406 for details.)" |
142 |
+ fi |
143 |
+} |
144 |
|
145 |
diff --git a/sys-process/cronie/files/cronie-crontab b/sys-process/cronie/files/cronie-crontab |
146 |
index 275f06c603d..89ac6315c79 100644 |
147 |
--- a/sys-process/cronie/files/cronie-crontab |
148 |
+++ b/sys-process/cronie/files/cronie-crontab |
149 |
@@ -4,7 +4,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin |
150 |
MAILTO=root |
151 |
HOME=/ |
152 |
|
153 |
-# For details see man 4 crontabs |
154 |
+# For details see man 5 crontab |
155 |
|
156 |
# Example of job definition: |
157 |
# .---------------- minute (0 - 59) |