57586fdfa4
@monthly jobs would run hearly without this patch, and @hourly jobs would run only every second hour if the system is in DST.
30 lines
843 B
Plaintext
30 lines
843 B
Plaintext
# Description: Multi-user cron daemon
|
|
# URL: http://www.jimpryor.net/linux/dcron.html
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=dcron
|
|
version=4.4
|
|
release=2
|
|
source=(http://www.jimpryor.net/linux/releases/$name-$version.tar.gz \
|
|
dcron.diff crontab runjobs crond)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/dcron.diff
|
|
|
|
make PREFIX=/usr
|
|
make DESTDIR=$PKG MANDIR=/usr/man CRONTAB_GROUP=users install
|
|
|
|
install -m 600 $SRC/crontab $PKG/var/spool/cron/crontabs/root
|
|
ln -s ../var/spool/cron/crontabs/root $PKG/etc/crontab
|
|
install -D -m 755 $SRC/crond $PKG/etc/rc.d/crond
|
|
install -D -m 755 $SRC/runjobs $PKG/usr/sbin/runjobs
|
|
|
|
install -d $PKG/etc/cron/{hourly,daily,weekly,monthly}
|
|
|
|
install -d $PKG/var/log
|
|
touch $PKG/var/log/cron
|
|
chmod 0640 $PKG/var/log/cron
|
|
}
|