# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils KEYWORDS="~x86" DESCRIPTION="GmailFS provides a mountable Linux filesystem which uses your Gmail account as its storage medium." HOMEPAGE="http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html" SRC_URI="http://richard.jones.name/google-hacks/gmail-filesystem/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" IUSE="" RDEPEND=">=dev-lang/python-2.3 virtual/fuse-python >=sys-fs/fuse-1.3 >=net-libs/libgmail-0.1.3.3" src_unpack() { unpack ${A} cd ${WORKDIR}/${P} epatch ${FILESDIR}/${P}.patch || die "patching failed" } src_install() { dobin ${WORKDIR}/${P}/gmailfs.py || die "Can't dobin" insinto /sbin doins ${WORKDIR}/${P}/mount.gmailfs || die "Can't write to /sbin" insinto /etc doins ${WORKDIR}/${P}/gmailfs.conf || die "Can't write to /etc" exeinto /usr/share/${PN} doexe ${WORKDIR}/${P}/tests.py dodoc COPYING ChangeLog } pkg_postinst() { einfo "You should now be able to mount gmailfs." einfo "To mount from the command line, do:" einfo "mount -t gmailfs /usr/bin/gmailfs.py /path/of/mount/point -o username=gmailuser,password=gmailpass,fsname=zOlRRa" einfo "To use fstab, create an entry /etc/fstab that looks something like:" einfo "/usr/bin/gmailfs.py /path/of/mount/point gmailfs noauto,username=gmailuser,password=gmailpass,fsname=zOlRRa" einfo " " ewarn "Remember to choose a very creative, unguessable fsname, else someone" ewarn "could manipulate your filesystem. Also remember that gmailfs is a" ewarn "cruel hack. So don't expect things like good performance" einfo " " ewarn "This program is NOT SUPPORTED by Google, and may well be a" ewarn "violation of the Gmail Terms of Service!" einfo " " ewarn "USE AT YOUR OWN RISK!!!" einfo " " chmod a+x /sbin/mount.gmailfs }