diff options
Diffstat (limited to 'meta')
-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 | } | ||