# HG changeset patch # User Christophe Lincoln # Date 1237681274 -3600 # Node ID 680f788034316be60a222cc2b5d73c259e549784 # Parent 8b1a253d2a0eaa5fc3308612b6a94f3d12b1a9ce Add dropbox (Online file storage tool) - Yes I know wok is freez... diff -r 8b1a253d2a0e -r 680f78803431 dropbox/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbox/receipt Sun Mar 22 01:21:14 2009 +0100 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="dropbox" +VERSION="0.6.487" +CATEGORY="network" +SHORT_DESC="Dropbox online file storage tool" +MAINTAINER="pankso@slitaz.org" +DEPENDS="python" +TARBALL="$PACKAGE-lnx.x86-$VERSION.tar.gz" +WEB_SITE="http://www.getdropbox.com/" +WGET_URL="http://dl.getdropbox.com/u/17/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir -p $src && cd $src + mkdir -p _pkg/usr/lib _pkg/usr/bin + mv ../.dropbox-dist _pkg/usr/lib/dropbox 2>/dev/null + cp -a ../stuff/dropboxd _pkg/usr/lib/dropbox + cd _pkg/usr/bin + rm -f dropboxd nautilus + ln -s ../lib/dropbox/dropboxd . + ln -s /usr/bin/pcmanfm nautilus +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/* $fs +} + +post_install() +{ + AUTOSTART_SCRIPT="$1/etc/xdg/openbox/autostart.sh" + if ! grep -q "^#dropboxd" $AUTOSTART_SCRIPT; then + echo -n "Adding Dropbox to Openbox autostart script... " + cat >> $AUTOSTART_SCRIPT << EOT + +# Start the Dropbox online file storage daemon.' +#dropboxd & +EOT + status +fi +} diff -r 8b1a253d2a0e -r 680f78803431 dropbox/stuff/dropbox.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbox/stuff/dropbox.desktop Sun Mar 22 01:21:14 2009 +0100 @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Dropbox Storage +Exec=dropboxd +Icon=dropbox.png +Terminal=false +Categories=Network diff -r 8b1a253d2a0e -r 680f78803431 dropbox/stuff/dropbox.png Binary file dropbox/stuff/dropbox.png has changed diff -r 8b1a253d2a0e -r 680f78803431 dropbox/stuff/dropboxd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbox/stuff/dropboxd Sun Mar 22 01:21:14 2009 +0100 @@ -0,0 +1,3 @@ +#!/bin/sh +PAR=/usr/lib/dropbox +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@