1 | Summary: The Vixie cron daemon for executing specified programs at set times. |
---|
2 | Summary(ja): Vixie cron デーモン - 指定された時刻に特定のプログラムを実行する |
---|
3 | Name: vixie-cron |
---|
4 | Version: 3.0.1 |
---|
5 | Release: 90%{?_dist_release} |
---|
6 | License: distributable |
---|
7 | Group: System Environment/Base |
---|
8 | Source0: ftp://ftp.vix.com/pub/vixie/vixie-cron-3.0.1.tar.gz |
---|
9 | Source1: vixie-cron.init |
---|
10 | Patch0: vixie-cron-3.0.1-redhat.patch |
---|
11 | Patch1: vixie-cron-3.0.1-security.patch |
---|
12 | Patch2: vixie-cron-3.0.1-security2.patch |
---|
13 | Patch3: vixie-cron-3.0.1-badsig.patch |
---|
14 | Patch4: vixie-cron-3.0.1-crontab.patch |
---|
15 | Patch5: vixie-cron-3.0.1-sigchld.patch |
---|
16 | Patch6: vixie-cron-3.0.1-sprintf.patch |
---|
17 | Patch7: vixie-cron-3.0.1-sigchld2.patch |
---|
18 | Patch8: vixie-cron-3.0.1-crond.patch |
---|
19 | Patch9: vixie-cron-3.0.1-dst.patch |
---|
20 | Patch10: vixie-cron-3.0.1-0days.patch |
---|
21 | Patch11: vixie-cron-3.0.1-nodot.patch |
---|
22 | Patch12: vixie-cron-3.0.1-syslog.patch |
---|
23 | Patch13: vixie-cron-3.0.1-crontabloc.patch |
---|
24 | Patch14: vixie-cron-3.0.1-name.patch |
---|
25 | Patch15: vixie-cron-3.0.1-time.patch |
---|
26 | Patch16: vixie-cron-3.0.1-newtime.patch |
---|
27 | Patch17: vixie-cron-3.0.1-buffer.patch |
---|
28 | Patch18: vixie-cron-3.0.1-timeaftertime.patch |
---|
29 | Patch19: vixie-cron-3.0.1-cront_stdin.patch |
---|
30 | Patch20: vixie-cron-3.0.1-fprintf.patch |
---|
31 | Patch21: vixie-cron-3.0.1-nonstrip.patch |
---|
32 | Patch22: vixie-cron-3.0.1-root_-u-85879.patch |
---|
33 | Patch24: vixie-cron-3.0.1-vfork-105616.patch |
---|
34 | Patch25: vixie-cron-3.0.1-pie.patch |
---|
35 | # Vine Patch(es) |
---|
36 | Patch100: vixie-cron-3.0.1-linux.patch |
---|
37 | |
---|
38 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
39 | Requires: syslog bash >= 2.0 |
---|
40 | #Requires(pre): /sbin/chkconfig /etc/init.d /sbin/service |
---|
41 | Requires(pre): /sbin/chkconfig /sbin/service |
---|
42 | |
---|
43 | |
---|
44 | %description |
---|
45 | The vixie-cron package contains the Vixie version of cron. Cron is a |
---|
46 | standard UNIX daemon that runs specified programs at scheduled times. |
---|
47 | Vixie cron adds better security and more powerful configuration |
---|
48 | options to the standard version of cron. |
---|
49 | |
---|
50 | %description -l ja |
---|
51 | vixie-cron パッケージには Vixie 版 cron が収録されています. |
---|
52 | cron とは標準的な UNIX のデーモンで,予め指定した時刻に特定の |
---|
53 | プログラムを実行するものです.Vixie cron は標準の cron に加え, |
---|
54 | セキュリティ面を強化し,設定オプションも豊富に追加されています. |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup |
---|
59 | %patch0 -p1 -b .norh |
---|
60 | %patch1 -p1 -b .nomisc |
---|
61 | %patch2 -p1 -b .security2 |
---|
62 | %patch3 -p1 -b .badsig |
---|
63 | %patch4 -p1 -b .crontabhole |
---|
64 | %patch5 -p1 -b .sigchld |
---|
65 | %patch6 -p1 -b .sprintf |
---|
66 | %patch7 -p1 -b .sigchld |
---|
67 | %patch8 -p1 -b .crond |
---|
68 | %patch9 -p1 -b .dst |
---|
69 | %patch10 -p1 -b .0days |
---|
70 | %patch11 -p1 -b .nodot |
---|
71 | %patch12 -p1 -b .syslog |
---|
72 | %patch13 -p1 -b .crontabloc |
---|
73 | %patch14 -p1 -b .name |
---|
74 | %patch15 -p1 -b .time |
---|
75 | %patch16 -p1 -b .newtime |
---|
76 | %patch17 -p1 -b .buffer |
---|
77 | %patch18 -p1 -b .timeaftertime |
---|
78 | %patch19 -p1 -b .cront_stdin |
---|
79 | %patch20 -p1 -b .fprintf |
---|
80 | %patch21 -p1 -b .nonstrip |
---|
81 | %patch22 -p1 -b .root_-u |
---|
82 | %patch24 -p1 -b .vfork |
---|
83 | %ifnarch alpha |
---|
84 | %patch25 -p1 -b .pie |
---|
85 | %endif |
---|
86 | # Vine Patch(es) |
---|
87 | %patch100 -p1 -b .linux |
---|
88 | |
---|
89 | |
---|
90 | %build |
---|
91 | make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" |
---|
92 | |
---|
93 | |
---|
94 | %install |
---|
95 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
96 | mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin} |
---|
97 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} |
---|
98 | mkdir -p $RPM_BUILD_ROOT%{_initdir} |
---|
99 | make install DESTDIR=$RPM_BUILD_ROOT DESTMAN=$RPM_BUILD_ROOT%{_mandir} |
---|
100 | mkdir -p $RPM_BUILD_ROOT/var/spool/cron |
---|
101 | chmod 700 $RPM_BUILD_ROOT/var/spool/cron |
---|
102 | mkdir -p $RPM_BUILD_ROOT/etc/cron.d |
---|
103 | chmod 755 $RPM_BUILD_ROOT/etc/cron.d |
---|
104 | |
---|
105 | install -m755 $RPM_SOURCE_DIR/vixie-cron.init $RPM_BUILD_ROOT%{_initdir}/crond |
---|
106 | |
---|
107 | %clean |
---|
108 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
109 | |
---|
110 | |
---|
111 | %post |
---|
112 | /sbin/chkconfig --add crond |
---|
113 | |
---|
114 | |
---|
115 | %preun |
---|
116 | if [ "$1" = 0 ]; then |
---|
117 | [ -f /var/lock/subsys/crond ] && /sbin/service crond stop >/dev/null 2>&1 |
---|
118 | /sbin/chkconfig --del crond |
---|
119 | fi |
---|
120 | |
---|
121 | |
---|
122 | %postun |
---|
123 | if [ "$1" -ge "1" ]; then |
---|
124 | /sbin/service crond condrestart >/dev/null 2>&1 |
---|
125 | fi |
---|
126 | |
---|
127 | |
---|
128 | %triggerpostun -- vixie-cron < 3.0.1-56 |
---|
129 | /sbin/chkconfig --del crond |
---|
130 | /sbin/chkconfig --add crond |
---|
131 | |
---|
132 | |
---|
133 | %files |
---|
134 | %defattr(-,root,root) |
---|
135 | /usr/sbin/crond |
---|
136 | /usr/bin/crontab |
---|
137 | %{_mandir}/man8/crond.* |
---|
138 | %{_mandir}/man8/cron.* |
---|
139 | %{_mandir}/man5/crontab.* |
---|
140 | %{_mandir}/man1/crontab.* |
---|
141 | |
---|
142 | %dir /var/spool/cron |
---|
143 | %dir /etc/cron.d |
---|
144 | |
---|
145 | %config %{_initdir}/crond |
---|
146 | |
---|
147 | %changelog |
---|
148 | * Wed Dec 22 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.1-90 |
---|
149 | - using Virtual package name for syslog daemon in Requires |
---|
150 | - replace "sysklogd" to "syslog" |
---|
151 | |
---|
152 | * Wed Mar 3 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.1-89 |
---|
153 | - fix a trivial typo s/crom/cron/ on the "Happy Dolls Festival" day :-P |
---|
154 | |
---|
155 | * Sun Feb 07 2010 NAKAMURA Kenta <kenta@vinelinux.org> 3.0.1-88 |
---|
156 | - rebuilt with new toolchain |
---|
157 | |
---|
158 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl5 |
---|
159 | - applied new versioning policy, spec in utf-8 |
---|
160 | |
---|
161 | * Mon Jul 03 2006 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl3 |
---|
162 | - s/Copylight/License/ |
---|
163 | |
---|
164 | * Thu Mar 25 2004 Tomoya TAKA <taka@vinelinux.org> 3.0.1-87vl2 |
---|
165 | - don't apply vixie-cron-3.0.1-pie.patch on alpha |
---|
166 | |
---|
167 | * Mon Mar 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.1-87vl1 |
---|
168 | - rebuild with new toolchains |
---|
169 | - based on Fedora development 3.0.1-87 |
---|
170 | * Wed Feb 4 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-86 |
---|
171 | - Add security_getenforce check. |
---|
172 | * Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-85 |
---|
173 | - Fix call to is_selinux_enabled() |
---|
174 | * Mon Dec 8 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-84 |
---|
175 | - change daemon flag to 1 |
---|
176 | * Wed Dec 3 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-83 |
---|
177 | - Add daemon to make sure child is clean |
---|
178 | * Fri Nov 7 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-82 |
---|
179 | - add vixie-cron-3.0.1-pie.patch to build crond as pie (#108414) |
---|
180 | [Ulrich Drepper] |
---|
181 | * Tue Sep 30 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-80 |
---|
182 | - add vixie-cron-3.0.1-vfork-105616.patch to use fork instead of vfork |
---|
183 | (#105616) [report and patch from ian@caliban.org] |
---|
184 | - update vixie-cron-3.0.1-redhat.patch not to change DESTMAN redundantly |
---|
185 | (it is overrriden in the spec file anyway) |
---|
186 | * Wed Mar 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-75 |
---|
187 | - add patch from Valdis Kletnieks to allow root to run "crontab -u <user>" |
---|
188 | even for users that aren't allowed to |
---|
189 | * Wed Feb 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-74 |
---|
190 | - fix preun script typo (#75137) [reported by Peter Bieringer] |
---|
191 | * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 3.0.1-73 |
---|
192 | - don't set SIGCHLD to SIG_IGN and then try and wait... (#84046) |
---|
193 | * Fri Feb 7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.0.1-72 |
---|
194 | - adjust cron.d patch so that it ignores file with names that begin with '#' |
---|
195 | or end with '~', '.rpmorig', '.rpmsave', or '.rpmnew' |
---|
196 | - merge hunk of buffer overflow patch into the cron.d patch |
---|
197 | * Sat Jul 20 2002 Akira TAGOH <tagoh@redhat.com> 3.0.1-69 |
---|
198 | - vixie-cron-3.0.1-nonstrip.patch: applied to fix the stripped binary issue. |
---|
199 | * Mon Jun 10 2002 Bill Huang <bhuang@redhat.com> |
---|
200 | - Fix preun bugs.(#55340) |
---|
201 | - Fix fprintf bugs.(#65209) |
---|
202 | * Mon Apr 15 2002 Bill Huang <bhuang@redhat.com> |
---|
203 | - Fixed #62963. |
---|
204 | |
---|
205 | * Tue Sep 04 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl2 |
---|
206 | - remove file depend (/etc/init.d) |
---|
207 | |
---|
208 | * Sun Sep 02 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl1 |
---|
209 | - based on 3.0.1-63 from Rawhide and rebuilt for Vine |
---|
210 | |
---|
211 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
---|
212 | - Bump release + rebuild. |
---|
213 | |
---|
214 | * Thu Mar 8 2001 Bill Nottingham <notting@redhat.com> |
---|
215 | - add patch from Alan Eldridge <alane@geeksrus.net> to |
---|
216 | fix double execution of jobs (#29868) |
---|
217 | |
---|
218 | * Mon Feb 11 2001 Bill Nottingham <notting@redhat.com> |
---|
219 | - fix buffer overflow in crontab |
---|
220 | |
---|
221 | * Wed Feb 7 2001 Trond Eivind Glomsr <teg@redhat.com> |
---|
222 | - fix usage string in initscript (#26533) |
---|
223 | |
---|
224 | * Tue Feb 6 2001 Bill Nottingham <notting@redhat.com> |
---|
225 | - fix build with new glibc (#25931) |
---|
226 | |
---|
227 | * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com> |
---|
228 | - change i18n mechanism |
---|
229 | |
---|
230 | * Fri Jan 19 2001 Bill Nottingham <notting@redhat.com> |
---|
231 | - log as 'crond', not 'CROND' (#19410) |
---|
232 | - account for shifts in system clock (#23230, patch from <pererik@onedial.se>) |
---|
233 | - i18n-ize initscript |
---|
234 | |
---|
235 | * Thu Aug 24 2000 Than Ngo <than@redhat.com> |
---|
236 | - fix to set startup position correct at update |
---|
237 | |
---|
238 | * Wed Aug 24 2000 Than Ngo <than@redhat.com> |
---|
239 | - add /sbin/service to Prereq |
---|
240 | - call /sbin/service instead service |
---|
241 | - fix startup position (Bug #13353) |
---|
242 | |
---|
243 | * Mon Aug 7 2000 Bill Nottingham <notting@redhat.com> |
---|
244 | - fix crond logging patch (dan@doom.cmc.msu.ru) |
---|
245 | - log via syslog (suggestion from jos@xos.nl) |
---|
246 | - put system crontab location in crontab(5) (#14842) |
---|
247 | |
---|
248 | * Fri Jul 28 2000 Bill Nottingham <notting@redhat.com> |
---|
249 | - fix condrestart |
---|
250 | |
---|
251 | * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com> |
---|
252 | - fix reload bug (#14065) |
---|
253 | |
---|
254 | * Fri Jul 14 2000 Bill Nottingham <notting@redhat.com> |
---|
255 | - move initscript back |
---|
256 | |
---|
257 | * Thu Jul 13 2000 Prospector <bugzilla@redhat.com> |
---|
258 | - automatic rebuild |
---|
259 | |
---|
260 | * Thu Jul 6 2000 Bill Nottingham <notting@redhat.com> |
---|
261 | - prereq /etc/init.d |
---|
262 | |
---|
263 | * Mon Jul 3 2000 Bill Nottingham <notting@redhat.com> |
---|
264 | - fix %%post; we do condrestart in %%postun |
---|
265 | |
---|
266 | * Thu Jun 29 2000 Bill Nottingham <notting@redhat.com> |
---|
267 | - oops, fix init script |
---|
268 | |
---|
269 | * Tue Jun 27 2000 Bill Nottingham <notting@redhat.com> |
---|
270 | - require new initscripts, not prereq |
---|
271 | |
---|
272 | * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com> |
---|
273 | - initscript hacks |
---|
274 | |
---|
275 | * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
276 | - tweak logrotate config |
---|
277 | |
---|
278 | * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com> |
---|
279 | - rebuild in new env. |
---|
280 | - FHS fixes |
---|
281 | - don't ship chkconfig links |
---|
282 | |
---|
283 | * Fri Mar 31 2000 Bill Nottingham <notting@redhat.com> |
---|
284 | - fix non-root builds (#10490) |
---|
285 | |
---|
286 | * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com> |
---|
287 | - do not remove log files |
---|
288 | |
---|
289 | * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com> |
---|
290 | - handle compressed man pages |
---|
291 | |
---|
292 | * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> |
---|
293 | - chkconfig --del in %preun, not %postun |
---|
294 | |
---|
295 | * Wed Aug 25 1999 Bill Nottingham <notting@redhat.com> |
---|
296 | - fix buffer overflow |
---|
297 | |
---|
298 | * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> |
---|
299 | - initscript munging |
---|
300 | |
---|
301 | * Fri Jul 30 1999 Michael K. Johnson <johnsonm@redhat.com> |
---|
302 | - dayofmonth and month can't be 0 |
---|
303 | |
---|
304 | * Thu Jun 3 1999 Jeff Johnson <jbj@redhat.com> |
---|
305 | - in cron.log use "kill -HUP pid" not killall to preserve errors (#2241). |
---|
306 | |
---|
307 | * Wed Apr 14 1999 Michael K. Johnson <johnsonm@redhat.com> |
---|
308 | - add note to man page about DST conversion causing strangeness |
---|
309 | - documented cron.d patch |
---|
310 | |
---|
311 | * Tue Apr 13 1999 Michael K. Johnson <johnsonm@redhat.com> |
---|
312 | - improved cron.d patch |
---|
313 | |
---|
314 | * Mon Apr 12 1999 Erik Troan <ewt@redhat.com> |
---|
315 | - added cron.d patch |
---|
316 | |
---|
317 | * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com> |
---|
318 | - logrotate changes |
---|
319 | |
---|
320 | * Tue Mar 23 1999 Preston Brown <pbrown@redhat.com> |
---|
321 | - clean up log files on deinstallation |
---|
322 | |
---|
323 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
324 | - auto rebuild in the new build environment (release 28) |
---|
325 | |
---|
326 | * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com> |
---|
327 | - build for glibc 2.1 |
---|
328 | |
---|
329 | * Wed Jun 10 1998 Prospector System <bugs@redhat.com> |
---|
330 | - translations modified for de |
---|
331 | |
---|
332 | * Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com> |
---|
333 | - reset SIGCHLD before grandchild execle (problem #732) |
---|
334 | |
---|
335 | * Sat May 02 1998 Cristian Gafton <gafton@redhat.com> |
---|
336 | - enhanced initscript |
---|
337 | |
---|
338 | * Mon Apr 27 1998 Prospector System <bugs@redhat.com> |
---|
339 | - translations modified for de, fr, tr |
---|
340 | |
---|
341 | * Thu Dec 11 1997 Cristian Gafton <gafton@redhat.com> |
---|
342 | - added a patch to get rid of the dangerous sprintf() calls |
---|
343 | - added BuildRoot and Prereq: /sbin/chkconfig |
---|
344 | |
---|
345 | * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> |
---|
346 | - fixed cron/crond dichotomy in init file. |
---|
347 | |
---|
348 | * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com> |
---|
349 | - fixed bad init symlinks |
---|
350 | |
---|
351 | * Thu Oct 23 1997 Erik Troan <ewt@redhat.com> |
---|
352 | - force it to use SIGCHLD instead of defunct SIGCLD |
---|
353 | |
---|
354 | * Mon Oct 20 1997 Erik Troan <ewt@redhat.com> |
---|
355 | - updated for chkconfig |
---|
356 | - added status, restart options to init script |
---|
357 | |
---|
358 | * Tue Jun 17 1997 Erik Troan <ewt@redhat.com> |
---|
359 | - built against glibc |
---|
360 | |
---|
361 | * Wed Feb 19 1997 Erik Troan <ewt@redhat.com> |
---|
362 | - Switch conditional from "axp" to "alpha" |
---|
363 | |
---|