#!/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} && # --datadir=/lib/kbd # This option puts keyboard layout data in a directory that will # always be on the root partition instead of the default /usr/share/kbd ./configure \ --datadir=/lib/kbd && make -j ${MAKEJOBS} && make install && # Some of the scripts in the LFS-Bootscripts package depend on kbd_mode, # openvt, and setfont. As /usr may not be available during the early stages # of booting, those binaries need to be on the root partition: mv -v /usr/bin/{kbd_mode,openvt,setfont} /bin # Return last error exit $?