diff options
Diffstat (limited to 'meta/recipes-core/kbd/kbd_2.6.4.bb')
-rw-r--r-- | meta/recipes-core/kbd/kbd_2.6.4.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-core/kbd/kbd_2.6.4.bb b/meta/recipes-core/kbd/kbd_2.6.4.bb new file mode 100644 index 0000000000..2331b51e59 --- /dev/null +++ b/meta/recipes-core/kbd/kbd_2.6.4.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "Keytable files and keyboard utilities" | ||
2 | HOMEPAGE = "http://www.kbd-project.org/" | ||
3 | DESCRIPTION = "The kbd project contains tools for managing Linux console (Linux console, virtual terminals, keyboard, etc.) – mainly, what they do is loading console fonts and keyboard maps." | ||
4 | |||
5 | # consolefonts and keymaps contain also some public domain and author notice licenses | ||
6 | LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later & GPL-3.0-or-later" | ||
7 | LIC_FILES_CHKSUM = " \ | ||
8 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
9 | file://data/keymaps/pine/en.map;beginline=2;endline=15;md5=20914a59c0546a7b77ebf959bc88ad5d \ | ||
10 | " | ||
11 | LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.0-or-later" | ||
12 | LICENSE:${PN}-consolefonts = "GPL-2.0-or-later" | ||
13 | LICENSE:${PN}-consoletrans = "GPL-2.0-or-later" | ||
14 | LICENSE:${PN}-keymaps-pine = "GPL-3.0-or-later" | ||
15 | LICENSE:${PN}-keymaps = "GPL-2.0-or-later" | ||
16 | LICENSE:${PN}-unimaps = "GPL-2.0-or-later" | ||
17 | |||
18 | inherit autotools gettext pkgconfig | ||
19 | |||
20 | DEPENDS += "flex-native" | ||
21 | |||
22 | RREPLACES:${PN} = "console-tools" | ||
23 | RPROVIDES:${PN} = "console-tools" | ||
24 | RCONFLICTS:${PN} = "console-tools" | ||
25 | |||
26 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \ | ||
27 | file://0001-Remove-non-free-Agafari-fonts.patch \ | ||
28 | " | ||
29 | |||
30 | SRC_URI[sha256sum] = "519f8d087aecca7e0a33cd084bef92c066eb19731666653dcc70c9d71aa40926" | ||
31 | |||
32 | EXTRA_OECONF = "--disable-tests" | ||
33 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | ||
34 | " | ||
35 | |||
36 | PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam," | ||
37 | |||
38 | PACKAGES += "${PN}-consolefonts ${PN}-keymaps-pine ${PN}-keymaps ${PN}-unimaps ${PN}-consoletrans" | ||
39 | |||
40 | FILES:${PN}-consolefonts = "${datadir}/consolefonts" | ||
41 | FILES:${PN}-consoletrans = "${datadir}/consoletrans" | ||
42 | FILES:${PN}-keymaps-pine = "${datadir}/keymaps/pine" | ||
43 | FILES:${PN}-keymaps = "${datadir}/keymaps" | ||
44 | FILES:${PN}-unimaps = "${datadir}/unimaps" | ||
45 | |||
46 | RRECOMMENDS:${PN}-keymaps = "${PN}-keymaps-pine" | ||
47 | |||
48 | # remove this when upgrading to newer version which has integrated | ||
49 | # https://github.com/legionus/kbd/commit/b757e6842f9631757f0d1a6b3833aabffa9ffeee | ||
50 | do_configure:prepend() { | ||
51 | rm -rf ${S}/data/consolefonts/Agafari-1* | ||
52 | } | ||
53 | |||
54 | do_install:append () { | ||
55 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)}" = "yes" ] \ | ||
56 | && [ -f ${D}${sysconfdir}/pam.d/vlock ]; then | ||
57 | mv -f ${D}${sysconfdir}/pam.d/vlock ${D}${sysconfdir}/pam.d/vlock.kbd | ||
58 | fi | ||
59 | } | ||
60 | |||
61 | inherit update-alternatives | ||
62 | |||
63 | ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \ | ||
64 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'vlock','', d)}" | ||
65 | ALTERNATIVE_PRIORITY = "100" | ||
66 | |||
67 | BBCLASSEXTEND = "native" | ||