summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-11-10 16:20:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-15 12:05:27 +0000
commitdc80635ae3c4a2104035ccf6068a891410e80a4d (patch)
tree362df98d06c852ec3c48692a9290b6b30ef03be8 /meta/recipes-core
parentd34eed95ff3187bd711b2b18852f79810d5abf7d (diff)
downloadpoky-dc80635ae3c4a2104035ccf6068a891410e80a4d.tar.gz
kbd: use u-a for chvt, deallocvt, fgconssole, openvt, conflicts with busybox
(From OE-Core rev: c7d8bae47ea80f02af18e67b33e5ac6d1508432a) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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}