blob: 7b2f1c71c59282f0859321adcf005682b882aee7 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "A daemon for delivering ACPI events"
Brad Bishopa34c0302019-09-23 22:34:48 -04002DESCRIPTION = "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."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008HOMEPAGE = "http://sourceforge.net/projects/acpid2"
9BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010SECTION = "base"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000011LICENSE = "GPL-2.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
13SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \
14 file://init \
15 file://acpid.service \
Andrew Geissler517393d2023-01-13 08:55:19 -060016 file://0001-Replace-stat64-with-stat.patch \
17 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019CVE_PRODUCT = "acpid2"
20
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021inherit autotools update-rc.d systemd
22
23INITSCRIPT_NAME = "acpid"
24INITSCRIPT_PARAMS = "defaults"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026SYSTEMD_SERVICE:${PN} = "acpid.service"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Patrick Williams213cb262021-08-07 19:21:33 -050028do_install:append () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 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 Geissler5199d832021-09-24 16:47:35 -050036 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 Williamsc124f4f2015-09-15 14:41:29 -050039}