Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: kbd-1.08   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
tar -xjf kbd-1.08.tar.bz2 &&
cd kbd-1.08 &&
patch -Np1 -i ../kbd-1.08.patch &&
./configure &&
make &&
make install

The output should look something like this:

patching file src/Makefile.in
checking for gcc
gcc is /usr/bin/gcc
You have 
You have  and gettext()
Assuming that you want to enable NLS support.
(Otherwise, edit defines.h and delete the line with
ENABLE_NLS)
for i in src openvt po data; do make -C $i all || exit 1;
done
make[1]: Entering directory `/sources/kbd-1.08/src'
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" dumpkeys.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" ksyms.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" xmalloc.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" getfd.c
gcc -s	dumpkeys.o ksyms.o xmalloc.o getfd.o   -o dumpkeys
bison -y  loadkeys.y 
mv -f y.tab.c loadkeys.c
flex -8  -t analyze.l > analyze.c
gcc -c -O2 -DDATADIR=\""/usr/share/kbd\"" loadkeys.c
loadkeys.y: In function `addfunc':
loadkeys.y:702: warning: comparison is always false due to
limited range of data type
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" findfile.c
gcc -s	loadkeys.o ksyms.o xmalloc.o findfile.o getfd.o  
-o loadkeys
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" showkey.c
gcc -s	showkey.o getfd.o   -o showkey
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" setfont.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" mapscrn.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" loadunimap.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" kdmapop.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" kdfontop.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" psffontop.c
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" utf8.c
gcc -s	setfont.o findfile.o xmalloc.o getfd.o mapscrn.o
loadunimap.o kdmapop.o kdfontop.o psffontop.o utf8.o   -o
setfont
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" showconsolefont.c
gcc -s	showconsolefont.o xmalloc.o getfd.o kdmapop.o
kdfontop.o   -o showconsolefont
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" setleds.c
gcc -s	setleds.o   -o setleds
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" setmetamode.c
gcc -s	setmetamode.o	-o setmetamode
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" kbd_mode.c
gcc -s	kbd_mode.o getfd.o   -o kbd_mode
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" chvt.c
gcc -s	chvt.o getfd.o	 -o chvt
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" deallocvt.c
gcc -s	deallocvt.o getfd.o   -o deallocvt
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" psfxtable.c
gcc -s	psfxtable.o psffontop.o xmalloc.o utf8.o   -o
psfxtable
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" kbdrate.c
gcc -s	kbdrate.o   -o kbdrate
gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2
-DDATADIR=\""/usr/share/kbd\"" fgconsole.c
gcc -s	fgconsole.o getfd.o   -o fgconsole
.
.
.
install -d -m 755 /usr/bin /bin
install -s -m 0755 -o root dumpkeys loadkeys showkey
setfont showconsolefont setleds setmetamode kbd_mode chvt
deallocvt psfxtable kbdrate fgconsole getkeycodes
setkeycodes resizecons mapscrn loadunimap /usr/bin
install -s -m 0755 -o root setlogcons setvesablank
getunimap /usr/bin
install -c -m 0755 -o root unicode_start unicode_stop
/usr/bin
for i in psfaddtable psfgettable psfstriptable; do \
	rm -f /usr/bin/$i; ln -s psfxtable /usr/bin/$i; \
done
rm -f /usr/bin/loadkeys
install -s -m 0755 -o root loadkeys /bin
You may also want to add psf.magic to /usr/lib/magic
make[1]: Leaving directory `/sources/kbd-1.08/src'
make[1]: Entering directory `/sources/kbd-1.08/openvt'
install -d -m 755 /usr/bin /usr/share/man/man1
install -c openvt /usr/bin
install -c openvt.1 /usr/share/man/man1
make[1]: Leaving directory `/sources/kbd-1.08/openvt'
make[1]: Entering directory `/sources/kbd-1.08/po'
../mkinstalldirs /usr/share;
installing es.gmo as
/usr/share/locale/es/LC_MESSAGES/kbd.mo
installing nl.gmo as
/usr/share/locale/nl/LC_MESSAGES/kbd.mo
installing ru.gmo as
/usr/share/locale/ru/LC_MESSAGES/kbd.mo
make[1]: Leaving directory `/sources/kbd-1.08/po'
cd data && make install
make[1]: Entering directory `/sources/kbd-1.08/data'
install -d -m 755 /usr/share/kbd
install -d -m 755 /usr/share/kbd/consolefonts
install -m 644 consolefonts_Z/* /usr/share/kbd/consolefonts
install -d -m 755 /usr/share/kbd/consolefonts/partialfonts
install -m 644 partialfonts_Z/*
/usr/share/kbd/consolefonts/partialfonts
install -d -m 755 /usr/share/kbd/consoletrans
install -m 644 consoletrans/* /usr/share/kbd/consoletrans
install -d -m 755 /usr/share/kbd/unimaps
install -m 644 unimaps/* /usr/share/kbd/unimaps
install -d -m 755 /usr/share/kbd/keymaps
install -d -m 755 /usr/share/kbd/keymaps/i386
install -d -m 755 /usr/share/kbd/keymaps/mac
for i in include sun amiga atari i386/azerty i386/dvorak
i386/fgGIod i386/qwerty i386/qwertz i386/include
mac/include mac/all; do \
	install -d -m 755 /usr/share/kbd/keymaps/$i ;\
	install -m 644 keymaps_Z/$i/*
/usr/share/kbd/keymaps/$i ;\
done
rm -f /usr/share/kbd/keymaps/ppc; ln -s mac
/usr/share/kbd/keymaps/ppc
make[1]: Leaving directory `/sources/kbd-1.08/data'
cd man && make install
make[1]: Entering directory `/sources/kbd-1.08/man'
for i in man?; do \
	install -d -m 755 /usr/share/man/$i; \
	install -m 644 $i/*.[0-9] /usr/share/man/$i; \
done
rm -f /usr/share/man/man5/keytables.5
make[1]: Leaving directory `/sources/kbd-1.08/man'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS