summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/kbd/kbd_1.15.2.bb29
1 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-core/kbd/kbd_1.15.2.bb b/meta/recipes-core/kbd/kbd_1.15.2.bb
index 2e0406baa3..eea04a0754 100644
--- a/meta/recipes-core/kbd/kbd_1.15.2.bb
+++ b/meta/recipes-core/kbd/kbd_1.15.2.bb
@@ -10,7 +10,7 @@ RREPLACES_${PN} = "console-tools"
10RPROVIDES_${PN} = "console-tools" 10RPROVIDES_${PN} = "console-tools"
11RCONFLICTS_${PN} = "console-tools" 11RCONFLICTS_${PN} = "console-tools"
12 12
13PR = "r1" 13PR = "r2"
14 14
15SRC_URI="${KERNELORG_MIRROR}/linux/utils/kbd/kbd-1.15.2.tar.bz2" 15SRC_URI="${KERNELORG_MIRROR}/linux/utils/kbd/kbd-1.15.2.tar.bz2"
16SRC_URI[md5sum] = "e850eb91e4d3b94b194efe8e953204c5" 16SRC_URI[md5sum] = "e850eb91e4d3b94b194efe8e953204c5"
@@ -22,3 +22,30 @@ FILES_${PN}-consolefonts = "${datadir}/consolefonts"
22FILES_${PN}-consoletrans = "${datadir}/consoletrans" 22FILES_${PN}-consoletrans = "${datadir}/consoletrans"
23FILES_${PN}-keymaps = "${datadir}/keymaps" 23FILES_${PN}-keymaps = "${datadir}/keymaps"
24FILES_${PN}-unimaps = "${datadir}/unimaps" 24FILES_${PN}-unimaps = "${datadir}/unimaps"
25
26ALTERNATIVE_NAMES_USRBIN = "chvt deallocvt fgconsole openvt"
27
28do_install_append() {
29 usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}"
30 for p in $usrbinprogs_a; do
31 if [ -f "${D}${bindir}/$p" ]; then
32 mv "${D}${bindir}/$p" "${D}${bindir}/$p.${PN}"
33 fi
34 done
35}
36
37pkg_postinst_${PN} () {
38 usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}"
39 for p in $usrbinprogs_a; do
40 if [ -f "$D${bindir}/$p" ]; then
41 update-alternatives --install ${bindir}/$p $p $p.${PN} 100
42 fi
43 done
44}
45
46pkg_postrm_${PN} () {
47 usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}"
48 for p in $usrbinprogs_a; do
49 update-alternatives --remove $p $p.${PN}
50 done
51}