Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Multi-user cron daemon |
2 | # URL: http://apollo.backplane.com/FreeSrc | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
83e7e2d0 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=dcron | |
279a2616 JB |
8 | version=4.4 |
9 | release=1 | |
10 | source=(http://www.jimpryor.net/linux/releases/$name-$version.tar.gz \ | |
11 | crontab runjobs crond) | |
6dca1d21 JB |
12 | |
13 | build() { | |
279a2616 | 14 | cd $name-$version |
6dca1d21 | 15 | |
279a2616 JB |
16 | make CC=$CC PREFIX=/usr |
17 | make DESTDIR=$PKG MANDIR=/usr/man CRONTAB_GROUP=users install | |
6dca1d21 JB |
18 | |
19 | install -d $PKG/var/{spool/cron,log} | |
20 | install -d $PKG/etc/{cron.d,cron/{hourly,daily,weekly,monthly}} | |
21 | install -d -m 700 $PKG/var/spool/cron/crontabs | |
22 | ||
23 | install -m 600 $SRC/crontab $PKG/var/spool/cron/crontabs/root | |
24 | ln -s ../var/spool/cron/crontabs/root $PKG/etc/crontab | |
6dca1d21 JB |
25 | install -D -m 755 $SRC/crond $PKG/etc/rc.d/crond |
26 | install -D -m 755 $SRC/runjobs $PKG/usr/sbin/runjobs | |
279a2616 | 27 | install -d $PKG/etc/cron/{hourly,daily,weekly,monthly} |
6dca1d21 | 28 | |
279a2616 | 29 | install -d $PKG/var/log |
6dca1d21 | 30 | touch $PKG/var/log/cron |
279a2616 | 31 | chmod 0640 $PKG/var/log/cron |
6dca1d21 | 32 | } |