2010-11-26 16:23:47 +01:00
|
|
|
# Template file for 'dcron'
|
|
|
|
pkgname=dcron
|
2011-05-02 07:16:18 +02:00
|
|
|
version=4.5
|
2015-07-01 11:17:22 +02:00
|
|
|
revision=29
|
2015-03-16 09:25:15 +01:00
|
|
|
build_pie=yes
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/var/spool/cron/root"
|
2015-03-16 09:25:15 +01:00
|
|
|
replaces="cron-daemon>=0"
|
2014-02-03 23:45:28 +01:00
|
|
|
provides="cron-daemon-1_1"
|
2010-11-26 16:23:47 +01:00
|
|
|
short_desc="Dillon's lightweight cron daemon"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-11-13 10:39:41 +01:00
|
|
|
homepage="http://www.jimpryor.net/linux/dcron.html"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
2011-05-02 07:16:18 +02:00
|
|
|
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2014-08-20 12:00:40 +02:00
|
|
|
make_dirs="
|
|
|
|
/etc/cron.d 0755 root root
|
|
|
|
/etc/cron.hourly 0755 root root
|
|
|
|
/etc/cron.weekly 0755 root root
|
|
|
|
/etc/cron.monthly 0755 root root
|
|
|
|
/etc/cron.yearly 0755 root root
|
|
|
|
/var/spool/cronstamps 0755 root root"
|
|
|
|
|
2014-09-24 18:08:21 +02:00
|
|
|
do_configure() {
|
|
|
|
sed -i 's,-[og] root,,g' Makefile
|
|
|
|
}
|
2012-01-23 10:59:27 +01:00
|
|
|
do_build() {
|
2015-03-16 09:25:15 +01:00
|
|
|
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
|
2014-10-13 18:42:26 +02:00
|
|
|
PREFIX=/usr CRONTAB_GROUP=$(whoami) CRONTABS=/var/spool/cron \
|
2011-05-02 07:16:18 +02:00
|
|
|
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
|
2010-11-26 16:23:47 +01:00
|
|
|
}
|
2012-01-23 10:59:27 +01:00
|
|
|
do_install() {
|
2015-06-02 07:48:26 +02:00
|
|
|
make SBINDIR=/usr/bin DESTDIR=${DESTDIR} install
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2015-06-02 07:48:26 +02:00
|
|
|
vbin extra/run-cron
|
2011-10-11 03:19:36 +02:00
|
|
|
install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
|
2010-11-26 16:23:47 +01:00
|
|
|
|
|
|
|
# crontab must be setuid for all users to work!
|
|
|
|
chmod 4755 ${DESTDIR}/usr/bin/crontab
|
2014-08-20 12:00:40 +02:00
|
|
|
|
2014-10-13 13:46:01 +02:00
|
|
|
vsv dcron
|
2010-11-26 16:23:47 +01:00
|
|
|
}
|