# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/bcron/bcron.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- pkgprefix -t bglibs sysconfdir=$sysconfdir/$pkg bcron_bglibsconf() { pkgprefix libdir bglibs > conf-bglibs pkgprefix includedir bglibs > conf-bgincs echo $root$bindir > conf-bin } bcron_prepare() { local spool=$root/var/spool/cron mkdir -p $spool/{crontabs,tmp} [ -e $spool/trigger ] || mkfifo $spool/trigger add_flist $spool/trigger for i in crontabs tmp trigger; do chown 53:53 $spool/$i chmod go-rwx $spool/$i done } bcron_install_cron() { local crondir=$confdir/../cron cp $crondir/crontab $root/etc/ cp $crondir/cron.run.sh $root/usr/sbin/cron.run chmod 600 $root/etc/crontab chmod 755 $root/usr/sbin/cron.run } hook_add preconf 1 'bcron_bglibsconf' hook_add postmake 5 'bcron_prepare' hook_add postmake 6 'bcron_install_cron' for y in $(ls -1 package/*/cron/*.cron 2> /dev/null); do hook_add postinstall 6 "install_cron '$y'" done