~carbslinux/repository

ref: 051404c997c633388071203be5c24f28dfb9f14c repository/core/sinit/build -rwxr-xr-x 586 bytes
051404c9Cem Keylan sinit: removed ubase dependency, build respawn and halt onto sinit 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"

# 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"