python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / dcron / template
blob6eddac49430df270caf741d3958e5e1e1fd0d162
1 # Template file for 'dcron'
2 pkgname=dcron
3 version=4.5
4 revision=32
5 conf_files="/var/spool/cron/root"
6 provides="cron-daemon-0_1"
7 short_desc="Dillon's lightweight cron daemon"
8 maintainer="Juan RP <xtraeme@voidlinux.eu>"
9 homepage="http://www.jimpryor.net/linux/dcron.html"
10 license="GPL-2"
11 distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
12 checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
14 alternatives="
15  crond:crond:/etc/sv/dcron
16  crond:crond:/usr/bin/dcrond
17  crond:crontab:/usr/bin/dcrontab
18  crond:crontab.1:/usr/share/man/man1/dcrontab.1
19  crond:crond.8:/usr/share/man/man8/dcrond.8
22 make_dirs="
23  /etc/cron.d 0755 root root
24  /etc/cron.hourly 0755 root root
25  /etc/cron.weekly 0755 root root
26  /etc/cron.monthly 0755 root root
27  /etc/cron.yearly 0755 root root
28  /var/spool/cronstamps 0755 root root"
30 do_configure() {
31         sed -i 's,-[og] root,,g' Makefile
33 do_build() {
34         make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
35                 PREFIX=/usr CRONTAB_GROUP=$(whoami) CRONTABS=/var/spool/cron \
36                 CRONSTAMPS=/var/spool/cronstamps ${makejobs}
38 do_install() {
39         make SBINDIR=/usr/bin DESTDIR=${DESTDIR} install
41         vbin extra/run-cron
42         install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
44         # crontab must be setuid for all users to work!
45         chmod 4755 ${DESTDIR}/usr/bin/crontab
47         vsv dcron
49         # Fix conflicts with other packages
50         mv ${DESTDIR}/usr/bin/crond ${DESTDIR}/usr/bin/dcrond
51         mv ${DESTDIR}/usr/bin/crontab ${DESTDIR}/usr/bin/dcrontab
52         mv ${DESTDIR}/usr/share/man/man1/crontab.1 ${DESTDIR}/usr/share/man/man1/dcrontab.1
53         mv ${DESTDIR}/usr/share/man/man8/crond.8 ${DESTDIR}/usr/share/man/man8/dcrond.8