diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-11-10 16:20:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-15 12:05:27 +0000 |
commit | dc80635ae3c4a2104035ccf6068a891410e80a4d (patch) | |
tree | 362df98d06c852ec3c48692a9290b6b30ef03be8 /meta/recipes-core | |
parent | d34eed95ff3187bd711b2b18852f79810d5abf7d (diff) | |
download | poky-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.bb | 29 |
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" | |||
10 | RPROVIDES_${PN} = "console-tools" | 10 | RPROVIDES_${PN} = "console-tools" |
11 | RCONFLICTS_${PN} = "console-tools" | 11 | RCONFLICTS_${PN} = "console-tools" |
12 | 12 | ||
13 | PR = "r1" | 13 | PR = "r2" |
14 | 14 | ||
15 | SRC_URI="${KERNELORG_MIRROR}/linux/utils/kbd/kbd-1.15.2.tar.bz2" | 15 | SRC_URI="${KERNELORG_MIRROR}/linux/utils/kbd/kbd-1.15.2.tar.bz2" |
16 | SRC_URI[md5sum] = "e850eb91e4d3b94b194efe8e953204c5" | 16 | SRC_URI[md5sum] = "e850eb91e4d3b94b194efe8e953204c5" |
@@ -22,3 +22,30 @@ FILES_${PN}-consolefonts = "${datadir}/consolefonts" | |||
22 | FILES_${PN}-consoletrans = "${datadir}/consoletrans" | 22 | FILES_${PN}-consoletrans = "${datadir}/consoletrans" |
23 | FILES_${PN}-keymaps = "${datadir}/keymaps" | 23 | FILES_${PN}-keymaps = "${datadir}/keymaps" |
24 | FILES_${PN}-unimaps = "${datadir}/unimaps" | 24 | FILES_${PN}-unimaps = "${datadir}/unimaps" |
25 | |||
26 | ALTERNATIVE_NAMES_USRBIN = "chvt deallocvt fgconsole openvt" | ||
27 | |||
28 | do_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 | |||
37 | pkg_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 | |||
46 | pkg_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 | } | ||