The Kbd package contains key-table files and keyboard utilities.
The following patch fixes build issues with GCC 4.1.1:
patch -Np1 -i ../kbd-1.12-gcc4_fixes-1.patch
Sparcs haven't updated the structure of kbdrate yet, so until they do this patch is required:
patch -Np1 -i ../kbd-1.12-sparc_kbdrate-1.patch
Prepare Kbd for compilation:
./configure --datadir=/lib/kbd
The meaning of the configure options:
This option places the Kbd data and keymap files into /lib/kbd, as they are used by some of the scripts in the CLFS-Bootscripts package and must be on the root partition.
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install
Some of the programs from Kbd are used by scripts in the CLFS-Bootscripts package. 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