dcron: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP
2011-10-11 03:19:36 +02:00
parent fa32a1c860
commit 62aaf952d7
4 changed files with 15 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
# Template file for 'dcron'
pkgname=dcron
version=4.5
revision=1
revision=2
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
build_style=custom-install
short_desc="Dillon's lightweight cron daemon"
@@ -18,8 +18,8 @@ long_desc="
keep_empty_dirs=yes
replaces="cronie>=0"
openrc_services="crond default true"
conf_files="/var/spool/cron/root /etc/conf.d/cron"
systemd_services="dcron.service"
conf_files="/var/spool/cron/root"
provides="cron-daemon-0"
replaces="cron-daemon>=0"
@@ -36,12 +36,11 @@ do_install()
make DESTDIR=${DESTDIR} install
install -d ${DESTDIR}/etc/cron.{hour,week,month}ly
install -D -m755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
install -D -m600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
install -D -m644 extra/crond.logrotate ${DESTDIR}/etc/logrotate.d/crond
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
install -D -m644 ${FILESDIR}/crond.confd ${DESTDIR}/etc/conf.d/crond
install -D -m755 ${FILESDIR}/crond.init ${DESTDIR}/etc/init.d/crond
vinstall ${FILESDIR}/dcron.service 644 lib/systemd/system
# crontab must be setuid for all users to work!
chmod 4755 ${DESTDIR}/usr/bin/crontab