dcron: add cron alternatives group
Also: - call dcrond in sv script - remove replaces line
This commit is contained in:
parent
6178214aaf
commit
0d304e8eac
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec crond -f 2>&1
|
||||
exec dcrond -f 2>&1
|
||||
|
|
|
@ -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 <xtraeme@voidlinux.eu>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user