summaryrefslogtreecommitdiff
path: root/filesystems/fuse-obexfs
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/fuse-obexfs')
-rw-r--r--filesystems/fuse-obexfs/DESCR4
-rw-r--r--filesystems/fuse-obexfs/Makefile29
-rw-r--r--filesystems/fuse-obexfs/PLIST2
-rw-r--r--filesystems/fuse-obexfs/distinfo8
-rw-r--r--filesystems/fuse-obexfs/patches/patch-aa46
-rw-r--r--filesystems/fuse-obexfs/patches/patch-ab12
-rw-r--r--filesystems/fuse-obexfs/patches/patch-ac46
7 files changed, 147 insertions, 0 deletions
diff --git a/filesystems/fuse-obexfs/DESCR b/filesystems/fuse-obexfs/DESCR
new file mode 100644
index 00000000000..f6f773eeab2
--- /dev/null
+++ b/filesystems/fuse-obexfs/DESCR
@@ -0,0 +1,4 @@
+FUSE based filesystem using ObexFTP (currently beta).
+
+Actually ObexFS is just a thin layer wrapping a basic ObexFTP
+client into FUSE callbacks.
diff --git a/filesystems/fuse-obexfs/Makefile b/filesystems/fuse-obexfs/Makefile
new file mode 100644
index 00000000000..4b977315d63
--- /dev/null
+++ b/filesystems/fuse-obexfs/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+#
+
+DISTNAME= obexfs-0.8
+PKGNAME= fuse-${DISTNAME}
+CATEGORIES= filesystems
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/}
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://www.openobex.org/
+COMMENT= FUSE based filesystem using ObexFTP
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= autoconf gmake pkg-config
+
+pre-configure:
+ cd ${WRKSRC} && autoconf
+
+.include "../../mk/bsd.prefs.mk"
+
+# puffs does not play well with libpthread, disable it.
+.if ${OPSYS} == "NetBSD"
+BUILDLINK_TRANSFORM+= rm:-lpthread
+.endif
+
+.include "../../comms/obexftp/buildlink3.mk"
+.include "../../comms/openobex/buildlink3.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/fuse-obexfs/PLIST b/filesystems/fuse-obexfs/PLIST
new file mode 100644
index 00000000000..c380b41c887
--- /dev/null
+++ b/filesystems/fuse-obexfs/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+bin/obexfs
diff --git a/filesystems/fuse-obexfs/distinfo b/filesystems/fuse-obexfs/distinfo
new file mode 100644
index 00000000000..7848ba49316
--- /dev/null
+++ b/filesystems/fuse-obexfs/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+
+SHA1 (obexfs-0.8.tar.gz) = 99c0c54212a2fc874107efbc9ad2ba7ad2b7ab37
+RMD160 (obexfs-0.8.tar.gz) = a3440c923c5f371261fffec91be2c909571ced1e
+Size (obexfs-0.8.tar.gz) = 76393 bytes
+SHA1 (patch-aa) = f2251b42fbb811deb842ec87d50d8d59fed5ca39
+SHA1 (patch-ab) = 63936898afa0cbf1c2e972d9aef9a6681de65f20
+SHA1 (patch-ac) = 42a1f77900e49f7e3afc9b3e935d66443b92ad69
diff --git a/filesystems/fuse-obexfs/patches/patch-aa b/filesystems/fuse-obexfs/patches/patch-aa
new file mode 100644
index 00000000000..4eaa0320778
--- /dev/null
+++ b/filesystems/fuse-obexfs/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+
+--- fuse/obexfs.c.orig 2006-01-19 15:46:43.000000000 +0100
++++ fuse/obexfs.c 2007-05-14 09:28:37.000000000 +0200
+@@ -26,6 +26,8 @@
+ /* strndup */
+ #define _GNU_SOURCE
+
++#include "config.h"
++
+ /* at least fuse v 2.2 is needed */
+ #define FUSE_USE_VERSION 22
+ #include <fuse.h>
+@@ -37,7 +39,11 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <errno.h>
++#if HAVE_SYS_STATVFS_H
++#include <sys/statvfs.h>
++#else
+ #include <sys/statfs.h>
++#endif
+ #include <sys/types.h>
+ #include <dirent.h>
+ #include <signal.h>
+@@ -412,12 +418,20 @@
+ return 0;
+ }
+
++#if HAVE_SYS_STATVFS_H
++static int ofs_statfs(const char *UNUSED(label), struct statvfs *st)
++#else
+ static int ofs_statfs(const char *UNUSED(label), struct statfs *st)
++#endif
+ {
+ int res;
+ int size, free;
+
++#if HAVE_SYS_STATVFS_H
++ memset(st, 0, sizeof(struct statvfs));
++#else
+ memset(st, 0, sizeof(struct statfs));
++#endif
+
+ res = ofs_connect();
+ if(res < 0)
diff --git a/filesystems/fuse-obexfs/patches/patch-ab b/filesystems/fuse-obexfs/patches/patch-ab
new file mode 100644
index 00000000000..ce21f4f1001
--- /dev/null
+++ b/filesystems/fuse-obexfs/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+
+--- configure.in.orig 2006-02-08 22:18:40.000000000 +0100
++++ configure.in 2007-05-14 09:22:27.000000000 +0200
+@@ -7,6 +7,7 @@
+ AC_PROG_RANLIB
+ AC_PROG_INSTALL
+
++AC_CHECK_HEADERS(sys/statvfs.h)
+ PKG_CHECK_MODULES(OPENOBEX,openobex)
+ # PKG_CHECK_MODULES(OBEXFTP,obexftp)
+
diff --git a/filesystems/fuse-obexfs/patches/patch-ac b/filesystems/fuse-obexfs/patches/patch-ac
new file mode 100644
index 00000000000..fb786fb6a43
--- /dev/null
+++ b/filesystems/fuse-obexfs/patches/patch-ac
@@ -0,0 +1,46 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+
+--- fuse/Makefile.in.orig 2006-02-08 22:19:29.000000000 +0100
++++ fuse/Makefile.in 2007-05-14 09:32:33.000000000 +0200
+@@ -118,13 +118,13 @@
+
+ obexautofs_SOURCES = obexautofs.c
+
+-bin_PROGRAMS = obexfs obexautofs
++bin_PROGRAMS = obexfs
+ subdir = fuse
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = $(top_builddir)/config.h
+ CONFIG_CLEAN_FILES =
+-bin_PROGRAMS = obexfs$(EXEEXT) obexautofs$(EXEEXT)
++bin_PROGRAMS = obexfs$(EXEEXT)
+ PROGRAMS = $(bin_PROGRAMS)
+
+ am_obexautofs_OBJECTS = obexautofs.$(OBJEXT)
+@@ -141,14 +141,14 @@
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+-@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/obexautofs.Po ./$(DEPDIR)/obexfs.Po
++@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/obexfs.Po
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ CCLD = $(CC)
+ LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-DIST_SOURCES = $(obexautofs_SOURCES) $(obexfs_SOURCES)
++DIST_SOURCES = $(obexfs_SOURCES)
+ DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
+-SOURCES = $(obexautofs_SOURCES) $(obexfs_SOURCES)
++SOURCES = $(obexfs_SOURCES)
+
+ all: all-am
+
+@@ -196,7 +196,6 @@
+ distclean-compile:
+ -rm -f *.tab.c
+
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obexautofs.Po@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obexfs.Po@am__quote@
+
+ .c.o: