summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/acpid/acpid
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-03 15:09:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 11:09:05 +0100
commitf9c6b40fb116c12701c12bb28b4b2b909578c823 (patch)
tree12088587bf27984ff5f9fdecb769d7ebddee7926 /meta/recipes-bsp/acpid/acpid
parent9b5bc946e52c76b0f15c3576d9c6168a3bfcb767 (diff)
downloadpoky-f9c6b40fb116c12701c12bb28b4b2b909578c823.tar.gz
acpid: upgrade to 2.0.22 and add systemd support
For acpid needs to upgrade to work correctly with the new kernel. The new version now uses autotools. Also add systemd unit file. (From OE-Core rev: 93805abedb5563a91886f330153b179033a29d11) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/acpid/acpid')
-rw-r--r--meta/recipes-bsp/acpid/acpid/acpid.service10
-rw-r--r--meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch10
2 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-bsp/acpid/acpid/acpid.service b/meta/recipes-bsp/acpid/acpid/acpid.service
new file mode 100644
index 0000000000..f70e740965
--- /dev/null
+++ b/meta/recipes-bsp/acpid/acpid/acpid.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=ACPI Event Daemon
3After=syslog.target
4
5[Service]
6Type=forking
7ExecStart=@SBINDIR@/acpid
8
9[Install]
10WantedBy=multi-user.target
diff --git a/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch b/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
deleted file mode 100644
index 54d64351d7..0000000000
--- a/meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
+++ /dev/null
@@ -1,10 +0,0 @@
1--- a/acpid.c
2+++ b/acpid.c
3@@ -307,6 +307,7 @@ main(int argc, char **argv)
4 non_root_clients++;
5 }
6 fcntl(cli_fd, F_SETFD, FD_CLOEXEC);
7+ fcntl(cli_fd, F_SETFL, O_NONBLOCK);
8 snprintf(buf, sizeof(buf)-1, "%d[%d:%d]",
9 creds.pid, creds.uid, creds.gid);
10 acpid_add_client(cli_fd, buf);