diff options
Diffstat (limited to 'recipes/acpid/acpid.inc')
-rw-r--r-- | recipes/acpid/acpid.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/acpid/acpid.inc b/recipes/acpid/acpid.inc new file mode 100644 index 0000000000..6e79915527 --- /dev/null +++ b/recipes/acpid/acpid.inc @@ -0,0 +1,24 @@ +SECTION = "base" +DESCRIPTION = "A daemon for delivering ACPI events." +LICENSE="GPL" + +SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ + file://init" + +inherit update-rc.d + +INITSCRIPT_NAME = "acpid" +INITSCRIPT_PARAMS = "defaults" + +EXTRA_OEMAKE = "" +do_compile () { + oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}' +} + +do_install () { + install -d ${D}${bindir} + oe_runmake 'INSTPREFIX=${D}' install + install -d ${D}${sysconfdir}/init.d + cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid + chmod 755 ${D}${sysconfdir}/init.d/acpid +} |