diff --git a/srcpkgs/dcron/files/dcron/run b/srcpkgs/dcron/files/dcron/run index 33d1c5296a0..7dea9199520 100755 --- a/srcpkgs/dcron/files/dcron/run +++ b/srcpkgs/dcron/files/dcron/run @@ -1,2 +1,2 @@ #!/bin/sh -exec crond -f 2>&1 +exec dcrond -f 2>&1 diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template index 1ebcdf72f9a..73c6a548dcb 100644 --- a/srcpkgs/dcron/template +++ b/srcpkgs/dcron/template @@ -1,10 +1,9 @@ # Template file for 'dcron' pkgname=dcron version=4.5 -revision=29 +revision=30 conf_files="/var/spool/cron/root" -replaces="cron-daemon>=0" -provides="cron-daemon-1_1" +provides="cron-daemon-0_1" short_desc="Dillon's lightweight cron daemon" maintainer="Juan RP " homepage="http://www.jimpryor.net/linux/dcron.html" @@ -12,6 +11,14 @@ license="GPL-2" distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz" checksum=9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 +alternatives=" + cron:/etc/sv/dcron:/etc/sv/crond + cron:/usr/bin/dcrond:/usr/bin/crond + cron:/usr/bin/dcrontab:/usr/bin/crontab + cron:/usr/share/man/man1/dcrontab.1:/usr/share/man/man1/crontab.1 + cron:/usr/share/man/man8/dcrond.8:/usr/share/man/man8/crond.8 + " + make_dirs=" /etc/cron.d 0755 root root /etc/cron.hourly 0755 root root @@ -38,4 +45,10 @@ do_install() { chmod 4755 ${DESTDIR}/usr/bin/crontab vsv dcron + + # Fix conflicts with other packages + mv ${DESTDIR}/usr/bin/crond ${DESTDIR}/usr/bin/dcrond + mv ${DESTDIR}/usr/bin/crontab ${DESTDIR}/usr/bin/dcrontab + mv ${DESTDIR}/usr/share/man/man1/crontab.1 ${DESTDIR}/usr/share/man/man1/dcrontab.1 + mv ${DESTDIR}/usr/share/man/man8/crond.8 ${DESTDIR}/usr/share/man/man8/dcrond.8 }