[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/bcron/bcron.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] A new cron system designed with secure operations in mind [T] This is bcron, a new cron system designed with secure operations in [T] mind. To do this, the system is divided into several seperate programs, [T] each responsible for a seperate task, with strictly controlled [T] communications between them. The user interface is a drop-in [T] replacement for similar systems (such as vixie-cron), but the internals [T] differ greatly. [U] https://untroubled.org/bcron/ [A] Bruce Guenter [M] The T2 Project [C] extra/tool [F] CROSS [L] GPL [S] Stable [V] 0.11 [P] O -----5---9 210.000 [D] 62df42ce98f35bb6d89946fe69104cb84f86532108662f962d6821f7 bcron-0.11.tar.gz http://untroubled.org/bcron/ 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