source: projects/specs/trunk/v/vixie-cron/vixie-cron-vl.spec @ 8067

Revision 8067, 11.6 KB checked in by Takemikaduchi, 9 years ago (diff)

new upstream release or rebuild

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