diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/acpid/acpid.inc | 24 | ||||
-rw-r--r-- | meta/packages/acpid/acpid/gcc40.patch | 16 | ||||
-rw-r--r-- | meta/packages/acpid/acpid_1.0.2.bb | 3 | ||||
-rw-r--r-- | meta/packages/acpid/acpid_1.0.3.bb | 4 | ||||
-rw-r--r-- | meta/packages/acpid/acpid_1.0.4.bb | 4 | ||||
-rw-r--r-- | meta/packages/acpid/acpid_1.0.6.bb | 3 | ||||
-rwxr-xr-x | meta/packages/acpid/files/init | 26 |
7 files changed, 80 insertions, 0 deletions
diff --git a/meta/packages/acpid/acpid.inc b/meta/packages/acpid/acpid.inc new file mode 100644 index 0000000000..6e79915527 --- /dev/null +++ b/meta/packages/acpid/acpid.inc | |||
@@ -0,0 +1,24 @@ | |||
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 | do_compile () { | ||
15 | oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}' | ||
16 | } | ||
17 | |||
18 | do_install () { | ||
19 | install -d ${D}${bindir} | ||
20 | oe_runmake 'INSTPREFIX=${D}' install | ||
21 | install -d ${D}${sysconfdir}/init.d | ||
22 | cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid | ||
23 | chmod 755 ${D}${sysconfdir}/init.d/acpid | ||
24 | } | ||
diff --git a/meta/packages/acpid/acpid/gcc40.patch b/meta/packages/acpid/acpid/gcc40.patch new file mode 100644 index 0000000000..8e3b31da60 --- /dev/null +++ b/meta/packages/acpid/acpid/gcc40.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | upstream: https://sourceforge.net/tracker/index.php?func=detail&aid=1895615&group_id=33140&atid=407341 | ||
2 | status: not necessary anymore at least from version 1.0.6 onwards where this patch reverse-applies cleanly | ||
3 | |||
4 | Index: acpid-1.0.3/ud_socket.c | ||
5 | =================================================================== | ||
6 | --- acpid-1.0.3.orig/ud_socket.c 2003-11-17 14:24:58.000000000 -0700 | ||
7 | +++ acpid-1.0.3/ud_socket.c 2005-06-27 14:44:17.785576106 -0700 | ||
8 | @@ -58,7 +58,7 @@ | ||
9 | while (1) { | ||
10 | int newsock = 0; | ||
11 | struct sockaddr_un cliaddr; | ||
12 | - int len = sizeof(struct sockaddr_un); | ||
13 | + socklen_t len = sizeof(struct sockaddr_un); | ||
14 | |||
15 | newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len); | ||
16 | if (newsock < 0) { | ||
diff --git a/meta/packages/acpid/acpid_1.0.2.bb b/meta/packages/acpid/acpid_1.0.2.bb new file mode 100644 index 0000000000..2a305eeac4 --- /dev/null +++ b/meta/packages/acpid/acpid_1.0.2.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require acpid.inc | ||
2 | PR = "r2" | ||
3 | |||
diff --git a/meta/packages/acpid/acpid_1.0.3.bb b/meta/packages/acpid/acpid_1.0.3.bb new file mode 100644 index 0000000000..640acd5203 --- /dev/null +++ b/meta/packages/acpid/acpid_1.0.3.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require acpid.inc | ||
2 | SRC_URI += "file://gcc40.patch;patch=1" | ||
3 | PR = "r2" | ||
4 | |||
diff --git a/meta/packages/acpid/acpid_1.0.4.bb b/meta/packages/acpid/acpid_1.0.4.bb new file mode 100644 index 0000000000..f48c262254 --- /dev/null +++ b/meta/packages/acpid/acpid_1.0.4.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require acpid.inc | ||
2 | SRC_URI += "file://gcc40.patch;patch=1" | ||
3 | PR = "r3" | ||
4 | |||
diff --git a/meta/packages/acpid/acpid_1.0.6.bb b/meta/packages/acpid/acpid_1.0.6.bb new file mode 100644 index 0000000000..e096796fbd --- /dev/null +++ b/meta/packages/acpid/acpid_1.0.6.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require acpid.inc | ||
2 | |||
3 | PR = "r4" | ||
diff --git a/meta/packages/acpid/files/init b/meta/packages/acpid/files/init new file mode 100755 index 0000000000..ef08b59596 --- /dev/null +++ b/meta/packages/acpid/files/init | |||
@@ -0,0 +1,26 @@ | |||
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 | start-stop-daemon -S -x /usr/sbin/acpid -- -c /etc/acpi/events | ||
10 | echo "acpid." | ||
11 | ;; | ||
12 | stop) | ||
13 | echo -n "Stopping Advanced Configuration and Power Interface daemon: " | ||
14 | start-stop-daemon -K -x /usr/sbin/acpid | ||
15 | echo "acpid." | ||
16 | ;; | ||
17 | restart|force-reload) | ||
18 | $0 stop | ||
19 | $0 start | ||
20 | ;; | ||
21 | *) | ||
22 | echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}" | ||
23 | exit 1 | ||
24 | esac | ||
25 | |||
26 | exit 0 | ||