diff options
author | Chris Larson <clarson@kergoth.com> | 2004-05-29 17:11:04 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-05-29 17:11:04 +0000 |
commit | 087629f4afb009d0eceec99db1e2ae45c1cf507e (patch) | |
tree | b33e81f2007fd813d64b11c6b513e6ebdc493e7b /apmd | |
parent | 57805d1d4e115d1901fa432d0dcb49807a38233b (diff) |
Cleanup pass - remove remnant virtual/libc items from DEPENDS.
BKrev: 40b8c428TTv4Isw4YZOO0-X8vxwV2g
Diffstat (limited to 'apmd')
-rw-r--r-- | apmd/apmd_3.2.2.oe | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/apmd/apmd_3.2.2.oe b/apmd/apmd_3.2.2.oe index e69de29bb2..d2abf40f67 100644 --- a/apmd/apmd_3.2.2.oe +++ b/apmd/apmd_3.2.2.oe @@ -0,0 +1,56 @@ +SECTION = "base" +PRIORITY = "required" +MAINTAINER = "Greg Gilbert <greg@treke.net>" +DEPENDS = "libtool-cross" +DESCRIPTION = "Set of tools for managing notebook power consumption." + +SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \ + file://debian.patch;patch=1 \ + file://workaround.patch;patch=1 \ + file://apmwrapper \ + file://init \ + file://default \ + file://apmd_proxy \ + file://apmd_proxy.conf" + +S = "${WORKDIR}/apmd-${PV}.orig" + +inherit update-rc.d + +INITSCRIPT_NAME = "apmd" +INITSCRIPT_PARAMS = "defaults" + +do_compile() { + oe_runmake "LIBTOOL=${STAGING_BINDIR}/${TARGET_PREFIX}libtool" apm apmd +} + +do_stage() { + oe_libinstall -so libapm ${STAGING_LIBDIR} +} + +do_install() { + + install -d ${D}/${sysconfdir} + install -d ${D}/${sysconfdir}/apm + install -d ${D}/${sysconfdir}/apm/event.d + install -d ${D}/${sysconfdir}/apm/other.d + install -d ${D}/${sysconfdir}/apm/suspend.d + install -d ${D}/${sysconfdir}/apm/resume.d + install -d ${D}/${sysconfdir}/apm/scripts.d + install -d ${D}/${sysconfdir}/default + install -d ${D}/${sysconfdir}/init.d + install -d ${D}/${sbindir} + install -d ${D}/${bindir} + install -d ${D}/${libdir} + install -d ${D}/${datadir}/apmd + install -m 4755 ${S}/.libs/apm ${D}/${bindir}/apm.orig + install -m 0755 ${WORKDIR}/apmwrapper ${D}/${bindir}/apm + install -m 0755 ${S}/.libs/apmd ${D}/${sbindir}/apmd + install -m 0755 ${WORKDIR}/apmd_proxy ${D}/${sysconfdir}/apm/ + install -m 0644 ${WORKDIR}/apmd_proxy.conf ${D}/${datadir}/apmd/ + install -m 0644 ${WORKDIR}/default ${D}/${sysconfdir}/default/apmd + oe_libinstall -so libapm ${D}/${libdir} + + cat ${WORKDIR}/init | sed -e 's,/usr/sbin,${sbindir},g; s,/etc,${sysconfdir},g;' > ${D}/${sysconfdir}/init.d/apmd + chmod 755 ${D}/${sysconfdir}/init.d/apmd +} |