diff options
author | Chris Larson <clarson@kergoth.com> | 2004-03-13 05:42:36 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-03-13 05:42:36 +0000 |
commit | 06f7d17e81de21a95e35b03453242bc62b05a6aa (patch) | |
tree | bc9c53bce2c6a2fdce3caf5bb45bc3f8634b56be /acpid | |
parent | 4b022a36ced4930af6bcdeb7d75a5ed10c4ac9cd (diff) |
First pass of .oe cleanups.
BKrev: 40529f4crFtRY5_1DubNmWhDeHSmPw
Diffstat (limited to 'acpid')
-rw-r--r-- | acpid/acpid_1.0.2.oe | 5 | ||||
-rw-r--r-- | acpid/acpid_1.0.3.oe | 30 |
2 files changed, 33 insertions, 2 deletions
diff --git a/acpid/acpid_1.0.2.oe b/acpid/acpid_1.0.2.oe index 7a163c09e5..048eea7f2a 100644 --- a/acpid/acpid_1.0.2.oe +++ b/acpid/acpid_1.0.2.oe @@ -1,6 +1,7 @@ -DEPENDS = virtual/libc +DEPENDS = "virtual/libc" +RDEPENDS = "libc6" -SRC_URI := ${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz +SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz" EXTRA_OEMAKE= do_compile () { 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 +} |