wok rev 2535

Add dropbox (Online file storage tool) - Yes I know wok is freez...
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 22 01:21:14 2009 +0100 (2009-03-22)
parents 8b1a253d2a0e
children e0b97123b571
files dropbox/receipt dropbox/stuff/dropbox.desktop dropbox/stuff/dropbox.png dropbox/stuff/dropboxd
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbox/receipt	Sun Mar 22 01:21:14 2009 +0100
     1.3 @@ -0,0 +1,44 @@
     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 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dropbox/stuff/dropbox.desktop	Sun Mar 22 01:21:14 2009 +0100
     2.3 @@ -0,0 +1,7 @@
     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 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/dropbox/stuff/dropboxd	Sun Mar 22 01:21:14 2009 +0100
     4.3 @@ -0,0 +1,3 @@
     4.4 +#!/bin/sh
     4.5 +PAR=/usr/lib/dropbox
     4.6 +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@