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.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
new file mode 100644
index 0000000..89cb73f
--- /dev/null
+++ b/meta/recipes-bsp/acpid/acpid.inc
@@ -0,0 +1,33 @@
1SUMMARY = "A daemon for delivering ACPI events"
2HOMEPAGE = "http://sourceforge.net/projects/acpid/"
3BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341"
4SECTION = "base"
5LICENSE = "GPLv2+"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
8 file://init \
9 file://set_socket_noblock.patch "
10
11inherit update-rc.d
12
13INITSCRIPT_NAME = "acpid"
14INITSCRIPT_PARAMS = "defaults"
15
16# Makefile ignores our CFLAGS, so override it.
17#
18EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'"
19
20do_compile () {
21 oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}'
22}
23
24do_install () {
25 install -d ${D}${bindir}
26 oe_runmake 'INSTPREFIX=${D}' install
27 install -d ${D}${sysconfdir}/init.d
28 cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid
29 chmod 755 ${D}${sysconfdir}/init.d/acpid
30
31 install -d ${D}${sysconfdir}/acpi
32 install -d ${D}${sysconfdir}/acpi/events
33}