#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${PACKAGE} ${SCRDIR}/cis-common2 ${PACKAGE} "${CONFIGURE_OPTS} --enable-login-utils --disable-makeinstall-chown" cd ${LFS_TMP}/${PACKAGE}-build ${HVMAKE} ${HVMAKE} DESTDIR=${LFS} install # Copy Libraries and includes to /tools: rm -fv ${LFS}/usr/lib/lib{blkid,uuid}.la cp -v ${LFS}/usr/lib/lib{blkid,uuid}* /tools/lib cp -v ${LFS}/lib/lib{blkid,uuid}* /tools/lib ln -sfvT libblkid.so.1.1.0 /tools/lib/libblkid.so ln -sfvT libuuid.so.1.3.0 /tools/lib/libuuid.so install -dv /tools/include/{blkid,uuid} cp -av ${LFS}/usr/include/blkid/* /tools/include/blkid/ cp -av ${LFS}/usr/include/uuid/* /tools/include/uuid/ exit $?