1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bcron/bcron.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 sysconfdir=$sysconfdir/$pkg
17 pkgprefix libdir bglibs > conf-bglibs
18 pkgprefix includedir bglibs > conf-bgincs
19 echo $root$bindir > conf-bin
23 local spool=$root/var/spool/cron
24 mkdir -p $spool/{crontabs,tmp}
26 [ -e $spool/trigger ] || mkfifo $spool/trigger
27 add_flist $spool/trigger
29 for i in crontabs tmp trigger; do
31 chmod go-rwx $spool/$i
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
43 hook_add preconf 1 'bcron_bglibsconf'
44 hook_add postmake 5 'bcron_prepare'
45 hook_add postmake 6 'bcron_install_cron'
47 for y in $( ls -1 package/*/cron/*.cron 2> /dev/null ); do
48 hook_add postinstall 6 "install_cron '$y'"