X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-kbd;h=34bda088f98507cd6e266838ec7623fa8b5e14f2;hb=be41960e19c9daee738916df4138559a262ca34a;hp=2b752b82bf6fcfcc5933ffbe0408c1c853c628b6;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/cis-kbd b/stage2/cis-kbd index 2b752b8..34bda08 100755 --- a/stage2/cis-kbd +++ b/stage2/cis-kbd @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -6,23 +8,27 @@ source ../sysinfos source ../functions source ../packages-list -# Applying patches (if any) -apply_patches ${1} && +cd ${LFS_TMP}/${1} -cd ${LFS_TMP}/${1} && +# The Kbd package doesn't come shipped with the standard configure scripts, so generate them now: +autoreconf + +# Applying patches (if any) +apply_patches ${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 +cd ${LFS_TMP}/${1} ./configure \ - --datadir=/lib/kbd && -make -j ${MAKEJOBS} && -make install && + --prefix=/usr \ + --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 +mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin -# Return last error exit $?