diff options
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid.inc')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 33 |
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 0000000000..89cb73fc7f --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "A daemon for delivering ACPI events" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/acpid/" | ||
3 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "GPLv2+" | ||
6 | |||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ | ||
8 | file://init \ | ||
9 | file://set_socket_noblock.patch " | ||
10 | |||
11 | inherit update-rc.d | ||
12 | |||
13 | INITSCRIPT_NAME = "acpid" | ||
14 | INITSCRIPT_PARAMS = "defaults" | ||
15 | |||
16 | # Makefile ignores our CFLAGS, so override it. | ||
17 | # | ||
18 | EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'" | ||
19 | |||
20 | do_compile () { | ||
21 | oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}' | ||
22 | } | ||
23 | |||
24 | do_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 | } | ||