vixie-cron-vl.spec 12 KB

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