aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-15 22:36:35 +0300
committerCem Keylan <cem@ckyln.com>2020-01-15 22:36:35 +0300
commit051404c997c633388071203be5c24f28dfb9f14c (patch)
tree2b8e2a1cd5aeb0e94a784f34830c2e8f1540de1d /core/sinit/build
parent21fc7560eeaeb7ff0d25ef210570faf47c09357f (diff)
downloadrepository-051404c997c633388071203be5c24f28dfb9f14c.tar.gz
sinit: removed ubase dependency, build respawn and halt onto sinit
Diffstat (limited to 'core/sinit/build')
-rwxr-xr-xcore/sinit/build15
1 files changed, 14 insertions, 1 deletions
diff --git a/core/sinit/build b/core/sinit/build
index 182d70cf..4a3a1bf2 100755
--- a/core/sinit/build
+++ b/core/sinit/build
@@ -1,11 +1,24 @@
#!/bin/sh -e
+ls
+cp config.h sinit/config.h
+cd sinit
make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
mv "$1/usr/bin/sinit" "$1/usr/bin/init"
+cd ..
install -Dm755 poweroff "$1/usr/bin/poweroff"
install -Dm755 reboot "$1/usr/bin/reboot"
install -Dm644 sinit-launch-services.boot "$1/etc/init/sinit-launch-services.boot"
install -Dm644 sinit.post.shutdown "$1/etc/init/sinit.post.shutdown"
-install -Dm644 sinit.pre.shutdown "$1/etc/init/sinit.pre.shutdown"
+
+# We are building ubase here so we don't need
+# the full package
+
+cd ubase
+make halt
+make respawn
+
+install -Dm755 halt "$1/usr/bin/halt"
+install -Dm755 respawn "$1/usr/bin/respawn"