1 |
commit: b995271380719cb19b36070412f1aa2ce9502505 |
2 |
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> |
3 |
AuthorDate: Mon Feb 27 00:00:52 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 09:04:08 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9952713 |
7 |
|
8 |
sys-process/fcron: drop 3.2.1-r8 |
9 |
|
10 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
sys-process/fcron/Manifest | 1 - |
14 |
sys-process/fcron/fcron-3.2.1-r8.ebuild | 266 -------------------------------- |
15 |
2 files changed, 267 deletions(-) |
16 |
|
17 |
diff --git a/sys-process/fcron/Manifest b/sys-process/fcron/Manifest |
18 |
index 2740f599c094..3bb7eaf2f17e 100644 |
19 |
--- a/sys-process/fcron/Manifest |
20 |
+++ b/sys-process/fcron/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST fcron-3.2.1.src.tar.gz 601142 BLAKE2B 184b74f9d64186b7d3aae87d48ed0107525fd0c73bb8db86408bd246592ff4fbcbc04f8ca0064868a8555d7c6be2f183172d62daeed75275cd836517da504d0f SHA512 ddfd3e3a297b843c924aacccffaa5c1c6b300497f39daa1cdb90dc4cf4bc757042b0b2c1f055c119c8128c64d830ee0e8757091610432f5ffcacca25d369e5cd |
23 |
DIST fcron-3.3.1.tar.gz 593688 BLAKE2B 5c2f91667c94fc9eae7ae014a7826ab1f26647a192425630dbdb84bbe3c9041be23a2a480eb13844dc18a5ba406fe77a157938af1e0343e5f9b0ce1a1405d66b SHA512 b9c5066bdf8588a6b8d811ccc0d49f1d41a17dabf898a280997a8136dc449c2a505c46868abf732f86184ff0720d51f17442691909acae8fb26edcd180cff281 |
24 |
|
25 |
diff --git a/sys-process/fcron/fcron-3.2.1-r8.ebuild b/sys-process/fcron/fcron-3.2.1-r8.ebuild |
26 |
deleted file mode 100644 |
27 |
index cdf73c577fde..000000000000 |
28 |
--- a/sys-process/fcron/fcron-3.2.1-r8.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,266 +0,0 @@ |
31 |
-# Copyright 1999-2021 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-WANT_AUTOMAKE="none" |
37 |
- |
38 |
-inherit autotools cron flag-o-matic pam systemd user-info |
39 |
- |
40 |
-DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" |
41 |
-HOMEPAGE="http://fcron.free.fr/" |
42 |
-SRC_URI="http://fcron.free.fr/archives/${P}.src.tar.gz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-KEYWORDS="amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" |
46 |
-IUSE="audit debug pam selinux l10n_fr +mta +system-crontab readline" |
47 |
- |
48 |
-DEPEND=" |
49 |
- acct-group/fcron |
50 |
- acct-user/fcron |
51 |
- virtual/libcrypt:= |
52 |
- audit? ( sys-process/audit ) |
53 |
- pam? ( sys-libs/pam ) |
54 |
- readline? ( sys-libs/readline:= ) |
55 |
- selinux? ( sys-libs/libselinux ) |
56 |
-" |
57 |
- |
58 |
-RDEPEND=" |
59 |
- ${DEPEND} |
60 |
- app-misc/editor-wrapper |
61 |
- mta? ( virtual/mta ) |
62 |
- pam? ( sys-auth/pambase ) |
63 |
-" |
64 |
- |
65 |
-PATCHES=( |
66 |
- "${FILESDIR}"/${PN}-3.1.1-noreadline.patch |
67 |
- "${FILESDIR}"/${PN}-3.2.1-configure-fix-audit-parameter-check.patch |
68 |
- "${FILESDIR}"/${PN}-3.2.1-musl-getopt-order.patch |
69 |
-) |
70 |
- |
71 |
-pkg_setup() { |
72 |
- rootuser=$(egetent passwd 0 | cut -d ':' -f 1) |
73 |
- [[ ${rootuser} ]] || rootuser=root |
74 |
- rootgroup=$(egetent group 0 | cut -d ':' -f 1) |
75 |
- [[ ${rootgroup} ]] || rootgroup=root |
76 |
-} |
77 |
- |
78 |
-src_prepare() { |
79 |
- default |
80 |
- |
81 |
- # respect LDFLAGS |
82 |
- sed "s:\(@LIBS@\):\$(LDFLAGS) \1:" -i Makefile.in || die "sed failed" |
83 |
- |
84 |
- # Adjust fcrontab path |
85 |
- sed -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' -i script/check_system_crontabs.sh || die |
86 |
- |
87 |
- mv configure.in configure.ac || die |
88 |
- |
89 |
- cp "${FILESDIR}"/crontab.2 "${WORKDIR}"/crontab || die |
90 |
- |
91 |
- eautoconf |
92 |
-} |
93 |
- |
94 |
-src_configure() { |
95 |
- # Don't try to pass --with-debug as it'll play with cflags as |
96 |
- # well, and run foreground which is a _very_ nasty idea for |
97 |
- # Gentoo. |
98 |
- use debug && append-cppflags -DDEBUG |
99 |
- |
100 |
- # bindir is used just for calling fcronsighup |
101 |
- local myeconfargs=( |
102 |
- --with-cflags="${CFLAGS}" |
103 |
- --bindir=/usr/libexec |
104 |
- --sbindir=/usr/libexec |
105 |
- $(use_with audit) |
106 |
- $(use_with mta sendmail) |
107 |
- $(use_with pam) |
108 |
- $(use_with readline) |
109 |
- $(use_with selinux) |
110 |
- --sysconfdir=/etc/fcron |
111 |
- --with-username=fcron |
112 |
- --with-groupname=fcron |
113 |
- --with-piddir=/run |
114 |
- --with-spooldir=/var/spool/fcron |
115 |
- --with-fifodir=/run |
116 |
- --with-fcrondyn=yes |
117 |
- --disable-checks |
118 |
- --with-editor=/usr/libexec/editor |
119 |
- --with-shell=/bin/sh |
120 |
- --without-db2man |
121 |
- --without-dsssl-dir |
122 |
- --with-rootname=${rootuser} |
123 |
- --with-rootgroup=${rootgroup} |
124 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
125 |
- ) |
126 |
- |
127 |
- econf "${myeconfargs[@]}" |
128 |
-} |
129 |
- |
130 |
-src_compile() { |
131 |
- default |
132 |
- |
133 |
- # bug #216460 |
134 |
- sed \ |
135 |
- -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ |
136 |
- -e 's:/usr/local/etc:/etc:g' \ |
137 |
- -e 's:/usr/local/:/usr/:g' \ |
138 |
- -i doc/*/*/*.{txt,1,5,8,html} \ |
139 |
- || die "unable to fix documentation references" |
140 |
-} |
141 |
- |
142 |
-src_install() { |
143 |
- keepdir /var/spool/fcron |
144 |
- |
145 |
- exeinto /usr/libexec |
146 |
- doexe fcron fcronsighup |
147 |
- |
148 |
- dobin fcrondyn fcrontab |
149 |
- |
150 |
- insinto /etc/fcron |
151 |
- doins files/fcron.{allow,deny,conf} |
152 |
- |
153 |
- if use system-crontab; then |
154 |
- dosym fcrontab /usr/bin/crontab |
155 |
- |
156 |
- exeinto /usr/libexec |
157 |
- newexe script/check_system_crontabs.sh check_system_crontabs |
158 |
- |
159 |
- insinto /etc/fcron |
160 |
- newins "${FILESDIR}"/fcrontab.2 fcrontab |
161 |
- |
162 |
- fowners ${rootuser}:fcron /etc/fcron/fcrontab |
163 |
- fperms 0640 /etc/fcron/fcrontab |
164 |
- |
165 |
- insinto /etc |
166 |
- newins "${FILESDIR}"/crontab.2 crontab |
167 |
- fi |
168 |
- |
169 |
- fowners fcron:fcron \ |
170 |
- /var/spool/fcron \ |
171 |
- /usr/bin/fcron{dyn,tab} |
172 |
- |
173 |
- # fcronsighup needs to be suid root, because it sends a HUP to the |
174 |
- # running fcron daemon, but only has to be called by the fcron group |
175 |
- # anyway |
176 |
- fowners ${rootuser}:fcron \ |
177 |
- /usr/libexec/fcronsighup \ |
178 |
- /etc/fcron/fcron.{allow,deny,conf} \ |
179 |
- /etc/fcron |
180 |
- |
181 |
- fperms 6770 /var/spool/fcron |
182 |
- fperms 6775 /usr/bin/fcron{dyn,tab} |
183 |
- |
184 |
- fperms 4710 /usr/libexec/fcronsighup |
185 |
- |
186 |
- fperms 0750 /etc/fcron |
187 |
- fperms 0640 /etc/fcron/fcron.{allow,deny,conf} |
188 |
- |
189 |
- use pam && pamd_mimic system-services fcron auth account session |
190 |
- cat > "${T}"/fcrontab.pam <<- EOF |
191 |
- # Don't ask for the user's password; fcrontab will only allow to |
192 |
- # change user if running as root. |
193 |
- auth sufficient pam_permit.so |
194 |
- |
195 |
- # Still use the system-auth stack for account and session as the |
196 |
- # sysadmin might have set up stuff properly, and also avoids |
197 |
- # sidestepping limits (since fcrontab will run \$EDITOR). |
198 |
- account include system-auth |
199 |
- session include system-auth |
200 |
- EOF |
201 |
- use pam && newpamd "${T}"/fcrontab.pam fcrontab |
202 |
- |
203 |
- newinitd "${FILESDIR}"/fcron.init-r5 fcron |
204 |
- systemd_newunit "${S}/script/fcron.init.systemd" fcron.service |
205 |
- |
206 |
- newconfd "${FILESDIR}"/fcron.confd fcron |
207 |
- |
208 |
- local DOCS=( MANIFEST VERSION "${WORKDIR}/crontab") |
209 |
- DOCS+=( doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt ) |
210 |
- |
211 |
- local HTML_DOCS=( doc/en/HTML/. ) |
212 |
- |
213 |
- einstalldocs |
214 |
- |
215 |
- newdoc files/fcron.conf fcron.conf.sample |
216 |
- doman doc/en/man/*.{1,5,8} |
217 |
- |
218 |
- for lang in fr; do |
219 |
- use l10n_${lang} || continue |
220 |
- |
221 |
- doman -i18n=${lang} doc/${lang}/man/*.{1,5,8} |
222 |
- |
223 |
- docinto html/${lang} |
224 |
- dodoc -r doc/${lang}/HTML/. |
225 |
- done |
226 |
-} |
227 |
- |
228 |
-pkg_postinst() { |
229 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
230 |
- # This is a new installation |
231 |
- elog "Make sure you execute" |
232 |
- elog "" |
233 |
- elog " # emerge --config ${CATEGORY}/${PN}" |
234 |
- elog "" |
235 |
- elog "to install the default systab on this system." |
236 |
- else |
237 |
- local v |
238 |
- for v in ${REPLACING_VERSIONS}; do |
239 |
- if ver_test "3.2.1" -gt ${v}; then |
240 |
- # This is an upgrade |
241 |
- |
242 |
- elog "fcron's default systab was updated since your last installation." |
243 |
- elog "You can use" |
244 |
- elog "" |
245 |
- elog " # emerge --config ${CATEGORY}/${PN}" |
246 |
- elog "" |
247 |
- elog "to re-install systab (do not call this command before you" |
248 |
- elog "have merged your configuration files)." |
249 |
- |
250 |
- # Show this elog only once |
251 |
- break |
252 |
- fi |
253 |
- done |
254 |
- fi |
255 |
- |
256 |
- if ! use system-crontab; then |
257 |
- echo "" |
258 |
- ewarn "Remember that fcron will *not* use /etc/cron.d in this configuration" |
259 |
- ewarn "due to USE=-system-crontab!" |
260 |
- echo "" |
261 |
- fi |
262 |
-} |
263 |
- |
264 |
-pkg_config() { |
265 |
- if [[ $(fcrontab -l -u systab 2>/dev/null) ]]; then |
266 |
- eerror "We're not going to make any change to your systab as long as" |
267 |
- eerror "it contains data; please clear it before proceeding." |
268 |
- eerror "You can do that with" |
269 |
- eerror "" |
270 |
- eerror " # fcrontab -u systab -r" |
271 |
- eerror "" |
272 |
- eerror "However you are advised to do this by hand to review existing" |
273 |
- eerror "systab just in case." |
274 |
- return 1 |
275 |
- fi |
276 |
- |
277 |
- if use system-crontab; then |
278 |
- elog "This is going to set up fcron to execute check_system_crontabs." |
279 |
- elog "In this configuration, /etc/crontab and /etc/cron.d are respected." |
280 |
- elog "Per default fcron will check for modifications every 10 minutes." |
281 |
- /usr/libexec/check_system_crontabs -v -i -f |
282 |
- else |
283 |
- elog "This is going to set up fcron to set up a default systab that" |
284 |
- elog "executes /etc/cron.{hourly,daily,weekly,monthly} but will ignore" |
285 |
- elog "/etc/crontab and /etc/cron.d." |
286 |
- fcrontab -u systab - <<- EOF |
287 |
- !serial(true) |
288 |
- 00 * * * * /bin/rm -f /var/spool/cron/lastrun/cron.hourly |
289 |
- 00 00 * * * /bin/rm -f /var/spool/cron/lastrun/cron.daily |
290 |
- 00 00 * * 6 /bin/rm -f /var/spool/cron/lastrun/cron.weekly |
291 |
- 00 00 1 * * /bin/rm -f /var/spool/cron/lastrun/cron.monthly |
292 |
- */10 * * * * /usr/bin/test -x /usr/sbin/run-crons && /usr/sbin/run-crons |
293 |
- !serial(false) |
294 |
- EOF |
295 |
- fi |
296 |
-} |