aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fusefs-gnome-vfs
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-12-24 03:10:48 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-12-24 03:10:48 +0000
commit7dd1953a51a406e24bdab7bdc5be8b419b986a8a (patch)
tree596f8b95ba2b6f41a4c5b1ecb9861c0f2511ac54 /sysutils/fusefs-gnome-vfs
parente8a13fd635459a5a6ab78e0c8dfa449f638a8b4a (diff)
downloadports-7dd1953a51a406e24bdab7bdc5be8b419b986a8a.tar.gz
ports-7dd1953a51a406e24bdab7bdc5be8b419b986a8a.zip
Notes
Diffstat (limited to 'sysutils/fusefs-gnome-vfs')
-rw-r--r--sysutils/fusefs-gnome-vfs/Makefile34
-rw-r--r--sysutils/fusefs-gnome-vfs/distinfo3
-rw-r--r--sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c63
-rw-r--r--sysutils/fusefs-gnome-vfs/pkg-descr5
4 files changed, 105 insertions, 0 deletions
diff --git a/sysutils/fusefs-gnome-vfs/Makefile b/sysutils/fusefs-gnome-vfs/Makefile
new file mode 100644
index 000000000000..ff925d124681
--- /dev/null
+++ b/sysutils/fusefs-gnome-vfs/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: fusefs-gnome-vfs
+# Date created: 2006-12-23
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fusefs-gnome-vfs
+PORTVERSION= 0.1
+CATEGORIES= sysutils gnome
+MASTER_SITES= http://www.evolware.org/chri/
+DISTNAME= ${RPORTNAME}-${PORTVERSION}
+
+MAINTAINER= ahze@FreeBSD.org
+COMMENT= Interface between FUSE and the Gnome VFS 2.0
+
+RUN_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
+BUILD_DEPENDS= ${LOCALBASE}/include/fuse.h:${PORTSDIR}/sysutils/fusefs-libs
+
+RPORTNAME= gnome-vfs-fuse
+WRKSRC= ${WRKDIR}/${RPORTNAME}
+USE_GNOME= gnomevfs2
+USE_GMAKE= yes
+PLIST_FILES= bin/gnomevfs-mount
+PORTDOCS= README
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gnomevfs-mount ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/fusefs-gnome-vfs/distinfo b/sysutils/fusefs-gnome-vfs/distinfo
new file mode 100644
index 000000000000..496293d79fd1
--- /dev/null
+++ b/sysutils/fusefs-gnome-vfs/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome-vfs-fuse-0.1.tar.gz) = 975285e286570573fc7fdd3e89c902fe
+SHA256 (gnome-vfs-fuse-0.1.tar.gz) = 8b1cf09b6ee06d4b54a4477990bd4b99aa9745f081b2e7f2c696853fe8e3c330
+SIZE (gnome-vfs-fuse-0.1.tar.gz) = 14061
diff --git a/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c b/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c
new file mode 100644
index 000000000000..5d69744ade7b
--- /dev/null
+++ b/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c
@@ -0,0 +1,63 @@
+--- gnomevfs-mount.c.orig Sat Dec 23 21:52:20 2006
++++ gnomevfs-mount.c Sat Dec 23 21:55:02 2006
+@@ -31,7 +31,8 @@
+ #define _GNU_SOURCE 1
+ #endif
+
+-#define FUSE_USE_VERSION 22
++
++#define FUSE_USE_VERSION 25
+
+ #include <fuse.h>
+ #include <stdio.h>
+@@ -40,7 +41,14 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <errno.h>
++
++#ifdef __FreeBSD__
++#define ENODATA ENOATTR
++#define EGREGIOUS EDOOFUS
++#else
+ #include <sys/statfs.h>
++#endif
++
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+@@ -705,7 +713,7 @@
+ char *full_path;
+ GnomeVFSOpenMode flags = GNOME_VFS_OPEN_RANDOM;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+
+ full_path = g_strdup_printf("%s/%s", mount_name, path);
+
+@@ -735,7 +743,7 @@
+ {
+ int res;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ GnomeVFSFileSize nread;
+ (void) path;
+
+@@ -760,7 +768,7 @@
+ {
+ int res;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ GnomeVFSFileSize nwrite;
+ (void) path;
+
+@@ -790,7 +798,7 @@
+
+ static int xmp_release(const char *path, struct fuse_file_info *fi)
+ {
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ (void) path;
+
+ //g_debug("%s %s", __FUNCTION__, path);
diff --git a/sysutils/fusefs-gnome-vfs/pkg-descr b/sysutils/fusefs-gnome-vfs/pkg-descr
new file mode 100644
index 000000000000..ec7ade619c23
--- /dev/null
+++ b/sysutils/fusefs-gnome-vfs/pkg-descr
@@ -0,0 +1,5 @@
+Interface between FUSE and the Gnome VFS 2.0. It allows the user to mount
+everything you can access via the Nautilus file manager. But of course you
+can use a convenient CLI instead of the Desktop.
+
+WWW: http://www.evolware.org/chri/