The Kbd package contains key-table files and keyboard utilities.
The behaviour of the Backspace and Delete keys is not consistent across the keymaps in the Kbd package. The following patch fixes this issue for i386 keymaps:
patch -Np1 -i ../kbd-1.12-backspace-1.patch
After patching, the Backspace key generates the character with code 127, and the Delete key generates a well-known escape sequence.
Patch Kbd to fix a bug in setfont that is triggered when compiling with GCC-4.0.3:
patch -Np1 -i ../kbd-1.12-gcc4_fixes-1.patch
Prepare Kbd for compilation:
./configure --datadir=/lib/kbd
The meaning of the configure options:
This option puts keyboard layout data in a directory that will always be on the root partition instead of the default /usr/share/kbd.
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install
For some languages (e.g., Belarusian) the Kbd package doesn't provide a useful keymap where the stock “by” keymap assumes the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of such languages have to download working keymaps separately.
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