Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "A daemon for delivering ACPI events" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://sourceforge.net/projects/acpid2" |
| 3 | BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | SECTION = "base" |
| 5 | LICENSE = "GPLv2+" |
| 6 | |
| 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ |
| 8 | file://init \ |
| 9 | file://acpid.service \ |
| 10 | " |
| 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | CVE_PRODUCT = "acpid2" |
| 13 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | inherit autotools update-rc.d systemd |
| 15 | |
| 16 | INITSCRIPT_NAME = "acpid" |
| 17 | INITSCRIPT_PARAMS = "defaults" |
| 18 | |
| 19 | SYSTEMD_SERVICE_${PN} = "acpid.service" |
| 20 | |
| 21 | do_install_append () { |
| 22 | install -d ${D}${sysconfdir}/init.d |
| 23 | sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid |
| 24 | chmod 755 ${D}${sysconfdir}/init.d/acpid |
| 25 | |
| 26 | install -d ${D}${sysconfdir}/acpi |
| 27 | install -d ${D}${sysconfdir}/acpi/events |
| 28 | |
| 29 | install -d ${D}${systemd_unitdir}/system |
| 30 | install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_unitdir}/system |
| 31 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/acpid.service |
| 32 | } |