Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/files/, sys-process/cronie/
Date: Fri, 23 Sep 2022 00:42:48
Message-Id: 1663893383.26428b61fa8dbab55a1fbfea3a6d6e67565a12a4.sam@gentoo
1 commit: 26428b61fa8dbab55a1fbfea3a6d6e67565a12a4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 00:36:23 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 00:36:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26428b61
7
8 sys-process/cronie: drop 1.5.7, 1.6.0-r2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-process/cronie/Manifest | 2 -
13 sys-process/cronie/cronie-1.5.7.ebuild | 116 --------------------
14 sys-process/cronie/cronie-1.6.0-r2.ebuild | 119 ---------------------
15 .../cronie-1.6.0-crontab_entries_regression.patch | 21 ----
16 4 files changed, 258 deletions(-)
17
18 diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest
19 index ad71e811a63a..7de940b99a44 100644
20 --- a/sys-process/cronie/Manifest
21 +++ b/sys-process/cronie/Manifest
22 @@ -1,3 +1 @@
23 -DIST cronie-1.5.7.tar.gz 148739 BLAKE2B 3e9f8b78a29d2304e2ece7ce2b794b80e6023428d5b07f21936f3690eae2741b9e6814f966d8e3cb3d4f9daf32b3fe730ce6adebb76f8779c3f5039d2a19b6a4 SHA512 cddf1ffd518bf8daed8ae2634ace41da669f6d1039b1936b602200e2f2902944d8e84c80f73f6ab67b2fa755c4192f9181cf44d87bc893201b756367ab55148e
24 -DIST cronie-1.6.0.tar.gz 149859 BLAKE2B 0b63b07d8138c74c57ff0cbe1ae3cd3abb21178116322327d06cbc5e12a0c54e5f2512fb9f810787721f7ad1bba897f206b96fd83645bbfeeace734eedbcaf3d SHA512 9d078e2f8ffc0d2feaa16d419fcccf354f8de8021869b14d315b6f0a0acbd888da98fb47888b71672354ec221bbbaf5b77a543b909ae44b0fc6d2b39394ddf5b
25 DIST cronie-1.6.1.tar.gz 149913 BLAKE2B 7b563b90f386a8df09398661e2b3ddc1f83d6c0d19290a02c0622be461e1d160218572adf132d634c60ef8fd0a4bb100e830b90e26270c28c75a69591ccc18a6 SHA512 1e095df9670ec25d6629f4cf2cacd82c6c1cb1487a859815a7881a1d130e4f18f9976396f773abae24dadc232166bb6467bbaeac1cb0254209fcadf3530d5e6f
26
27 diff --git a/sys-process/cronie/cronie-1.5.7.ebuild b/sys-process/cronie/cronie-1.5.7.ebuild
28 deleted file mode 100644
29 index e4bba82a5797..000000000000
30 --- a/sys-process/cronie/cronie-1.5.7.ebuild
31 +++ /dev/null
32 @@ -1,116 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit autotools cron flag-o-matic pam systemd
39 -
40 -DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron"
41 -HOMEPAGE="https://github.com/cronie-crond/cronie"
42 -SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz"
43 -
44 -LICENSE="ISC BSD BSD-2 GPL-2"
45 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
46 -IUSE="+anacron +inotify pam selinux"
47 -
48 -DEPEND="
49 - acct-group/crontab
50 - pam? ( sys-libs/pam )
51 - anacron? (
52 - !sys-process/anacron
53 - !sys-process/systemd-cron
54 - elibc_musl? ( sys-libs/obstack-standalone )
55 - )
56 -"
57 -RDEPEND="${DEPEND}
58 - sys-apps/debianutils
59 -"
60 -
61 -#cronie supports /etc/crontab
62 -CRON_SYSTEM_CRONTAB="yes"
63 -
64 -S="${WORKDIR}/${PN}-${P}"
65 -
66 -PATCHES=(
67 - "${FILESDIR}/${PN}-1.5.3-systemd.patch"
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 - if use elibc_musl ; then
88 - append-cflags "-lobstack"
89 - fi
90 - fi
91 - SPOOL_DIR="/var/spool/cron/crontabs" \
92 - ANACRON_SPOOL_DIR="/var/spool/anacron" \
93 - econf "${myeconfargs[@]}"
94 -}
95 -
96 -src_install() {
97 - default
98 -
99 - docrondir -m 1730 -o root -g crontab
100 - fowners root:crontab /usr/bin/crontab
101 - fperms 2751 /usr/bin/crontab
102 -
103 - newconfd "${S}"/crond.sysconfig ${PN}
104 -
105 - insinto /etc
106 - newins "${FILESDIR}/${PN}-crontab" crontab
107 - newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
108 -
109 - insinto /etc/cron.d
110 - doins contrib/0hourly
111 -
112 - newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
113 -
114 - if use pam ; then
115 - newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
116 - fi
117 -
118 - systemd_newunit contrib/cronie.systemd cronie.service
119 -
120 - if use anacron ; then
121 - local anacrondir="/var/spool/anacron"
122 - keepdir ${anacrondir}
123 - fowners root:cron ${anacrondir}
124 - fperms 0750 ${anacrondir}
125 -
126 - insinto /etc
127 - doins contrib/anacrontab
128 -
129 - insinto /etc/cron.hourly
130 - doins contrib/0anacron
131 - fperms 0750 /etc/cron.hourly/0anacron
132 - else
133 - insinto /etc/cron.d
134 - doins contrib/dailyjobs
135 - fi
136 -
137 - einstalldocs
138 -}
139 -
140 -pkg_postinst() {
141 - cron_pkg_postinst
142 -
143 - if [[ -n "${REPLACING_VERSIONS}" ]] ; then
144 - ewarn "You should restart ${PN} daemon or else you might experience segfaults"
145 - ewarn "or ${PN} not working reliably anymore."
146 - einfo "(see https://bugs.gentoo.org/557406 for details.)"
147 - fi
148 -}
149
150 diff --git a/sys-process/cronie/cronie-1.6.0-r2.ebuild b/sys-process/cronie/cronie-1.6.0-r2.ebuild
151 deleted file mode 100644
152 index 6f15a911b057..000000000000
153 --- a/sys-process/cronie/cronie-1.6.0-r2.ebuild
154 +++ /dev/null
155 @@ -1,119 +0,0 @@
156 -# Copyright 1999-2022 Gentoo Authors
157 -# Distributed under the terms of the GNU General Public License v2
158 -
159 -EAPI=7
160 -
161 -inherit autotools cron flag-o-matic pam systemd
162 -
163 -DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron"
164 -HOMEPAGE="https://github.com/cronie-crond/cronie"
165 -SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz"
166 -
167 -LICENSE="ISC BSD BSD-2 GPL-2"
168 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
169 -IUSE="+anacron +inotify pam selinux"
170 -
171 -DEPEND="
172 - acct-group/crontab
173 - pam? ( sys-libs/pam )
174 - anacron? (
175 - !sys-process/anacron
176 - !sys-process/systemd-cron
177 - elibc_musl? ( sys-libs/obstack-standalone )
178 - )
179 -"
180 -RDEPEND="${DEPEND}
181 - sys-apps/debianutils
182 -"
183 -
184 -#cronie supports /etc/crontab
185 -CRON_SYSTEM_CRONTAB="yes"
186 -
187 -S="${WORKDIR}/${PN}-${P}"
188 -
189 -PATCHES=(
190 - "${FILESDIR}/${PN}-1.5.3-systemd.patch"
191 - "${FILESDIR}/${P}-crontab_entries_regression.patch" #836888
192 -)
193 -
194 -src_prepare() {
195 - default
196 - eautoreconf
197 -}
198 -
199 -src_configure() {
200 - local myeconfargs=(
201 - $(use_with inotify)
202 - $(use_with pam)
203 - $(use_with selinux)
204 - $(use_enable anacron)
205 - --enable-syscrontab
206 - # Required for correct pidfile location #835814
207 - --runstatedir="${EPREFIX}/run"
208 - --with-daemon_username=cron
209 - --with-daemon_groupname=cron
210 - )
211 -
212 - if use anacron ; then
213 - if use elibc_musl ; then
214 - append-cflags "-lobstack"
215 - fi
216 - fi
217 - SPOOL_DIR="/var/spool/cron/crontabs" \
218 - ANACRON_SPOOL_DIR="/var/spool/anacron" \
219 - econf "${myeconfargs[@]}"
220 -}
221 -
222 -src_install() {
223 - default
224 -
225 - docrondir -m 1730 -o root -g crontab
226 - fowners root:crontab /usr/bin/crontab
227 - fperms 2751 /usr/bin/crontab
228 -
229 - newconfd "${S}"/crond.sysconfig ${PN}
230 -
231 - insinto /etc
232 - newins "${FILESDIR}/${PN}-crontab" crontab
233 - newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
234 -
235 - insinto /etc/cron.d
236 - doins contrib/dailyjobs
237 -
238 - newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
239 -
240 - if use pam ; then
241 - newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
242 - fi
243 -
244 - systemd_newunit contrib/cronie.systemd cronie.service
245 -
246 - if use anacron ; then
247 - local anacrondir="/var/spool/anacron"
248 - keepdir ${anacrondir}
249 - fowners root:cron ${anacrondir}
250 - fperms 0750 ${anacrondir}
251 -
252 - insinto /etc
253 - doins contrib/anacrontab
254 -
255 - insinto /etc/cron.hourly
256 - doins contrib/0anacron
257 - fperms 0750 /etc/cron.hourly/0anacron
258 -
259 - insinto /etc/cron.d
260 - doins contrib/0hourly
261 - fi
262 -
263 - einstalldocs
264 -}
265 -
266 -pkg_postinst() {
267 - cron_pkg_postinst
268 -
269 - if [[ -n "${REPLACING_VERSIONS}" ]] ; then
270 - ewarn "You should restart ${PN} daemon or else you might experience segfaults"
271 - ewarn "or ${PN} not working reliably anymore."
272 - einfo "(see https://bugs.gentoo.org/557406 for details.)"
273 - fi
274 -}
275
276 diff --git a/sys-process/cronie/files/cronie-1.6.0-crontab_entries_regression.patch b/sys-process/cronie/files/cronie-1.6.0-crontab_entries_regression.patch
277 deleted file mode 100644
278 index 160c03116415..000000000000
279 --- a/sys-process/cronie/files/cronie-1.6.0-crontab_entries_regression.patch
280 +++ /dev/null
281 @@ -1,21 +0,0 @@
282 -From 62e53f1cdb9c1e12a01ee7814c92cd937d50328d Mon Sep 17 00:00:00 2001
283 -From: w30023233 <wangyuhang27@××××××.com>
284 -Date: Wed, 23 Mar 2022 15:40:01 +0800
285 -Subject: [PATCH] Fix regression in handling 1-5 crontab entries
286 -
287 ----
288 - src/entry.c | 1 +
289 - 1 file changed, 1 insertion(+)
290 -
291 -diff --git a/src/entry.c b/src/entry.c
292 -index e9e258b..bb7cb62 100644
293 ---- a/src/entry.c
294 -+++ b/src/entry.c
295 -@@ -595,6 +595,7 @@ get_range(bitstr_t * bits, int low, int high, const char *names[],
296 - return (EOF);
297 -
298 - case R_RANGE:
299 -+ unget_char(ch, file);
300 - if (get_number(&num2, low, names, file) != EOF) {
301 - state = R_RANGE_NUM2;
302 - break;