[Lunar-commits] <moonbase> dropbox: fixed dropbox-cli and cleanup

Christian Krause wookietreiber at lunar-linux.org
Fri May 20 00:04:07 CEST 2011


commit ab59c9fa9d4b34046b945701e8da8b569f086ab6
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date:   Fri May 20 00:04:07 2011 +0200

    dropbox: fixed dropbox-cli and cleanup
---
 zbeta/dropbox/BUILD     |   21 +++++++++++++--------
 zbeta/dropbox/DETAILS   |    2 +-
 zbeta/dropbox/PRE_BUILD |    5 +++++
 3 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/zbeta/dropbox/BUILD b/zbeta/dropbox/BUILD
index f7a3fdf..d00521c 100644
--- a/zbeta/dropbox/BUILD
+++ b/zbeta/dropbox/BUILD
@@ -1,17 +1,22 @@
 (
 
-  rm libstdc++.so.6       &&
+  rm libstdc++.so.6  &&
 
-  prepare_install         &&
+  if in_depends dropbox Python ; then
+    sedit "s:~/.dropbox-dist/dropboxd:/usr/bin/dropboxd:g" dropbox-cli  &&
+    chmod 755 dropbox-cli
+  fi &&
+
+  prepare_install  &&
+
+  install -d /opt/dropbox  &&
+  install -d /usr/bin      &&
 
-  mkdir -p /opt/dropbox   &&
-  cp -Ra * /opt/dropbox/  &&
-  ln -sfn /opt/dropbox/dropboxd /usr/bin/dropboxd  &&
+  cp -ra *  /opt/dropbox/  &&
+  ln -sf /opt/dropbox/dropboxd /usr/bin/dropboxd  &&
 
   if in_depends dropbox Python ; then
-    cp -f $SOURCE_CACHE/$SOURCE2 dropbox  &&
-    sedit "s:~/.dropbox-dist/dropboxd:/usr/bin/dropboxd:" dropbox  &&
-    install -m 755 dropbox /usr/bin/
+    install -m755 dropbox-cli /usr/bin/dropbox-cli
   fi
 
 ) > $C_FIFO 2>&1
diff --git a/zbeta/dropbox/DETAILS b/zbeta/dropbox/DETAILS
index d33d36f..fc90319 100644
--- a/zbeta/dropbox/DETAILS
+++ b/zbeta/dropbox/DETAILS
@@ -9,7 +9,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/.dropbox-dist
      SOURCE2_VFY=sha1:183263fe474dffb0098ddc6925a7aea068f44b7e
         WEB_SITE=http://www.dropbox.com/
          ENTERED=20110109
-         UPDATED=20110215
+         UPDATED=20110214
            SHORT="Secure backup, sync and sharing made easy"
 
 cat << EOF
diff --git a/zbeta/dropbox/PRE_BUILD b/zbeta/dropbox/PRE_BUILD
new file mode 100644
index 0000000..d355ec5
--- /dev/null
+++ b/zbeta/dropbox/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+
+if in_depends dropbox Python ; then
+  cp /var/spool/lunar/dropbox.py $SOURCE_DIRECTORY/dropbox-cli
+fi


More information about the Lunar-commits mailing list