wok rev 2536
dropbox --> get-dropbox (daemon is not open source)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 22 11:47:30 2009 +0100 (2009-03-22) |
parents | 680f78803431 |
children | fa483a2cce49 |
files | dropbox/receipt dropbox/stuff/dropbox.desktop dropbox/stuff/dropbox.png dropbox/stuff/dropboxd get-dropbox/receipt get-dropbox/stuff/dropbox.png get-dropbox/stuff/get-dropbox |
line diff
1.1 --- a/dropbox/receipt Sun Mar 22 01:21:14 2009 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,44 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="dropbox" 1.7 -VERSION="0.6.487" 1.8 -CATEGORY="network" 1.9 -SHORT_DESC="Dropbox online file storage tool" 1.10 -MAINTAINER="pankso@slitaz.org" 1.11 -DEPENDS="python" 1.12 -TARBALL="$PACKAGE-lnx.x86-$VERSION.tar.gz" 1.13 -WEB_SITE="http://www.getdropbox.com/" 1.14 -WGET_URL="http://dl.getdropbox.com/u/17/$TARBALL" 1.15 - 1.16 -# Rules to configure and make the package. 1.17 -compile_rules() 1.18 -{ 1.19 - mkdir -p $src && cd $src 1.20 - mkdir -p _pkg/usr/lib _pkg/usr/bin 1.21 - mv ../.dropbox-dist _pkg/usr/lib/dropbox 2>/dev/null 1.22 - cp -a ../stuff/dropboxd _pkg/usr/lib/dropbox 1.23 - cd _pkg/usr/bin 1.24 - rm -f dropboxd nautilus 1.25 - ln -s ../lib/dropbox/dropboxd . 1.26 - ln -s /usr/bin/pcmanfm nautilus 1.27 -} 1.28 - 1.29 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 -genpkg_rules() 1.31 -{ 1.32 - cp -a $_pkg/* $fs 1.33 -} 1.34 - 1.35 -post_install() 1.36 -{ 1.37 - AUTOSTART_SCRIPT="$1/etc/xdg/openbox/autostart.sh" 1.38 - if ! grep -q "^#dropboxd" $AUTOSTART_SCRIPT; then 1.39 - echo -n "Adding Dropbox to Openbox autostart script... " 1.40 - cat >> $AUTOSTART_SCRIPT << EOT 1.41 - 1.42 -# Start the Dropbox online file storage daemon.' 1.43 -#dropboxd & 1.44 -EOT 1.45 - status 1.46 -fi 1.47 -}
2.1 --- a/dropbox/stuff/dropbox.desktop Sun Mar 22 01:21:14 2009 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,7 +0,0 @@ 2.4 -[Desktop Entry] 2.5 -Type=Application 2.6 -Name=Dropbox Storage 2.7 -Exec=dropboxd 2.8 -Icon=dropbox.png 2.9 -Terminal=false 2.10 -Categories=Network
3.1 Binary file dropbox/stuff/dropbox.png has changed
4.1 --- a/dropbox/stuff/dropboxd Sun Mar 22 01:21:14 2009 +0100 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,3 +0,0 @@ 4.4 -#!/bin/sh 4.5 -PAR=/usr/lib/dropbox 4.6 -LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/get-dropbox/receipt Sun Mar 22 11:47:30 2009 +0100 5.3 @@ -0,0 +1,16 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="get-dropbox" 5.7 +VERSION="1.00" 5.8 +CATEGORY="non-free" 5.9 +SHORT_DESC="Get Dropbox daemon and client fro online storage." 5.10 +MAINTAINER="pankso@slitaz.org" 5.11 +WEB_SITE="http://www.getdropbox.com/" 5.12 + 5.13 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.14 +genpkg_rules() 5.15 +{ 5.16 + mkdir -p $fs/usr/bin $fs/usr/share/pixmaps 5.17 + cp stuff/get-dropbox $fs/usr/bin 5.18 + cp stuff/dropbox.png $fs/usr/share/pixmaps 5.19 +}
6.1 Binary file get-dropbox/stuff/dropbox.png has changed
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/get-dropbox/stuff/get-dropbox Sun Mar 22 11:47:30 2009 +0100 7.3 @@ -0,0 +1,84 @@ 7.4 +#!/bin/sh 7.5 + 7.6 +# Get and install Dropbox for Linux 7.7 + 7.8 +PACKAGE="dropbox" 7.9 +VERSION="0.6.487" 7.10 +TARBALL="$PACKAGE-lnx.x86-$VERSION.tar.gz" 7.11 +URL="http://dl.getdropbox.com/u/17/$TARBALL" 7.12 +CUR_DIR=$(pwd) 7.13 +TEMP_DIR=/tmp/$PACKAGE-$VERSION-$$ 7.14 +ROOT="$1" 7.15 + 7.16 +# Check if we are root 7.17 +if test $(id -u) != 0 ; then 7.18 + echo -e "\nYou must be root to run `basename $0`." 7.19 + echo -e "Please type 'su' and root password to become super-user.\n" 7.20 + exit 1 7.21 +fi 7.22 + 7.23 +# Avoid reinstall 7.24 +if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then 7.25 + echo -e "\n$PACKAGE package is already installed.\n" 7.26 + exit 1 7.27 +fi 7.28 + 7.29 +# Create a TEMP_DIR 7.30 +mkdir $TEMP_DIR 7.31 +cd $TEMP_DIR 7.32 + 7.33 +# Download the file 7.34 +wget $URL 7.35 + 7.36 +tar xzf $TARBALL 7.37 +mkdir -p $PACKAGE-$VERSION/fs/usr/lib \ 7.38 + $PACKAGE-$VERSION/fs/usr/bin \ 7.39 + $PACKAGE-$VERSION/fs/usr/share/applications 7.40 + 7.41 +mv $TEMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox 7.42 +strip $PACKAGE-$VERSION/fs/usr/lib/dropbox 2>/dev/null 7.43 + 7.44 +# Custom Dropboxd 7.45 +cat > $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropboxd << "EOT" 7.46 +#!/bin/sh 7.47 +PAR=/usr/lib/dropbox 7.48 +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@ 7.49 +EOT 7.50 + 7.51 +# Desktop file 7.52 +cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT 7.53 +[Desktop Entry] 7.54 +Type=Application 7.55 +Name=Dropbox Storage 7.56 +Exec=dropboxd 7.57 +Icon=dropbox.png 7.58 +Terminal=false 7.59 +Categories=Network 7.60 +EOT 7.61 + 7.62 +# Symling to have Dropbox in PATH and fake nautilus 7.63 +cd $PACKAGE-$VERSION/fs/usr/bin 7.64 +rm -f dropboxd nautilus 7.65 +ln -s ../lib/dropbox/dropboxd . 7.66 +ln -s /usr/bin/pcmanfm nautilus 7.67 + 7.68 +cd $TEMP_DIR 7.69 + 7.70 +cat > $PACKAGE-$VERSION/receipt << EOT 7.71 +PACKAGE="$PACKAGE" 7.72 +VERSION="$VERSION" 7.73 +CATEGORY="non-free" 7.74 +SHORT_DESC="Dropbox daemon and client fro online storage." 7.75 +DEPENDS="python" 7.76 +WEB_SITE="http://www.getdropbox.com/" 7.77 +EOT 7.78 + 7.79 +# Pack 7.80 +tazpkg pack $PACKAGE-$VERSION 7.81 + 7.82 +# Install pseudo package 7.83 +yes y | tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT 7.84 + 7.85 +# Clean 7.86 +cd $CUR_DIR 7.87 +rm -rf $TEMP_DIR