mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
GPL-3 is used for keymaps-pine LGPL2 is used in all C source files under src/libkfont/ which generate binaries included in main kbd package. This is seen in their SPDX headers. (From OE-Core rev: 29f6d4be31164bf5cba9ff4706f219b3d91a8f1f) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
68 lines
2.5 KiB
BlitzBasic
68 lines
2.5 KiB
BlitzBasic
SUMMARY = "Keytable files and keyboard utilities"
|
||
HOMEPAGE = "http://www.kbd-project.org/"
|
||
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."
|
||
|
||
# consolefonts and keymaps contain also some public domain and author notice licenses
|
||
LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later & GPL-3.0-or-later"
|
||
LIC_FILES_CHKSUM = " \
|
||
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||
file://data/keymaps/pine/en.map;beginline=2;endline=15;md5=20914a59c0546a7b77ebf959bc88ad5d \
|
||
"
|
||
LICENSE:${PN} = "GPL-2.0-or-later & LGPL-2.0-or-later"
|
||
LICENSE:${PN}-consolefonts = "GPL-2.0-or-later"
|
||
LICENSE:${PN}-consoletrans = "GPL-2.0-or-later"
|
||
LICENSE:${PN}-keymaps-pine = "GPL-3.0-or-later"
|
||
LICENSE:${PN}-keymaps = "GPL-2.0-or-later"
|
||
LICENSE:${PN}-unimaps = "GPL-2.0-or-later"
|
||
|
||
inherit autotools gettext pkgconfig
|
||
|
||
DEPENDS += "flex-native"
|
||
|
||
RREPLACES:${PN} = "console-tools"
|
||
RPROVIDES:${PN} = "console-tools"
|
||
RCONFLICTS:${PN} = "console-tools"
|
||
|
||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
|
||
file://0001-Remove-non-free-Agafari-fonts.patch \
|
||
"
|
||
|
||
SRC_URI[sha256sum] = "519f8d087aecca7e0a33cd084bef92c066eb19731666653dcc70c9d71aa40926"
|
||
|
||
EXTRA_OECONF = "--disable-tests"
|
||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
|
||
"
|
||
|
||
PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam,"
|
||
|
||
PACKAGES += "${PN}-consolefonts ${PN}-keymaps-pine ${PN}-keymaps ${PN}-unimaps ${PN}-consoletrans"
|
||
|
||
FILES:${PN}-consolefonts = "${datadir}/consolefonts"
|
||
FILES:${PN}-consoletrans = "${datadir}/consoletrans"
|
||
FILES:${PN}-keymaps-pine = "${datadir}/keymaps/pine"
|
||
FILES:${PN}-keymaps = "${datadir}/keymaps"
|
||
FILES:${PN}-unimaps = "${datadir}/unimaps"
|
||
|
||
RRECOMMENDS:${PN}-keymaps = "${PN}-keymaps-pine"
|
||
|
||
# remove this when upgrading to newer version which has integrated
|
||
# https://github.com/legionus/kbd/commit/b757e6842f9631757f0d1a6b3833aabffa9ffeee
|
||
do_configure:prepend() {
|
||
rm -rf ${S}/data/consolefonts/Agafari-1*
|
||
}
|
||
|
||
do_install:append () {
|
||
if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)}" = "yes" ] \
|
||
&& [ -f ${D}${sysconfdir}/pam.d/vlock ]; then
|
||
mv -f ${D}${sysconfdir}/pam.d/vlock ${D}${sysconfdir}/pam.d/vlock.kbd
|
||
fi
|
||
}
|
||
|
||
inherit update-alternatives
|
||
|
||
ALTERNATIVE:${PN} = "chvt deallocvt fgconsole openvt showkey \
|
||
${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'vlock','', d)}"
|
||
ALTERNATIVE_PRIORITY = "100"
|
||
|
||
BBCLASSEXTEND = "native"
|