blob: 766ed4f89ed664baf3eee0a2aa8f0383c113ba6c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "A daemon for delivering ACPI events"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002HOMEPAGE = "http://sourceforge.net/projects/acpid2"
3BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004SECTION = "base"
5LICENSE = "GPLv2+"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \
8 file://init \
9 file://acpid.service \
10 "
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012CVE_PRODUCT = "acpid2"
13
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014inherit autotools update-rc.d systemd
15
16INITSCRIPT_NAME = "acpid"
17INITSCRIPT_PARAMS = "defaults"
18
19SYSTEMD_SERVICE_${PN} = "acpid.service"
20
21do_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}