scron: add cron alternatives group
Also: - remove /etc/crontab - call scrond in sv script - remove replaces line
This commit is contained in:
parent
d89d4a92d6
commit
b59d70df0c
|
@ -1 +0,0 @@
|
||||||
# tm_min tm_hour tm_mday tm_mon tm_wday command
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec crond -n 2>&1
|
exec scrond -n 2>&1
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'scron'
|
# Template file for 'scron'
|
||||||
pkgname=scron
|
pkgname=scron
|
||||||
version=0.4
|
version=0.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
short_desc="Simple cron daemon"
|
short_desc="Simple cron daemon"
|
||||||
maintainer='Juan RP <xtraeme@voidlinux.eu>'
|
maintainer='Juan RP <xtraeme@voidlinux.eu>'
|
||||||
|
@ -9,9 +9,12 @@ license="MIT"
|
||||||
homepage="http://git.2f30.org/scron/"
|
homepage="http://git.2f30.org/scron/"
|
||||||
distfiles="http://dl.2f30.org/releases/${pkgname}-${version}.tar.gz"
|
distfiles="http://dl.2f30.org/releases/${pkgname}-${version}.tar.gz"
|
||||||
checksum=4ae8225a3991e42e29791d981192c9daf5b9b02609f68775768fe1598ae2ce18
|
checksum=4ae8225a3991e42e29791d981192c9daf5b9b02609f68775768fe1598ae2ce18
|
||||||
replaces="cron-daemon>=0"
|
|
||||||
provides="cron-daemon-0_1"
|
provides="cron-daemon-0_1"
|
||||||
conf_files="/etc/crontab"
|
|
||||||
|
alternatives="
|
||||||
|
cron:/etc/sv/scron:/etc/sv/crond
|
||||||
|
cron:/usr/bin/scrond:/usr/bin/crond
|
||||||
|
"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# STFU gcc
|
# STFU gcc
|
||||||
|
@ -22,8 +25,7 @@ pre_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin crond
|
vbin crond scrond
|
||||||
vconf ${FILESDIR}/crontab
|
|
||||||
vsv scron
|
vsv scron
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vdoc README
|
vdoc README
|
||||||
|
|
Loading…
Reference in New Issue