rk3568_ubuntu_r60_v1.3.2/yocto/meta-quectel-app/recipes/input-event-daemon/input-event-daemon_0.1.3.bb

44 lines
1.9 KiB
BlitzBasic
Raw Normal View History

2023-11-03 14:12:44 +08:00
SUMMARY = "input event handling daemon for linux. \
such as keys, mouse buttons and switches. \
http://github.com/gandro/input-event-daemon"
LICENSE = "CLOSED"
FILESPATH =+ "${TOPDIR}/../../external/quectel-app/:"
SRC_URI = "file://input-event-daemon \
file://0001-Support-specifing-devices-in-command-args.patch \
file://0002-Support-parsing-configfile-.d-.conf.patch \
file://0003-Support-dynamic-remove-devices-when-not-available.patch \
file://0004-Support-key-press-and-release-events.patch \
file://0005-Support-sync-events.patch \
file://0006-Listen-all-devices-by-default.patch \
file://0007-Support-hotplug-when-listening-all-devices.patch \
file://input-event-daemon.service \
file://power-key.sh \
file://power-key.conf \
"
S = "${WORKDIR}/input-event-daemon"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/input-event-daemon ${D}${bindir}/input-event-daemon
install -m 0755 ${WORKDIR}/power-key.sh ${D}${bindir}/power-key.sh
install -d ${D}${sysconfdir}
install -d ${D}${sysconfdir}/input-event-daemon.conf.d/
install -m 0644 ${S}/docs/sample.conf ${D}${sysconfdir}/input-event-daemon.conf
sed -i -e '/^listen = /d' ${D}${sysconfdir}/input-event-daemon.conf
install -m 0755 ${WORKDIR}/power-key.conf ${D}${sysconfdir}/input-event-daemon.conf.d/power-key.conf
install -d ${D}/${systemd_system_unitdir}
install -d ${D}/${sysconfdir}/systemd/system/multi-user.target.wants/
install -m 0644 ${WORKDIR}/input-event-daemon.service ${D}${systemd_system_unitdir}/input-event-daemon.service
ln -sf ${systemd_system_unitdir}/input-event-daemon.service ${D}/${sysconfdir}/systemd/system/multi-user.target.wants/input-event-daemon.service
}
FILES:${PN} += "/lib/*"
FILES:${PN} += "/etc/*"
FILES:${PN} += "${bindir}/*"