summaryrefslogtreecommitdiff
path: root/filesystems
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2007-05-04 22:55:10 +0000
committeragc <agc@pkgsrc.org>2007-05-04 22:55:10 +0000
commit24d089ccfbc843210e1d7a0ea0272c9c3d0f3bda (patch)
tree707de5c05cb19a26292eeb51a64ed305222e1f77 /filesystems
parent51452c480cf62ba160cf88d39e6b53c8e83d57fa (diff)
downloadpkgsrc-24d089ccfbc843210e1d7a0ea0272c9c3d0f3bda.tar.gz
Initial import of fuse-gmailfs-0.7.2 into the Packages Collection.
GmailFS is a virtual filesystem developed by Richard Jones which allows users to mount and use their Gmail email account's storage as a local disk drive. This works as far as logging in and responding properly to a df command, but python interpreter usage seems far too high. Committed in this state so that others can work on it.
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/fuse-gmailfs/DESCR3
-rw-r--r--filesystems/fuse-gmailfs/Makefile40
-rw-r--r--filesystems/fuse-gmailfs/PLIST5
-rw-r--r--filesystems/fuse-gmailfs/distinfo7
-rw-r--r--filesystems/fuse-gmailfs/patches/patch-aa13
-rw-r--r--filesystems/fuse-gmailfs/patches/patch-ab13
6 files changed, 81 insertions, 0 deletions
diff --git a/filesystems/fuse-gmailfs/DESCR b/filesystems/fuse-gmailfs/DESCR
new file mode 100644
index 00000000000..9909007395a
--- /dev/null
+++ b/filesystems/fuse-gmailfs/DESCR
@@ -0,0 +1,3 @@
+GmailFS is a virtual filesystem developed by Richard Jones which
+allows users to mount and use their Gmail email account's storage as a
+local disk drive.
diff --git a/filesystems/fuse-gmailfs/Makefile b/filesystems/fuse-gmailfs/Makefile
new file mode 100644
index 00000000000..582b9a03e28
--- /dev/null
+++ b/filesystems/fuse-gmailfs/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/04 22:55:10 agc Exp $
+#
+
+DISTNAME= gmailfs-0.7.2
+PKGNAME= fuse-${DISTNAME}
+CATEGORIES= filesystems
+MASTER_SITES= http://richard.jones.name/google-hacks/gmail-filesystem/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html
+COMMENT= FUSE filesystem which uses Google mail for free space
+
+NO_BUILD= yes
+PYTHON_VERSIONS_ACCEPTED= 24
+PYTHON_PATCH_SCRIPTS= gmailfs.py mount.gmailfs
+
+CONF_FILES= ${PREFIX}/share/examples/gmailfs/gmailfs.conf \
+ ${PKG_SYSCONFDIR}/gmailfs.conf
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-patch
+SUBST_FILES.config= gmailfs.py mount.gmailfs
+SUBST_SED.config= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
+SUBST_SED.config+= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_SED.config+= -e "s|@PYSITELIB@|${PREFIX}/${PYSITELIB}|g"
+SUBST_MESSAGE.config= Fixing paths.
+
+PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/gmailfs.py ${PREFIX}/${PYSITELIB}/
+ ${INSTALL_SCRIPT} ${WRKSRC}/mount.gmailfs ${PREFIX}/sbin/mount_gmailfs
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmailfs
+ ${INSTALL_DATA} ${WRKSRC}/gmailfs.conf ${PREFIX}/share/examples/gmailfs/
+
+.include "../../filesystems/py-fuse-bindings/buildlink3.mk"
+
+.include "../../lang/python/application.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/fuse-gmailfs/PLIST b/filesystems/fuse-gmailfs/PLIST
new file mode 100644
index 00000000000..4bf5ac4a1d4
--- /dev/null
+++ b/filesystems/fuse-gmailfs/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/04 22:55:10 agc Exp $
+${PYSITELIB}/gmailfs.py
+sbin/mount_gmailfs
+share/examples/gmailfs/gmailfs.conf
+@dirrm share/examples/gmailfs
diff --git a/filesystems/fuse-gmailfs/distinfo b/filesystems/fuse-gmailfs/distinfo
new file mode 100644
index 00000000000..13b8756a0ab
--- /dev/null
+++ b/filesystems/fuse-gmailfs/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/04 22:55:10 agc Exp $
+
+SHA1 (gmailfs-0.7.2.tar.gz) = 30190dd7f06dade00d60194059b53651c010e28b
+RMD160 (gmailfs-0.7.2.tar.gz) = fa3932ac6e9ae47c92a160e3968769114ca627a4
+Size (gmailfs-0.7.2.tar.gz) = 21941 bytes
+SHA1 (patch-aa) = 9f8b12304982390c9a087fe5472d98838c6999a4
+SHA1 (patch-ab) = db4c9a39dccdc51bee9de7783a400c0963e33ceb
diff --git a/filesystems/fuse-gmailfs/patches/patch-aa b/filesystems/fuse-gmailfs/patches/patch-aa
new file mode 100644
index 00000000000..28cd7539346
--- /dev/null
+++ b/filesystems/fuse-gmailfs/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/04 22:55:10 agc Exp $
+
+--- gmailfs.py 2007/04/24 11:37:20 1.1
++++ gmailfs.py 2007/04/24 11:37:57
+@@ -1120,7 +1120,7 @@
+ defaultLoggingHandler = logging.StreamHandler(sys.stdout)
+ _addLoggingHandlerHelper(defaultLoggingHandler)
+
+-GmailConfig("/etc/gmailfs.conf")
++GmailConfig("@PKG_SYSCONFDIR@/gmailfs.conf")
+ try:
+ libgmail.ConfigLogs(log)
+ except:
diff --git a/filesystems/fuse-gmailfs/patches/patch-ab b/filesystems/fuse-gmailfs/patches/patch-ab
new file mode 100644
index 00000000000..db8469bafff
--- /dev/null
+++ b/filesystems/fuse-gmailfs/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/05/04 22:55:10 agc Exp $
+
+--- mount.gmailfs 2007/04/24 11:38:56 1.1
++++ mount.gmailfs 2007/04/24 11:40:07
+@@ -15,7 +15,7 @@
+
+ import sys, os, os.path, time, optparse, getpass, re, tempfile, signal
+
+-DEFAULT_GMAILFS_LOCATION = '/usr/share/gmailfs/gmailfs.py'
++DEFAULT_GMAILFS_LOCATION = '@PYSITELIB@/gmailfs.py'
+ # delay (in seconds) after which we consider gmailfs could not mount, and
+ # we abort.
+ GMAILFS_MOUNTING_MAX_DELAY = 12