summaryrefslogtreecommitdiff
path: root/packages/acpid/acpid.inc
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2006-12-16 14:01:34 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2006-12-16 14:01:34 +0000
commitb29928b022bd34c6c8e902c0b311b4b69e1d36ec (patch)
tree468b91229c77324300bb05f723d35f81f10989ea /packages/acpid/acpid.inc
parent0729b190f2a0e92b6a66f958803350e738cc376c (diff)
parent9e38546bebf75735da5dd957b7e4a3b54aa594ae (diff)
merge of 'a1ac08321d149b2fdf0a8556eee3e9606457d69c'
and 'f8367e2de589c7255122fe3367ff2f636e8ee6b1'
Diffstat (limited to 'packages/acpid/acpid.inc')
-rw-r--r--packages/acpid/acpid.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/acpid/acpid.inc b/packages/acpid/acpid.inc
new file mode 100644
index 0000000000..c96f431224
--- /dev/null
+++ b/packages/acpid/acpid.inc
@@ -0,0 +1,32 @@
+SECTION = "base"
+DESCRIPTION = "A daemon for delivering ACPI events."
+LICENSE="GPL"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
+ file://init"
+
+EXTRA_OEMAKE = ""
+do_compile () {
+ oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}'
+}
+
+do_install () {
+ oe_runmake 'INSTPREFIX=${D}' 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
+}
+
+pkg_postinst () {
+ if test -n "${D}"; then
+ D="-r $D"
+ fi
+ update-rc.d $D acpid defaults
+}
+
+pkg_prerm () {
+ if test -n "${D}"; then
+ D="-r $D"
+ fi
+ update-rc.d $D acpid remove
+}