2010-11-26 15:23:47 +00:00
|
|
|
# Template file for 'dcron'
|
|
|
|
pkgname=dcron
|
2011-05-02 05:16:18 +00:00
|
|
|
version=4.5
|
2011-11-09 18:56:56 +00:00
|
|
|
revision=11
|
2010-11-26 15:23:47 +00:00
|
|
|
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
|
|
|
short_desc="Dillon's lightweight cron daemon"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-02 05:16:18 +00:00
|
|
|
checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824
|
2010-11-26 15:23:47 +00:00
|
|
|
long_desc="
|
|
|
|
This lightweight cron daemon aims to be simple and secure, with just enough
|
|
|
|
features to stay useful. It was written from scratch by Matt Dillon in 1994.
|
|
|
|
It's now developed and maintained by Jim Pryor.
|
|
|
|
|
|
|
|
In the author's opinion, having to combine a cron daemon with another daemon
|
|
|
|
like anacron makes for too much complexity. So the goal is a simple cron daemon
|
|
|
|
that can also take over the central functions of anacron."
|
|
|
|
|
|
|
|
replaces="cronie>=0"
|
2011-10-11 01:19:36 +00:00
|
|
|
systemd_services="dcron.service"
|
|
|
|
conf_files="/var/spool/cron/root"
|
2011-06-03 05:54:25 +00:00
|
|
|
provides="cron-daemon-0"
|
|
|
|
replaces="cron-daemon>=0"
|
2010-11-26 15:23:47 +00:00
|
|
|
|
|
|
|
Add_dependency run glibc
|
|
|
|
|
|
|
|
do_build()
|
|
|
|
{
|
|
|
|
make PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron \
|
2011-05-02 05:16:18 +00:00
|
|
|
CRONSTAMPS=/var/spool/cronstamps ${makejobs}
|
2010-11-26 15:23:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-05-02 05:16:18 +00:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-11-26 15:23:47 +00:00
|
|
|
|
2011-11-09 18:56:56 +00: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 14:25:42 +00:00
|
|
|
|
2011-10-11 01:19:36 +00:00
|
|
|
install -Dm755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
|
|
|
|
install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
|
|
|
|
install -Dm644 extra/crond.logrotate ${DESTDIR}/etc/logrotate.d/crond
|
2010-11-26 15:23:47 +00:00
|
|
|
|
2011-10-11 01:19:36 +00:00
|
|
|
vinstall ${FILESDIR}/dcron.service 644 lib/systemd/system
|
2010-11-26 15:23:47 +00:00
|
|
|
# crontab must be setuid for all users to work!
|
|
|
|
chmod 4755 ${DESTDIR}/usr/bin/crontab
|
|
|
|
}
|