1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils linux-info gnome2
9 DESCRIPTION="Store, Sync and Share Files Online"
10 HOMEPAGE="http://www.getdropbox.com/"
11 SRC_URI="http://www.getdropbox.com/download?dl=packages/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="gnome-base/nautilus
28 DOCS="AUTHORS ChangeLog NEWS README"
30 CONFIG_CHECK="INOTIFY_USER"
35 # create the group for the daemon, if necessary
36 # truthfully this should be run for any dropbox plugin
43 # Allow only for users in the dropbox group
44 # see http://forums.getdropbox.com/topic.php?id=3329&replies=5#post-22898
45 local extensiondir="$(pkg-config --variable=extensiondir libnautilus-extension)"
46 [ -z ${extensiondir} ] && die "pkg-config unable to get nautilus extensions dir"
47 chown root:dropbox "${ROOT}${extensiondir}"/libnautilus-dropbox.{a,la,so} || die "fowners failed"
48 chmod o-rwx "${ROOT}${extensiondir}"/libnautilus-dropbox.{a,la,so} || die "fperms failed"
50 elog "Add any users who wish to have access to the dropbox nautilus"
51 elog "plugin to the group 'dropbox'."
53 elog "If you've installed old version, Remove \${HOME}/.dropbox-dist first."
55 elog " $ rm -rf \${HOME}/.dropbox-dist"
56 elog " $ dropbox start -i"