[oe-commits] Koen Kooi : dropbear: fix do_install for all distros that aren't named ' openmoko'
GIT User account
git at amethyst.openembedded.net
Thu Oct 30 13:08:20 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4bbfd7ad9f6fca1669e7635dc28749ef11549b1c
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4bbfd7ad9f6fca1669e7635dc28749ef11549b1c
Author: Koen Kooi <koen at openembedded.org>
Date: Thu Oct 30 14:04:34 2008 +0100
dropbear: fix do_install for all distros that aren't named 'openmoko'
* IMPORTANT: test -e foo && bar will make do_install exit with an error if 'foo' doesn't exist, so use the if [ -e foo ] ; then pattern instead
---
packages/dropbear/dropbear.inc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/packages/dropbear/dropbear.inc b/packages/dropbear/dropbear.inc
index 168cedb..26e3235 100644
--- a/packages/dropbear/dropbear.inc
+++ b/packages/dropbear/dropbear.inc
@@ -59,8 +59,9 @@ do_install() {
-e 's,/usr/bin,${bindir},g' \
-e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear
chmod 755 ${D}${sysconfdir}/init.d/dropbear
- test -e ${WORKDIR}/default && \
- install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear
+ if test -e ${WORKDIR}/default ; then
+ install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear
+ fi
}
pkg_postinst () {
More information about the Openembedded-commits
mailing list