diff options
Diffstat (limited to 'packages/apmd')
-rw-r--r-- | packages/apmd/apmd_3.2.2.bb | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/packages/apmd/apmd_3.2.2.bb b/packages/apmd/apmd_3.2.2.bb index 4780a69138..0e8b364458 100644 --- a/packages/apmd/apmd_3.2.2.bb +++ b/packages/apmd/apmd_3.2.2.bb @@ -3,7 +3,7 @@ SECTION = "base" PRIORITY = "required" DEPENDS = "libtool-cross" LICENSE = "GPL" -PR = "r3" +PR = "r5" SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \ file://debian.patch;patch=1 \ @@ -44,8 +44,25 @@ do_install() { 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 +# +# only Zaurus 2.4-embedix kernels need a breadead apm hack +# +# + case ${MACHINE} in + collie | poodle | tosa | c7x0 | akita | spitz | borzoi) + if [ "${KERNEL_VERSION}" == "2.6" ] + then + install -m 4577 ${S}/.libs/apm ${D}${bindir}/apm + else + install -m 4755 ${S}/.libs/apm ${D}${bindir}/apm.orig + install -m 0755 ${WORKDIR}/apmwrapper ${D}${bindir}/apm + fi + ;; + *) + install -m 4577 ${S}/.libs/apm ${D}${bindir}/apm + ;; + esac + 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/ |