1SUMMARY = "A daemon for delivering ACPI events" 2DESCRIPTION = "ACPID is a completely flexible, totally extensible daemon for \ 3delivering ACPI events. It listens on netlink interface (or on the \ 4deprecated file /proc/acpi/event), and when an event occurs, executes programs \ 5to handle the event. The programs it executes are configured through a set of \ 6configuration files, which can be dropped into place by packages or by the \ 7admin." 8HOMEPAGE = "http://sourceforge.net/projects/acpid2" 9BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar" 10SECTION = "base" 11LICENSE = "GPL-2.0-or-later" 12 13SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ 14 file://init \ 15 file://acpid.service \ 16 file://0001-Replace-stat64-with-stat.patch \ 17 " 18 19CVE_PRODUCT = "acpid2" 20 21inherit autotools update-rc.d systemd 22 23INITSCRIPT_NAME = "acpid" 24INITSCRIPT_PARAMS = "defaults" 25 26SYSTEMD_SERVICE:${PN} = "acpid.service" 27 28do_install:append () { 29 install -d ${D}${sysconfdir}/init.d 30 sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid 31 chmod 755 ${D}${sysconfdir}/init.d/acpid 32 33 install -d ${D}${sysconfdir}/acpi 34 install -d ${D}${sysconfdir}/acpi/events 35 36 install -d ${D}${systemd_system_unitdir} 37 install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_system_unitdir} 38 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/acpid.service 39} 40