pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/filesystems/fuse-obexfs Initial import of fuse-obexfs-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b7fbddfd4cb
branches:  trunk
changeset: 528786:9b7fbddfd4cb
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed May 16 10:32:52 2007 +0000

description:
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:

 filesystems/fuse-obexfs/DESCR            |   4 ++
 filesystems/fuse-obexfs/Makefile         |  29 ++++++++++++++++++++
 filesystems/fuse-obexfs/PLIST            |   2 +
 filesystems/fuse-obexfs/distinfo         |   8 +++++
 filesystems/fuse-obexfs/patches/patch-aa |  46 ++++++++++++++++++++++++++++++++
 filesystems/fuse-obexfs/patches/patch-ab |  12 ++++++++
 filesystems/fuse-obexfs/patches/patch-ac |  46 ++++++++++++++++++++++++++++++++
 7 files changed, 147 insertions(+), 0 deletions(-)

diffs (175 lines):

diff -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/DESCR     Wed May 16 10:32:52 2007 +0000
@@ -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 -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/Makefile  Wed May 16 10:32:52 2007 +0000
@@ -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@localhost
+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 -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/PLIST     Wed May 16 10:32:52 2007 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/16 10:32:52 xtraeme Exp $
+bin/obexfs
diff -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/distinfo  Wed May 16 10:32:52 2007 +0000
@@ -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 -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/patches/patch-aa  Wed May 16 10:32:52 2007 +0000
@@ -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 -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/patches/patch-ab  Wed May 16 10:32:52 2007 +0000
@@ -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 -r c219ea476a11 -r 9b7fbddfd4cb filesystems/fuse-obexfs/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-obexfs/patches/patch-ac  Wed May 16 10:32:52 2007 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index