#!/bin/sh # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list CUR_DIR=$(pwd) # Applying patches (if any) apply_patches ${1} && hv_groupadd -g 19 haldaemon && hv_useradd -c HAL-Daemon-User -d /dev/null -u 19 \ -g haldaemon -s /bin/false haldaemon && cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/hal \ --localstatedir=/var \ --with-hwdata=/usr/share/pciutils/pci.ids && make && make install && install -v -m755 -d /var/run/hald && ldconfig && # Bootscript install -v -m740 ${CUR_DIR}/bootscripts/hald /etc/rc.d/init.d && # script-name start stop bootscript_add_rc3 hald 93 19 # If the system-wide D-BUS daemon was running during the # installation of HAL, ensure you stop and restart the # D-BUS daemon before attempting to start the hald daemon. #/etc/rc.d/init.d/dbus restart && # Starting daemon #/etc/rc.d/init.d/hal start # Return last error exit $?