diff options
author | xtraeme <xtraeme> | 2007-05-16 10:32:52 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2007-05-16 10:32:52 +0000 |
commit | 0225858f53fa464fbe8420d6e92fc22a87e4795c (patch) | |
tree | 3c7e30568ac8d3777a3c2e8c3adb882b5f616b38 /filesystems/fuse-obexfs/patches | |
parent | bffbbbe6732eb1e75840ff89f7d51c029c1c818f (diff) | |
download | pkgsrc-0225858f53fa464fbe8420d6e92fc22a87e4795c.tar.gz |
Initial import of fuse-obexfs-0.8.
FUSE based filesystem using ObexFTP (currently beta).
Actually ObexFS is just a thin layer wrapping a basic ObexFTP
client into FUSE callbacks.
This works well enough on NetBSD/amd64:
$ mount|grep obexfs
puffs:refuse:obexfs on k600i/ type puffs (nosuid, nodev, mounted by juan)
$
$ ls -l k600i/
total 2
drwxr-xr-x 1 juan users 0 Jan 1 1970 Memoria del tel?fono
drwxr-xr-x 1 juan users 0 Jan 1 1970 Memory Stick
$
Diffstat (limited to 'filesystems/fuse-obexfs/patches')
-rw-r--r-- | filesystems/fuse-obexfs/patches/patch-aa | 46 | ||||
-rw-r--r-- | filesystems/fuse-obexfs/patches/patch-ab | 12 | ||||
-rw-r--r-- | filesystems/fuse-obexfs/patches/patch-ac | 46 |
3 files changed, 104 insertions, 0 deletions
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: |