diff options
Diffstat (limited to 'meta/recipes-bsp/acpid')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 24 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/acpid.service | 10 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch | 10 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid_2.0.22.bb (renamed from meta/recipes-bsp/acpid/acpid_1.0.10.bb) | 5 |
4 files changed, 23 insertions, 26 deletions
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc index fad7afdf26..9b4c3a5a5d 100644 --- a/meta/recipes-bsp/acpid/acpid.inc +++ b/meta/recipes-bsp/acpid/acpid.inc | |||
@@ -4,30 +4,28 @@ BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341" | |||
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | 6 | ||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ | 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ |
8 | file://init \ | 8 | file://init \ |
9 | file://set_socket_noblock.patch " | 9 | file://acpid.service \ |
10 | " | ||
10 | 11 | ||
11 | inherit update-rc.d | 12 | inherit autotools update-rc.d systemd |
12 | 13 | ||
13 | INITSCRIPT_NAME = "acpid" | 14 | INITSCRIPT_NAME = "acpid" |
14 | INITSCRIPT_PARAMS = "defaults" | 15 | INITSCRIPT_PARAMS = "defaults" |
15 | 16 | ||
16 | # Makefile ignores our CFLAGS, so override it. | 17 | SYSTEMD_PACKAGES = "acpid" |
17 | # | 18 | SYSTEMD_SERVICE_acpid = "acpid.service" |
18 | EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'" | ||
19 | 19 | ||
20 | do_compile () { | 20 | do_install_append () { |
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 | 21 | install -d ${D}${sysconfdir}/init.d |
28 | sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid | 22 | sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid |
29 | chmod 755 ${D}${sysconfdir}/init.d/acpid | 23 | chmod 755 ${D}${sysconfdir}/init.d/acpid |
30 | 24 | ||
31 | install -d ${D}${sysconfdir}/acpi | 25 | install -d ${D}${sysconfdir}/acpi |
32 | install -d ${D}${sysconfdir}/acpi/events | 26 | install -d ${D}${sysconfdir}/acpi/events |
27 | |||
28 | install -d ${D}${systemd_unitdir}/system | ||
29 | install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_unitdir}/system | ||
30 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/acpid.service | ||
33 | } | 31 | } |
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] | ||
2 | Description=ACPI Event Daemon | ||
3 | After=syslog.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=@SBINDIR@/acpid | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=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); | ||
diff --git a/meta/recipes-bsp/acpid/acpid_1.0.10.bb b/meta/recipes-bsp/acpid/acpid_2.0.22.bb index df55badbd4..603fc2be9f 100644 --- a/meta/recipes-bsp/acpid/acpid_1.0.10.bb +++ b/meta/recipes-bsp/acpid/acpid_2.0.22.bb | |||
@@ -3,6 +3,5 @@ require acpid.inc | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ |
4 | file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5" | 4 | file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5" |
5 | 5 | ||
6 | 6 | SRC_URI[md5sum] = "c8ba756030d1b21fc973ec3d640f27f1" | |
7 | SRC_URI[md5sum] = "61156ef32015c56dc0f2e3317f4ae09e" | 7 | SRC_URI[sha256sum] = "3d11454f4283c8f771d8dbd5eb6b5f2bbd9d94d9f77d68bab89e35d98b67ab31" |
8 | SRC_URI[sha256sum] = "22703ce0dd7305aca01bc9ac741659c32b1593f1d6fde492df7f01067a534760" | ||