aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-12 11:28:55 +0300
committerCem Keylan <cem@ckyln.com>2019-12-12 11:28:55 +0300
commit6be99255607e50a18e76e7b28e31c24a39ab3fea (patch)
tree454b8cf96f6b83bc8912a6e7a9047646c94b6f96
parent613751b0934c8856055fb3335dcb0e3532e659e4 (diff)
downloadrepository-6be99255607e50a18e76e7b28e31c24a39ab3fea.tar.gz
add full runit as an option
-rwxr-xr-xcore/runit/build26
-rw-r--r--core/runit/checksums1
-rw-r--r--core/runit/sources1
-rw-r--r--core/runit/version1
4 files changed, 29 insertions, 0 deletions
diff --git a/core/runit/build b/core/runit/build
new file mode 100755
index 00000000..3fc5c37a
--- /dev/null
+++ b/core/runit/build
@@ -0,0 +1,26 @@
+#!/bin/sh -e
+
+cd runit-2.1.2/src
+
+sed -e 's@sbin/runit@usr/bin/runit@g' -i runit.h
+
+# Build statically
+echo "${CC:-gcc} -D_GNU_SOURCE $CFLAGS -static" > conf-cc
+echo "${CC:-gcc} $LDFLAGS -static -Wl,-z -Wl,noexecstack" > conf-ld
+
+# Set service path to /var/service
+sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c
+
+make
+
+for bin in chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset; do
+ install -Dm755 "$bin" "$1/usr/bin/$bin"
+done
+cd ../man
+for man in ./*; do
+ install -Dm644 "$man" "$1/usr/share/man/man8/$man"
+done
+
+
+mkdir -p "$1/var"
+ln -s ../run/runit/runsvdir/current "$1/var/service"
diff --git a/core/runit/checksums b/core/runit/checksums
new file mode 100644
index 00000000..0f08a729
--- /dev/null
+++ b/core/runit/checksums
@@ -0,0 +1 @@
+6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 runit-2.1.2.tar.gz
diff --git a/core/runit/sources b/core/runit/sources
new file mode 100644
index 00000000..a10d7bef
--- /dev/null
+++ b/core/runit/sources
@@ -0,0 +1 @@
+http://smarden.org/runit/runit-2.1.2.tar.gz
diff --git a/core/runit/version b/core/runit/version
new file mode 100644
index 00000000..174fb505
--- /dev/null
+++ b/core/runit/version
@@ -0,0 +1 @@
+2.1.2 1