Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "A daemon for delivering ACPI events" |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 2 | DESCRIPTION = "ACPID is a completely flexible, totally extensible daemon for \ |
| 3 | delivering ACPI events. It listens on netlink interface (or on the \ |
| 4 | deprecated file /proc/acpi/event), and when an event occurs, executes programs \ |
| 5 | to handle the event. The programs it executes are configured through a set of \ |
| 6 | configuration files, which can be dropped into place by packages or by the \ |
| 7 | admin." |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | HOMEPAGE = "http://sourceforge.net/projects/acpid2" |
| 9 | BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | SECTION = "base" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 11 | LICENSE = "GPL-2.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ |
| 14 | file://init \ |
| 15 | file://acpid.service \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | file://0001-Replace-stat64-with-stat.patch \ |
| 17 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | CVE_PRODUCT = "acpid2" |
| 20 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | inherit autotools update-rc.d systemd |
| 22 | |
| 23 | INITSCRIPT_NAME = "acpid" |
| 24 | INITSCRIPT_PARAMS = "defaults" |
| 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} = "acpid.service" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | do_install:append () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 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 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | } |