OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bcron/bcron.conf
  5. # Copyright (C) 2006 - 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. pkgprefix -t bglibs
  16. sysconfdir=$sysconfdir/$pkg
  17. bcron_bglibsconf() {
  18. echo $root$( pkgprefix libdir bglibs ) > conf-bglibs
  19. echo $root$( pkgprefix includedir bglibs ) > conf-bgincs
  20. echo $root$bindir > conf-bin
  21. }
  22. # to get rid of the ./installer we patched the makefile to use
  23. # normal installing procedures
  24. var_append makeinstopt ' ' BINDIR=$root$bindir
  25. bcron_prepare() {
  26. local spool=$root/var/spool/cron
  27. mkdir -p $spool/{crontabs,tmp}
  28. [ -e $spool/trigger ] || mkfifo $spool/trigger
  29. add_flist $spool/trigger
  30. for i in crontabs tmp trigger; do
  31. chown 53:53 $spool/$i
  32. chmod go-rwx $spool/$i
  33. done
  34. }
  35. bcron_install_cron() {
  36. local crondir=$confdir/../cron
  37. cp $crondir/crontab $root/etc/
  38. cp $crondir/cron.run.sh $root/usr/sbin/cron.run
  39. chmod 600 $root/etc/crontab
  40. chmod 755 $root/usr/sbin/cron.run
  41. }
  42. hook_add preconf 1 'bcron_bglibsconf'
  43. hook_add postmake 5 'bcron_prepare'
  44. hook_add postmake 6 'bcron_install_cron'
  45. for y in $( ls -1 package/*/cron/*.cron 2> /dev/null ); do
  46. hook_add postinstall 6 "install_cron '$y'"
  47. done