2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Keytable files and keyboard utilities"
|
2011-11-04 16:40:17 +00:00
|
|
|
# everything minus console-fonts is GPLv2+
|
|
|
|
LICENSE = "GPLv2+"
|
2013-10-07 18:14:30 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=a5fcc36121d93e1f69d96a313078c8b5"
|
2013-10-21 16:48:56 +00:00
|
|
|
DEPENDS = "libcheck"
|
2011-11-04 16:40:17 +00:00
|
|
|
|
2014-06-02 20:04:59 +00:00
|
|
|
inherit autotools gettext ptest pkgconfig
|
2011-11-04 16:40:17 +00:00
|
|
|
|
2011-11-04 16:41:07 +00:00
|
|
|
RREPLACES_${PN} = "console-tools"
|
|
|
|
RPROVIDES_${PN} = "console-tools"
|
|
|
|
RCONFLICTS_${PN} = "console-tools"
|
|
|
|
|
2014-07-15 20:16:28 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
|
2016-09-30 08:49:55 +00:00
|
|
|
file://run-ptest \
|
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://set-proper-path-of-resources.patch', '', d)} \
|
2013-11-07 05:35:00 +00:00
|
|
|
"
|
2011-11-04 16:40:17 +00:00
|
|
|
|
2017-02-22 14:51:14 +00:00
|
|
|
SRC_URI[md5sum] = "c1635a5a83b63aca7f97a3eab39ebaa6"
|
|
|
|
SRC_URI[sha256sum] = "5fd90af6beb225a9bb9b9fb414c090fba53c9a55793e172f508cd43652e59a88"
|
2013-09-16 02:02:33 +00:00
|
|
|
|
2017-02-27 13:02:50 +00:00
|
|
|
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
|
2013-10-07 18:14:30 +00:00
|
|
|
PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam,"
|
2011-11-04 16:40:17 +00:00
|
|
|
|
2016-09-30 08:49:55 +00:00
|
|
|
do_compile_ptest() {
|
|
|
|
oe_runmake -C ${B}/tests dumpkeys-fulltable alt-is-meta
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_ptest() {
|
|
|
|
install -D ${B}/tests/Makefile ${D}${PTEST_PATH}/tests/Makefile
|
|
|
|
sed -i -e '/Makefile:/,/^$/d' -e '/%: %.in/,/^$/d' \
|
|
|
|
-e '/libkeymap_.*_SOURCES =/d' -e '/$(EXEEXT):/,/^$/d' ${D}${PTEST_PATH}/tests/Makefile
|
|
|
|
|
|
|
|
find ${B}/tests -executable -exec install {} ${D}${PTEST_PATH}/tests \;
|
|
|
|
find ${S}/tests \( -name \*.map -o -name \*.bin -o -name \*.output \) -exec install {} ${D}${PTEST_PATH}/tests \;
|
|
|
|
|
|
|
|
install -D -m 755 ${S}/config/test-driver ${D}${PTEST_PATH}/config/test-driver
|
|
|
|
}
|
|
|
|
|
2011-11-04 16:40:17 +00:00
|
|
|
PACKAGES += "${PN}-consolefonts ${PN}-keymaps ${PN}-unimaps ${PN}-consoletrans"
|
|
|
|
|
|
|
|
FILES_${PN}-consolefonts = "${datadir}/consolefonts"
|
|
|
|
FILES_${PN}-consoletrans = "${datadir}/consoletrans"
|
|
|
|
FILES_${PN}-keymaps = "${datadir}/keymaps"
|
|
|
|
FILES_${PN}-unimaps = "${datadir}/unimaps"
|
2011-11-10 15:20:49 +00:00
|
|
|
|
2016-09-30 08:49:55 +00:00
|
|
|
RDEPENDS_${PN}-ptest = "make"
|
|
|
|
|
2012-04-16 17:17:28 +00:00
|
|
|
inherit update-alternatives
|
|
|
|
|
2012-07-26 23:07:40 +00:00
|
|
|
ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt"
|
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
2013-10-07 18:14:30 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|