diff options
Diffstat (limited to 'acpid/acpid_1.0.3.oe')
-rw-r--r-- | acpid/acpid_1.0.3.oe | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/acpid/acpid_1.0.3.oe b/acpid/acpid_1.0.3.oe index e69de29bb2..048eea7f2a 100644 --- a/acpid/acpid_1.0.3.oe +++ b/acpid/acpid_1.0.3.oe @@ -0,0 +1,30 @@ +DEPENDS = "virtual/libc" +RDEPENDS = "libc6" + +SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz" + +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 ${FILESDIR}/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 +} |