#!/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} cd ${LFS_TMP}/${PACKAGE} cp -v src/Makefile src/Makefile.orig sed -e 's@root@0@g' \ -e "s@/dev/initctl@${CLFS}&@g" \ -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \ -e "s@/usr/lib@/tools/lib@" \ src/Makefile.orig > src/Makefile make -C src clobber make -C src CC="${CC} ${CLFS_BUILDFLAGS}" make -C src install INSTALL=install ROOT=${LFS} install -m644 ${SCRDIR}/misc/inittab ${LFS}/etc exit $?