#!/bin/bash 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} cd ${LFS_TMP}/${PACKAGE}-build ../${PACKAGE}/configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-zlib \ ${CONFIGURE_OPTS} make make install install -v -m755 update-usbids.sh /usr/sbin/update-usbids ldconfig # Addition to /etc/fcron/fcrontab #string_add "# Run update-usbids every day" /etc/fcron/fcrontab #string_add "&mail(false) * 3 * * * /usr/sbin/update-usbids" /etc/fcron/fcrontab # Update database /usr/sbin/update-usbids exit $?