summaryrefslogtreecommitdiff
path: root/filesystems/fuse-gmailfs/Makefile
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/fuse-gmailfs/Makefile
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/fuse-gmailfs/Makefile')
-rw-r--r--filesystems/fuse-gmailfs/Makefile40
1 files changed, 40 insertions, 0 deletions
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"