summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/eee-acpi-scripts
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-bsp/eee-acpi-scripts
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-bsp/eee-acpi-scripts')
-rw-r--r--meta/recipes-bsp/eee-acpi-scripts/eee-acpi-scripts_git.bb35
-rw-r--r--meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs8
-rw-r--r--meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch20
-rw-r--r--meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch60
4 files changed, 123 insertions, 0 deletions
diff --git a/meta/recipes-bsp/eee-acpi-scripts/eee-acpi-scripts_git.bb b/meta/recipes-bsp/eee-acpi-scripts/eee-acpi-scripts_git.bb
new file mode 100644
index 0000000000..4c26504bd3
--- /dev/null
+++ b/meta/recipes-bsp/eee-acpi-scripts/eee-acpi-scripts_git.bb
@@ -0,0 +1,35 @@
1SECTION = "base"
2DESCRIPTION = "eeePC specific ACPI scripts"
3LICENSE="GPL"
4
5PV = "0.0+git${SRCREV}"
6PR = "r3"
7
8RDEPENDS = "pm-utils"
9
10SRC_URI = "git://git.debian.org/git/debian-eeepc/eeepc-acpi-scripts.git;protocol=git \
11 file://remove-doc-check.patch;patch=1 \
12 file://powerbtn.patch;patch=1 \
13 file://policy-funcs "
14
15S = "${WORKDIR}/git"
16
17FILES_${PN} = "${datadir}/acpi-support/ \
18 ${datadir}/eeepc-acpi-scripts \
19 ${sysconfdir}/default/ \
20 ${sysconfdir}/acpi/"
21
22do_install () {
23 install -d ${D}${sysconfdir}/default/
24 install -d ${D}${sysconfdir}/acpi/actions/
25 install -d ${D}${sysconfdir}/acpi/events/
26 install -d ${D}${sysconfdir}/acpi/lib/
27 install -d ${D}${datadir}/eeepc-acpi-scripts/
28 install -d ${D}${datadir}/acpi-support/
29 install -m 644 ${S}/events/* ${D}${sysconfdir}/acpi/events/
30 install -m 644 ${S}/lib/* ${D}${sysconfdir}/acpi/lib/
31 install ${S}/actions/* ${D}${sysconfdir}/acpi/actions/
32 install -m 0644 ${S}/functions.sh ${D}${datadir}/eeepc-acpi-scripts/
33 install -m 0644 ${WORKDIR}/policy-funcs ${D}${datadir}/acpi-support/
34 install -m 0644 ${S}/debian/eeepc-acpi-scripts.default ${D}${sysconfdir}/default/
35}
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs
new file mode 100644
index 0000000000..fd099df0d8
--- /dev/null
+++ b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs
@@ -0,0 +1,8 @@
1CheckPolicy() {
2 if pidof gnome-power-manager kpowersave > /dev/null ||
3 (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) ; then
4 echo 0;
5 else
6 echo 1;
7 fi
8}
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch
new file mode 100644
index 0000000000..3f79c3e610
--- /dev/null
+++ b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch
@@ -0,0 +1,20 @@
1---
2 actions/power.sh | 3 +++
3 events/powerbtn | 2 ++
4 2 files changed, 5 insertions(+)
5
6Index: git/events/powerbtn
7===================================================================
8--- /dev/null 1970-01-01 00:00:00.000000000 +0000
9+++ git/events/powerbtn 2008-10-08 17:43:35.000000000 +0200
10@@ -0,0 +1,2 @@
11+event=button/power PWRF
12+action=/etc/acpi/actions/power.sh
13Index: git/actions/power.sh
14===================================================================
15--- /dev/null 1970-01-01 00:00:00.000000000 +0000
16+++ git/actions/power.sh 2008-10-08 17:45:26.000000000 +0200
17@@ -0,0 +1,3 @@
18+#!/bin/sh
19+
20+/sbin/shutdown -h now "Power button pressed"
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch b/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch
new file mode 100644
index 0000000000..8f6c4fcaad
--- /dev/null
+++ b/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch
@@ -0,0 +1,60 @@
1---
2 actions/hotkey.sh | 3 ---
3 actions/suspend.sh | 3 ---
4 actions/vga-toggle.sh | 3 ---
5 actions/volume.sh | 3 ---
6 4 files changed, 12 deletions(-)
7
8Index: git/actions/hotkey.sh
9===================================================================
10--- git.orig/actions/hotkey.sh 2008-09-25 11:00:58.000000000 +0200
11+++ git/actions/hotkey.sh 2008-09-25 11:01:04.000000000 +0200
12@@ -1,8 +1,5 @@
13 #!/bin/sh
14
15-# do nothing if package is removed
16-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
17-
18 . /etc/default/eeepc-acpi-scripts
19 . /usr/share/eeepc-acpi-scripts/functions.sh
20 . /etc/acpi/lib/notify.sh
21Index: git/actions/suspend.sh
22===================================================================
23--- git.orig/actions/suspend.sh 2008-09-25 11:00:32.000000000 +0200
24+++ git/actions/suspend.sh 2008-09-25 11:00:37.000000000 +0200
25@@ -1,8 +1,5 @@
26 #!/bin/sh
27
28-# do nothing if package is removed
29-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
30-
31 if (runlevel | grep -q [06]) || (pidof '/sbin/shutdown' > /dev/null); then
32 exit 0
33 fi
34Index: git/actions/vga-toggle.sh
35===================================================================
36--- git.orig/actions/vga-toggle.sh 2008-09-25 11:02:00.000000000 +0200
37+++ git/actions/vga-toggle.sh 2008-09-25 11:02:06.000000000 +0200
38@@ -1,8 +1,5 @@
39 #!/bin/sh
40
41-# do nothing if package is removed
42-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
43-
44 . /etc/default/eeepc-acpi-scripts
45
46 # return: 0 on disconnect, 1 on connected vga, 2 else
47Index: git/actions/volume.sh
48===================================================================
49--- git.orig/actions/volume.sh 2008-09-25 11:02:13.000000000 +0200
50+++ git/actions/volume.sh 2008-09-25 11:02:19.000000000 +0200
51@@ -2,9 +2,6 @@
52
53 # Volume controls
54
55-# do nothing if package is removed
56-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
57-
58 . /etc/default/eeepc-acpi-scripts
59 . /usr/share/eeepc-acpi-scripts/functions.sh
60 . /etc/acpi/lib/notify.sh