summaryrefslogtreecommitdiff
path: root/packages/acpid/acpid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/acpid/acpid.inc')
-rw-r--r--packages/acpid/acpid.inc20
1 files changed, 6 insertions, 14 deletions
diff --git a/packages/acpid/acpid.inc b/packages/acpid/acpid.inc
index c96f431224..6e79915527 100644
--- a/packages/acpid/acpid.inc
+++ b/packages/acpid/acpid.inc
@@ -5,28 +5,20 @@ LICENSE="GPL"
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
file://init"
+inherit update-rc.d
+
+INITSCRIPT_NAME = "acpid"
+INITSCRIPT_PARAMS = "defaults"
+
EXTRA_OEMAKE = ""
do_compile () {
oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}'
}
do_install () {
+ install -d ${D}${bindir}
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
-}