diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-bsp/acpid | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/acpid')
-rw-r--r-- | meta/recipes-bsp/acpid/acpid.inc | 30 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid/acpid.service | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/acpid/acpid/init | 31 | ||||
-rw-r--r-- | meta/recipes-bsp/acpid/acpid_2.0.22.bb | 7 |
4 files changed, 78 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..e0156192a0 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid.inc | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "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 | SECTION = "base" | ||
5 | LICENSE = "GPLv2+" | ||
6 | |||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ | ||
8 | file://init \ | ||
9 | file://acpid.service \ | ||
10 | " | ||
11 | |||
12 | inherit autotools update-rc.d systemd | ||
13 | |||
14 | INITSCRIPT_NAME = "acpid" | ||
15 | INITSCRIPT_PARAMS = "defaults" | ||
16 | |||
17 | SYSTEMD_SERVICE_${PN} = "acpid.service" | ||
18 | |||
19 | do_install_append () { | ||
20 | install -d ${D}${sysconfdir}/init.d | ||
21 | sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid | ||
22 | chmod 755 ${D}${sysconfdir}/init.d/acpid | ||
23 | |||
24 | install -d ${D}${sysconfdir}/acpi | ||
25 | install -d ${D}${sysconfdir}/acpi/events | ||
26 | |||
27 | install -d ${D}${systemd_unitdir}/system | ||
28 | install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_unitdir}/system | ||
29 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/acpid.service | ||
30 | } | ||
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/init b/meta/recipes-bsp/acpid/acpid/init new file mode 100755 index 0000000000..40ff385c10 --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid/init | |||
@@ -0,0 +1,31 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | test -x /usr/sbin/acpid || exit 0 | ||
4 | test -d /proc/acpi || exit 0 | ||
5 | mkdir -p /etc/acpi/events | ||
6 | |||
7 | case "$1" in | ||
8 | start) | ||
9 | echo -n "Starting Advanced Configuration and Power Interface daemon: " | ||
10 | if [ ! -d /etc/acpi/events ]; then | ||
11 | echo "There is not any rule configuration file." | ||
12 | else | ||
13 | start-stop-daemon -o -S -x /usr/sbin/acpid -- -c /etc/acpi/events | ||
14 | echo "acpid." | ||
15 | fi | ||
16 | ;; | ||
17 | stop) | ||
18 | echo -n "Stopping Advanced Configuration and Power Interface daemon: " | ||
19 | start-stop-daemon -o -K -x /usr/sbin/acpid | ||
20 | echo "acpid." | ||
21 | ;; | ||
22 | restart|force-reload) | ||
23 | $0 stop | ||
24 | $0 start | ||
25 | ;; | ||
26 | *) | ||
27 | echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}" | ||
28 | exit 1 | ||
29 | esac | ||
30 | |||
31 | exit 0 | ||
diff --git a/meta/recipes-bsp/acpid/acpid_2.0.22.bb b/meta/recipes-bsp/acpid/acpid_2.0.22.bb new file mode 100644 index 0000000000..603fc2be9f --- /dev/null +++ b/meta/recipes-bsp/acpid/acpid_2.0.22.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require acpid.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | ||
4 | file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5" | ||
5 | |||
6 | SRC_URI[md5sum] = "c8ba756030d1b21fc973ec3d640f27f1" | ||
7 | SRC_URI[sha256sum] = "3d11454f4283c8f771d8dbd5eb6b5f2bbd9d94d9f77d68bab89e35d98b67ab31" | ||