1#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Applying patches (if any) apply_patches ${PACKAGE} 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}/${PACKAGE}-build ../${PACKAGE}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/hal \ --localstatedir=/var \ --disable-policy-kit \ ${CONFIGURE_OPTS} make make install ldconfig install -v -m755 -d /var/run/hald # Bootscript install -v -m740 ${SCRDIR}/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 exit $?