summaryrefslogtreecommitdiffstats
path: root/dcron/Pkgfile.old
blob: 26e243390d72e4ee652711c8627ee41b5ce3e976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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}
}