summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/acpid/acpid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid.inc')
-rw-r--r--meta/recipes-bsp/acpid/acpid.inc40
1 files changed, 0 insertions, 40 deletions
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
deleted file mode 100644
index ba954563b6..0000000000
--- a/meta/recipes-bsp/acpid/acpid.inc
+++ /dev/null
@@ -1,40 +0,0 @@
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
13SOURCEFORGE_PROJECT = "acpid2"
14SRC_URI = "${SOURCEFORGE_MIRROR}/${SOURCEFORGE_PROJECT}/acpid-${PV}.tar.xz \
15 file://init \
16 file://acpid.service \
17 file://0001-Replace-stat64-with-stat.patch \
18 "
19
20CVE_PRODUCT = "acpid2"
21
22inherit autotools update-rc.d systemd sourceforge-releases
23
24INITSCRIPT_NAME = "acpid"
25INITSCRIPT_PARAMS = "defaults"
26
27SYSTEMD_SERVICE:${PN} = "acpid.service"
28
29do_install:append () {
30 install -d ${D}${sysconfdir}/init.d
31 sed -e 's,/usr/sbin,${sbindir},g' ${UNPACKDIR}/init > ${D}${sysconfdir}/init.d/acpid
32 chmod 755 ${D}${sysconfdir}/init.d/acpid
33
34 install -d ${D}${sysconfdir}/acpi
35 install -d ${D}${sysconfdir}/acpi/events
36
37 install -d ${D}${systemd_system_unitdir}
38 install -m 0644 ${UNPACKDIR}/acpid.service ${D}${systemd_system_unitdir}
39 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/acpid.service
40}