Skip to contentSkip to conversation

acpid: convert to INC_PR

PATCH New Roman I Khimov 1 participant 2 messages Mar 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpid: convert to INC_PR

---
 recipes/acpid/acpid.inc       |    2 ++
 recipes/acpid/acpid_1.0.10.bb |    2 +-
 recipes/acpid/acpid_1.0.2.bb  |    2 +-
 recipes/acpid/acpid_1.0.3.bb  |    3 +--
 recipes/acpid/acpid_1.0.4.bb  |    3 +--
 recipes/acpid/acpid_1.0.6.bb  |    3 +--
 recipes/acpid/acpid_1.0.8.bb  |    2 +-
 7 files changed, 8 insertions(+), 9 deletions(-)
recipes/acpid/acpid.inc +2 -0
index 6e79915..bb976c9 100644
@@ -2,6 +2,8 @@ SECTION = "base"
 DESCRIPTION = "A daemon for delivering ACPI events."
 LICENSE="GPL"
 
+INC_PR = "r4"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
            file://init"
 
recipes/acpid/acpid_1.0.10.bb +1 -1
index f210051..c5e3c62 100644
@@ -4,4 +4,4 @@ SRC_URI_append = " file://event.c.diff;patch=1 \
                    file://netlink.diff;patch=1 \
                    file://gcc44.diff;patch=1 \
                  "
-
+PR = "${INC_PR}.0"
\ No newline at end of file
recipes/acpid/acpid_1.0.2.bb +1 -1
index 2a305ee..ad8efc4 100644
@@ -1,3 +1,3 @@
 require acpid.inc
-PR = "r2"
+PR = "${INC_PR}.0"
 
recipes/acpid/acpid_1.0.3.bb +1 -2
index 640acd5..670f032 100644
@@ -1,4 +1,3 @@
 require acpid.inc
 SRC_URI += "file://gcc40.patch;patch=1"
-PR = "r2"
-
+PR = "${INC_PR}.0"
\ No newline at end of file
recipes/acpid/acpid_1.0.4.bb +1 -2
index f48c262..8d9bff7 100644
@@ -1,4 +1,3 @@
 require acpid.inc
 SRC_URI += "file://gcc40.patch;patch=1"
-PR = "r3"
-
+PR = "${INC_PR}.0"
recipes/acpid/acpid_1.0.6.bb +1 -2
index e096796..c44cd81 100644
@@ -1,3 +1,2 @@
 require acpid.inc
-
-PR = "r4"
+PR = "${INC_PR}.0"
\ No newline at end of file
recipes/acpid/acpid_1.0.8.bb +1 -1
index 98638e6..5e8e451 100644
@@ -3,4 +3,4 @@ require acpid.inc
 SRC_URI_append = " file://event.c.diff;patch=1 \
                    file://fixfd.diff;patch=1 \
                    file://netlink.diff;patch=1"
-
+PR = "${INC_PR}.0"
\ No newline at end of file
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 acpid: add script to halt on power button press

---
 recipes/acpid/acpid.inc                   |    5 ++++-
 recipes/acpid/files/powerbtn-acpi-support |    2 ++
 2 files changed, 6 insertions(+), 1 deletions(-)
 create mode 100644 recipes/acpid/files/powerbtn-acpi-support
recipes/acpid/acpid.inc +4 -1
index bb976c9..5240911 100644
@@ -5,7 +5,8 @@ LICENSE="GPL"
 INC_PR = "r4"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
-           file://init"
+           file://init \
+           file://powerbtn-acpi-support"
 
 inherit update-rc.d
 
@@ -23,4 +24,6 @@ do_install () {
 	install -d ${D}${sysconfdir}/init.d
 	cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid
 	chmod 755 ${D}${sysconfdir}/init.d/acpid
+	install -d ${D}${sysconfdir}/acpi/events
+	install -m 0644 ${WORKDIR}/powerbtn-acpi-support ${D}${sysconfdir}/acpi/events/
 }
recipes/acpid/files/powerbtn-acpi-support new file +2 -0
new file mode 100644
index 0000000..b2e80f9
@@ -0,0 +1,2 @@
+event=button[ /]power
+action=halt
Signature · 1 line
1.5.6.5