#!/bin/bash
-hvconfig_pre()
+hvbuild()
{
cd ${LFS_TMP}/${PACKAGE}
-
- sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c
-
- # A maintained version of the wall program was installed earlier by
- # Util-linux-ng. Suppress the installation of Sysvinit's version:
- sed -i -e 's/utmpdump wall/utmpdump/' \
- -e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile
+ make -j ${MAKEJOBS} -C src
+ make -C src install
}
-hvbuild()
+hvbuild_post()
{
- make -j ${MAKEJOBS} -C src
- make -C src install
+ chown root:shutdown /sbin/{halt,poweroff,reboot,shutdown}
+ chmod 750 /sbin/{halt,poweroff,reboot,shutdown}
+ chmod u+s /sbin/{halt,poweroff,reboot,shutdown}
}