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
|
2013-02-15 17:00:43 +01:00
|
|
|
revision=19
|
2010-11-26 16:23:47 +01:00
|
|
|
short_desc="Dillon's lightweight cron daemon"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
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
|
|
|
|
|
|
|
replaces="cronie>=0"
|
2011-11-10 12:27:55 +01:00
|
|
|
systemd_services="dcron.service on"
|
2011-10-11 03:19:36 +02:00
|
|
|
conf_files="/var/spool/cron/root"
|
2011-06-03 07:54:25 +02:00
|
|
|
provides="cron-daemon-0"
|
|
|
|
replaces="cron-daemon>=0"
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2012-01-23 10:59:27 +01:00
|
|
|
# Build PIE binaries by default.
|
|
|
|
CFLAGS="-fPIE"
|
|
|
|
LDFLAGS="-pie"
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2012-01-23 10:59:27 +01:00
|
|
|
do_build() {
|
2010-11-26 16:23:47 +01:00
|
|
|
make PREFIX=/usr CRONTAB_GROUP=users 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() {
|
2011-05-02 07:16:18 +02:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2011-11-09 19:56:56 +01:00
|
|
|
for f in etc/cron.d etc/cron.hourly etc/cron.weekly etc/cron.monthly \
|
|
|
|
var/spool/cronstamps; do
|
|
|
|
vmkdir ${f}
|
|
|
|
touch ${DESTDIR}/${f}/.owned
|
|
|
|
done
|
2011-10-12 16:25:42 +02:00
|
|
|
|
2011-10-11 03:19:36 +02:00
|
|
|
install -Dm755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
|
|
|
|
install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
|
2010-11-26 16:23:47 +01:00
|
|
|
|
2012-07-09 18:17:31 +02:00
|
|
|
vinstall ${FILESDIR}/dcron.service 644 usr/lib/systemd/system
|
2010-11-26 16:23:47 +01:00
|
|
|
# crontab must be setuid for all users to work!
|
|
|
|
chmod 4755 ${DESTDIR}/usr/bin/crontab
|
|
|
|
}
|