wok view dropbox/receipt @ 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
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dropbox"
4 VERSION="0.6.487"
5 CATEGORY="network"
6 SHORT_DESC="Dropbox online file storage tool"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="python"
9 TARBALL="$PACKAGE-lnx.x86-$VERSION.tar.gz"
10 WEB_SITE="http://www.getdropbox.com/"
11 WGET_URL="http://dl.getdropbox.com/u/17/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mkdir -p $src && cd $src
17 mkdir -p _pkg/usr/lib _pkg/usr/bin
18 mv ../.dropbox-dist _pkg/usr/lib/dropbox 2>/dev/null
19 cp -a ../stuff/dropboxd _pkg/usr/lib/dropbox
20 cd _pkg/usr/bin
21 rm -f dropboxd nautilus
22 ln -s ../lib/dropbox/dropboxd .
23 ln -s /usr/bin/pcmanfm nautilus
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $_pkg/* $fs
30 }
32 post_install()
33 {
34 AUTOSTART_SCRIPT="$1/etc/xdg/openbox/autostart.sh"
35 if ! grep -q "^#dropboxd" $AUTOSTART_SCRIPT; then
36 echo -n "Adding Dropbox to Openbox autostart script... "
37 cat >> $AUTOSTART_SCRIPT << EOT
39 # Start the Dropbox online file storage daemon.'
40 #dropboxd &
41 EOT
42 status
43 fi
44 }