dcron.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## dcron.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: dcron
  26. Summary: Dillon's cron
  27. URL: http://www.ibiblio.org/pub/Linux/system/daemons/cron/
  28. Vendor: Free Software Foundation
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: System
  32. License: GPL
  33. Version: 2.3.3
  34. Release: 4
  35. # list of sources
  36. Source0: http://www.ibiblio.org/pub/Linux/system/daemons/cron/dcron-%{version}.tar.gz
  37. Source1: rc.dcron
  38. Patch0: dcron-%{version}.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  43. PreReq: OpenPKG, openpkg >= 0.9-33, MTA, vim
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. A multi-user cron written from scratch by the author, similar to vixie-cron
  48. but with significant differences. Attention paid less to feature creep and
  49. more to usability and reliability.
  50. %prep
  51. %setup -q
  52. %patch -p1
  53. %build
  54. %{l_rpmtool} subst \
  55. 's;/var/spool/cron/crontabs;%{l_prefix}/var/dcron/crontabs;' \
  56. 's;/usr/lib/sendmail;%{l_prefix}/sbin/sendmail;' \
  57. 's;/usr/bin/vi;%{l_prefix}/bin/vi;' \
  58. 's;/var/run/dcron.pid;%{l_prefix}/var/dcron/dcron.pid;' \
  59. -- defs.h
  60. %{l_make} %{l_mflags -O} \
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags}"
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  68. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  70. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  71. $RPM_BUILD_ROOT%{l_prefix}/var/dcron/crontabs
  72. %{l_shtool} install -c -s -m 755 crontab $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -s -m 755 crond $RPM_BUILD_ROOT%{l_prefix}/sbin/
  74. %{l_shtool} install -c -m 644 crontab.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_shtool} install -c -m 644 crond.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
  76. %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};' \
  77. %{SOURCE rc.dcron} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  79. %{l_files_std} \
  80. '%attr(4755,root,%{l_fsgrp}) %{l_prefix}/bin/crontab'
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT