diff options
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid.inc')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 25 |
1 files changed, 25 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..8ac523d19a --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | SECTION = "base" | ||
2 | DESCRIPTION = "A daemon for delivering ACPI events." | ||
3 | LICENSE="GPL" | ||
4 | |||
5 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ | ||
6 | file://init" | ||
7 | |||
8 | inherit update-rc.d | ||
9 | |||
10 | INITSCRIPT_NAME = "acpid" | ||
11 | INITSCRIPT_PARAMS = "defaults" | ||
12 | |||
13 | EXTRA_OEMAKE = "" | ||
14 | |||
15 | do_compile () { | ||
16 | oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}' | ||
17 | } | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${bindir} | ||
21 | oe_runmake 'INSTPREFIX=${D}' install | ||
22 | install -d ${D}${sysconfdir}/init.d | ||
23 | cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid | ||
24 | chmod 755 ${D}${sysconfdir}/init.d/acpid | ||
25 | } | ||