diff options
Diffstat (limited to 'meta/recipes-bsp/acpid')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 33 | ||||
-rwxr-xr-x | meta/recipes-bsp/acpid/acpid/init | 30 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid_1.0.10.bb | 9 |
3 files changed, 72 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..40293c5ee4 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | DESCRIPTION = "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 | |||
5 | LICENSE="GPLv2+" | ||
6 | |||
7 | SECTION = "base" | ||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ | ||
9 | file://init" | ||
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 | } | ||
diff --git a/meta/recipes-bsp/acpid/acpid/init b/meta/recipes-bsp/acpid/acpid/init new file mode 100755 index 0000000000..9f2c0d48d0 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid/init | |||
@@ -0,0 +1,30 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | test -x /usr/sbin/acpid || exit 0 | ||
4 | test -d /proc/acpi || exit 0 | ||
5 | |||
6 | case "$1" in | ||
7 | start) | ||
8 | echo -n "Starting Advanced Configuration and Power Interface daemon: " | ||
9 | if [ ! -d /etc/acpi/events ]; then | ||
10 | echo "There is not any rule configuration file." | ||
11 | else | ||
12 | start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events | ||
13 | echo "acpid." | ||
14 | fi | ||
15 | ;; | ||
16 | stop) | ||
17 | echo -n "Stopping Advanced Configuration and Power Interface daemon: " | ||
18 | start-stop-daemon -K -x /usr/sbin/acpid | ||
19 | echo "acpid." | ||
20 | ;; | ||
21 | restart|force-reload) | ||
22 | $0 stop | ||
23 | $0 start | ||
24 | ;; | ||
25 | *) | ||
26 | echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}" | ||
27 | exit 1 | ||
28 | esac | ||
29 | |||
30 | exit 0 | ||
diff --git a/meta/recipes-bsp/acpid/acpid_1.0.10.bb b/meta/recipes-bsp/acpid/acpid_1.0.10.bb new file mode 100644 index 0000000000..2dd4fbd2ce --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid_1.0.10.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require acpid.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | ||
4 | file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5" | ||
5 | |||
6 | PR = "r0" | ||
7 | |||
8 | SRC_URI[md5sum] = "61156ef32015c56dc0f2e3317f4ae09e" | ||
9 | SRC_URI[sha256sum] = "22703ce0dd7305aca01bc9ac741659c32b1593f1d6fde492df7f01067a534760" | ||