2010-09-28 00:11:11 +00:00
|
|
|
SUMMARY = "Keyboard maps"
|
|
|
|
DESCRIPTION = "Keymaps and initscript to set the keymap on bootup."
|
2006-05-09 18:38:19 +00:00
|
|
|
SECTION = "base"
|
2011-10-29 07:37:20 +00:00
|
|
|
|
2014-09-03 07:09:14 +00:00
|
|
|
RDEPENDS_${PN} = "kbd"
|
2011-10-29 10:12:37 +00:00
|
|
|
|
2010-12-02 13:12:40 +00:00
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
2011-04-08 16:07:54 +00:00
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
2014-03-05 17:17:18 +00:00
|
|
|
PR = "r31"
|
2006-05-09 18:38:19 +00:00
|
|
|
|
2011-06-10 08:08:43 +00:00
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
|
2014-09-03 07:09:03 +00:00
|
|
|
# As the recipe doesn't inherit systemd.bbclass, we need to set this variable
|
|
|
|
# manually to avoid unnecessary postinst/preinst generated.
|
|
|
|
python __anonymous() {
|
|
|
|
if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
|
|
|
|
d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
|
|
|
|
}
|
|
|
|
|
2006-05-09 18:38:19 +00:00
|
|
|
inherit update-rc.d
|
|
|
|
|
2010-12-02 13:12:40 +00:00
|
|
|
SRC_URI = "file://keymap.sh \
|
|
|
|
file://GPLv2.patch"
|
2006-05-09 18:38:19 +00:00
|
|
|
|
2008-07-03 10:46:56 +00:00
|
|
|
INITSCRIPT_NAME = "keymap.sh"
|
2006-09-28 17:05:01 +00:00
|
|
|
INITSCRIPT_PARAMS = "start 01 S ."
|
2006-05-09 18:38:19 +00:00
|
|
|
|
2015-01-06 21:29:04 +00:00
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2006-05-09 18:38:19 +00:00
|
|
|
do_install () {
|
2014-09-03 07:09:03 +00:00
|
|
|
# Only install the script if 'sysvinit' is in DISTRO_FEATURES
|
|
|
|
# THe ulitity this script provides could be achieved by systemd-vconsole-setup.service
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
|
|
|
|
install -d ${D}${sysconfdir}/init.d/
|
|
|
|
install -m 0755 ${WORKDIR}/keymap.sh ${D}${sysconfdir}/init.d/
|
|
|
|
fi
|
2006-05-09 18:38:19 +00:00
|
|
|
}
|
2014-09-03 07:09:03 +00:00
|
|
|
|
2014-09-03 07:09:17 +00:00
|
|
|
DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
|
|
|
|
pkg_postinst_${PN} () {
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then
|
|
|
|
if [ -n "$D" ]; then
|
|
|
|
OPTS="--root=$D"
|
|
|
|
fi
|
|
|
|
systemctl $OPTS mask keymap.service
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-09-03 07:09:03 +00:00
|
|
|
ALLOW_EMPTY_${PN} = "1"
|