diff options
Diffstat (limited to 'meta/recipes-bsp/acpid')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 25 | ||||
-rwxr-xr-x | meta/recipes-bsp/acpid/acpid/init | 26 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid_1.0.6.bb | 3 |
3 files changed, 54 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 @@ +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} -D_GNU_SOURCE' '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 +} diff --git a/meta/recipes-bsp/acpid/acpid/init b/meta/recipes-bsp/acpid/acpid/init new file mode 100755 index 0000000000..ef08b59596 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid/init @@ -0,0 +1,26 @@ +#! /bin/sh -e + +test -x /usr/sbin/acpid || exit 0 +test -d /proc/acpi || exit 0 + +case "$1" in + start) + echo -n "Starting Advanced Configuration and Power Interface daemon: " + start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events + echo "acpid." + ;; + stop) + echo -n "Stopping Advanced Configuration and Power Interface daemon: " + start-stop-daemon -K -x /usr/sbin/acpid + echo "acpid." + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}" + exit 1 +esac + +exit 0 diff --git a/meta/recipes-bsp/acpid/acpid_1.0.6.bb b/meta/recipes-bsp/acpid/acpid_1.0.6.bb new file mode 100644 index 0000000000..364aa8200b --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid_1.0.6.bb @@ -0,0 +1,3 @@ +require acpid.inc + +PR = "r5" |