aboutsummaryrefslogtreecommitdiff
path: root/extra/scron
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-06-29 11:24:16 +0300
committerCem Keylan <cem@ckyln.com>2021-06-29 11:24:16 +0300
commit70bbba39c5900e7c3f1d819fc5e684fb74d9c38d (patch)
treef3cd6694757be48e4ab70722712c5f42b006ff2f /extra/scron
parenta95860e87217006121ded397b2f3a0e0142da165 (diff)
downloadrepository-70bbba39c5900e7c3f1d819fc5e684fb74d9c38d.tar.gz
scron: change name of the binary and symlink it to 'crond'
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