From 23055b3d7da4bfef00d302e91b87fa36f6f9be96 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 7 Feb 2020 17:34:55 +0300 Subject: sinit: add changes * Use official sources * Switch to 1.0 * Remove the ubase dependency * Use kpow by Dylan Araps for shutdown --- core/sinit/build | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'core/sinit/build') diff --git a/core/sinit/build b/core/sinit/build index 4a3a1bf2..1466e64d 100755 --- a/core/sinit/build +++ b/core/sinit/build @@ -1,24 +1,15 @@ #!/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 sinit + make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install +) +ln -s 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" -# 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" +# shellcheck disable=2086 +"${CC:-gcc}" -o "$1/usr/bin/kpow" init/bin/kpow.c $CFLAGS -static -- cgit v1.2.3