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/meta3
-rw-r--r--extra/scron/version2
3 files changed, 16 insertions, 9 deletions
diff --git a/extra/scron/build b/extra/scron/build
index fd90a6f7..40070b3c 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
+clsv -d "$1" 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/meta b/extra/scron/meta
new file mode 100644
index 00000000..f8f9326a
--- /dev/null
+++ b/extra/scron/meta
@@ -0,0 +1,3 @@
+description: Simple cron daemon
+license: MIT
+maintainer: Cem Keylan <cem@carbslinux.org>
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