#!/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 # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1} && # The FHS recommends that we use /var/lib/hwclock, instead of the usual # /etc, as the location for the adjtime file. To make the hwclock program # FHS-compliant, run the following: sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' -i $(grep -rl '/etc/adjtime' .) && mkdir -pv /var/lib/hwclock && ./configure && # HAVE_KILL=yes: This prevents the kill program (already installed by # Procps) from being built and installed again. # HAVE_SLN=yes: This prevents the sln program (a statically linked # ln already installed by Glibc) from being built and # installed again. make -j ${MAKEJOBS} HAVE_KILL=yes HAVE_SLN=yes && make HAVE_KILL=yes HAVE_SLN=yes install # Return last error exit $?