Taille du paquet | 190K |
Somme de contrĂ´le SHA256 | 38a9b911206975797d4e532b0daeb1652cc021d9064ceff8ca5af933d9c6594b |
Estimation du temps de construction | 6.492 secondes |
TIMEFORMAT='(BUSYBOX) Compilation de sysvinit-2.96 en %R seconds ...'
time {
wget http://download.savannah.gnu.org/releases/sysvinit/sysvinit-2.96.tar.xz -O ${LFS}/download/sysvinit-2.96.tar.xz --no-check-certificate &&
md5sum -c <<<" 413121fe918b252ae62310f6fc7c4b32 ${LFS}/download/systemd-244.tar.gz" &&
wget http://www.linuxfromscratch.org/patches/lfs/development/sysvinit-2.96-consolidated-1.patch -O ${LFS}/download/sysvinit-2.96-consolidated-1.patch --no-check-certificate &&
md5sum -c <<<" 4900322141d493e74020c9cf437b2cdc ${LFS}/download/sysvinit-2.96-consolidated-1.patch" &&
rm -rf ${LFS}/src/sysvinit-2.96 &&
tar xf ${LFS}/download/sysvinit-2.96.tar.xz -C ${LFS}/src &&
cd ${LFS}/src/sysvinit-2.96 &&
patch -Np1 -i ${LFS}/download/sysvinit-2.96-consolidated-1.patch &&
make &&
mkdir -pv _pkg/{bin,sbin,usr/bin,etc,include,share/man}
for i in init halt shutdown runlevel killall5 fstab-decode bootlogd; do install -o root -g root -m 755 src/ $PWD/_pkg/sbin/ ; done &&
# install -m 755 -d ../_pkg/etc/
# install -o root -g root -m 755 ../doc/initscript.sample $PWD/_pkg/etc/
ln -sf halt $PWD/_pkg/sbin/reboot &&
ln -sf halt $PWD/_pkg/sbin/poweroff &&
ln -sf init $PWD/_pkg/sbin/telinit &&
#ln -sf /sbin/killall5 $PWD_pkg/bin/pidof
#if [ ! -f $PWD_pkg/usr/bin/lastb ]; then # ln -sf last $PWD/_pkg/usr/bin/lastb; #fi
install -m 755 -d $PWD/_pkg/usr/include/ &&
install -o root -g root -m 644 initreq.h $PWD/_pkg/usr/include/ &&
install -m 755 -d $PWD/_pkg/usr/share/man/man1/ &&
install -m 755 -d $PWD/_pkg/usr/share/man/man5/ &&
install -m 755 -d $PWD/_pkg/usr/share/man/man8/ &&
for man in initscript.5 inittab.5 initctl.5; do install -o root -g root -m 644 man/ $PWD/_pkg/usr/share/man/man5/; sed -i "1{ s@^\('\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@; }" $PWD/_pkg/usr/share/man/man5/ ; done &&
for man in halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8 shutdown.8 telinit.8 fstab-decode.8 bootlogd.8; do install -o root -g root -m 644 man/ $PWD/_pkg/usr/share/man/man8/; sed -i "1{ s@^\('\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@; }" $PWD/_pkg/usr/share/man/man8/ ; done
strip -v _pkg/sbin/*
tar -C _pkg/ -cvf ${LFS}/pkg/sysvinit-2.96.tar.gz ./ &&
cd "${LFS}/"
}