aboutsummaryrefslogtreecommitdiff
path: root/extra/scron
diff options
context:
space:
mode:
Diffstat (limited to 'extra/scron')
-rwxr-xr-xextra/scron/build20
-rw-r--r--extra/scron/version2
2 files changed, 13 insertions, 9 deletions
diff --git a/extra/scron/build b/extra/scron/build
index fd90a6f7..4423a16b 100755
--- a/extra/scron/build
+++ b/extra/scron/build
@@ -1,12 +1,16 @@
#!/bin/sh -e
-make CC="${CC:-gcc}"
-make PREFIX="$1/usr" MANPREFIX="$1/usr/share/man" install
+mk() {
+ make \
+ PREFIX=/usr \
+ MANPREFIX=/usr/share/man \
+ CFLAGS="$CFLAGS -static" \
+ "$@"
+}
+mk
+mk DESTDIR="$1" install
+DESTDIR="$1" install-sv scron.run
-# Install runit service
-install -Dm755 scron.run "$1/etc/sv/scron/run"
-ln -sv /run/runit/supervise.scron "$1/etc/sv/scron/supervise"
-
-# Install sysmgr service
-install -Dm755 scron.run "$1/etc/sysmgr/scron"
+mv "$1/usr/bin/crond" "$1/usr/bin/scrond"
+ln -s scrond "$1/usr/bin/crond"
diff --git a/extra/scron/version b/extra/scron/version
index 3ea648e7..eafecb68 100644
--- a/extra/scron/version
+++ b/extra/scron/version
@@ -1 +1 @@
-0.4 2
+0.4 3