summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-08-27 17:27:34 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-27 17:27:34 +0000
commitd6e949ee7a1785af2068f63dfdb8d1f81fa7107e (patch)
tree527331c435220f3ebf6a3b1c29d08fc6c18d42cd /packages
parentd2befe177af2474aec243007194cd9e7089bef0b (diff)
apmd: install the apm wrapper script only on Zaurus models using 2.4-embedix
Diffstat (limited to 'packages')
-rw-r--r--packages/apmd/apmd_3.2.2.bb23
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/