added finit init system support
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
finit_init() {
|
||||
printf "$GREEN** Building and installing finit\n$RESET"
|
||||
mkdir -pv $build/finit
|
||||
cd $build/finit
|
||||
git clone https://github.com/troglobit/libite
|
||||
check $? "Download libite"
|
||||
git clone https://github.com/troglobit/libuev
|
||||
check $? "Download libuev"
|
||||
git clone https://github.com/troglobit/finit
|
||||
check $? "Download finit"
|
||||
|
||||
cd libite
|
||||
./autogen.sh
|
||||
check $? "Autogen libite"
|
||||
./configure --host=$CROSS_COMPILE --prefix=/usr
|
||||
check $? "Configure libite"
|
||||
make $makeflags
|
||||
check $? "Build libite"
|
||||
make DESTDIR=$rootfspath install
|
||||
check $? "Installing to rootfs libite"
|
||||
|
||||
cd ../libuev
|
||||
./autogen.sh
|
||||
check $? "Autogen libuev"
|
||||
./configure --host=$CROSS_COMPILE --prefix=/usr
|
||||
check $? "Configure libuev"
|
||||
make $makeflags
|
||||
check $? "Build libuev"
|
||||
make DESTDIR=$rootfspath install
|
||||
check $? "Installing to rootfs libuev"
|
||||
|
||||
cd ../finit
|
||||
./autogen.sh
|
||||
check $? "Autogen finit"
|
||||
./configure \
|
||||
--host=$CROSS_COMPILE \
|
||||
--prefix=/usr \
|
||||
--exec-prefix= \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-watchdog \
|
||||
--with-keventd \
|
||||
--with-sulogin
|
||||
check $? "Configure finit"
|
||||
make $makeflags
|
||||
check $? "Build finit"
|
||||
make DESTDIR=$rootfspath install
|
||||
check $? "Installing to rootfs finit"
|
||||
|
||||
find $rootfspath -name "*.la" -delete
|
||||
find $rootfspath -name "*.a" -delete
|
||||
rm -rv \
|
||||
$rootfspath/usr/lib/pkgconfig \
|
||||
$rootfspath/lib/pkgconfig \
|
||||
$rootfspath/usr/include \
|
||||
$rootfspath/usr/share/man \
|
||||
$rootfspath/usr/share/doc
|
||||
$CROSS_COMPILE-strip --strip-unneeded \
|
||||
$rootfspath/usr/lib/libite.so.5.4.0 \
|
||||
$rootfspath/usr/lib/libuev.so.3.0.0 \
|
||||
$rootfspath/sbin/finit \
|
||||
$rootfspath/sbin/initctl \
|
||||
$rootfspath/libexec/finit/* \
|
||||
$rootfspath/lib/libsystemd.so.0.0.0 \
|
||||
$rootfspath/lib/finit/plugins/*
|
||||
}
|
||||
Reference in New Issue
Block a user