ports/114762: New port: sysutils/mtpfs MTP device filesystem (Correction)
John Hixson
john at pcbsd.divinix.org
Fri Jul 20 07:50:02 UTC 2007
>Number: 114762
>Category: ports
>Synopsis: New port: sysutils/mtpfs MTP device filesystem (Correction)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 20 07:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: John Hixson
>Release: FreeBSD 6.2-RELEASE-p5 i386
>Organization:
Divinix
>Environment:
System: FreeBSD pcbsd.divinix.org 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #34: Tue Jun 12 13:07:04 PDT 2007 root at pcbsd:/usr/obj/usr/src/sys/PCBSD i386
>Description:
>How-To-Repeat:
>Fix:
--- mtpfs.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mtpfs
# mtpfs/Makefile
# mtpfs/pkg-descr
# mtpfs/distinfo
# mtpfs/files
# mtpfs/files/patch-Makefile.in
# mtpfs/files/patch-mtpfs.h
# mtpfs/files/patch-mtpfs.c
#
echo c - mtpfs
mkdir -p mtpfs > /dev/null 2>&1
echo x - mtpfs/Makefile
sed 's/^X//' >mtpfs/Makefile << 'END-of-mtpfs/Makefile'
X# New ports collection makefile for: mtpfs
X# Date created: 1 July 2007
X# Whom: John Hixson <john at divinix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mtpfs
XPORTVERSION= 0.6
XCATEGORIES= sysutils
XMASTER_SITES= http://www.adebenham.com/mtpfs/
X
XMAINTAINER= john at pcbsd.org
XCOMMENT= MTP device filesystem
X
XRUN_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
XLIB_DEPENDS= mtp:${PORTSDIR}/audio/libmtp \
X fuse:${PORTSDIR}/sysutils/fusefs-libs \
X id3-3.8:${PORTSDIR}/audio/id3lib
X
XGNU_CONFIGURE= yes
XPLIST_FILES= bin/mtpfs
X
X.include <bsd.port.mk>
END-of-mtpfs/Makefile
echo x - mtpfs/pkg-descr
sed 's/^X//' >mtpfs/pkg-descr << 'END-of-mtpfs/pkg-descr'
XMTPFS is a FUSE filesystem that supports reading aand writing from any
XMTP device (as supported by libmtp)
X
XWWW: http://www.adebenham.com/mtpfs/
END-of-mtpfs/pkg-descr
echo x - mtpfs/distinfo
sed 's/^X//' >mtpfs/distinfo << 'END-of-mtpfs/distinfo'
XMD5 (mtpfs-0.6.tar.gz) = d81202b04b621334952d42527ee1c8e7
XSHA256 (mtpfs-0.6.tar.gz) = be5245d779aaa8dbec6844ae3f62dfa236957c3444607f7387528ad5125a61a3
XSIZE (mtpfs-0.6.tar.gz) = 91014
END-of-mtpfs/distinfo
echo c - mtpfs/files
mkdir -p mtpfs/files > /dev/null 2>&1
echo x - mtpfs/files/patch-Makefile.in
sed 's/^X//' >mtpfs/files/patch-Makefile.in << 'END-of-mtpfs/files/patch-Makefile.in'
X--- Makefile.in.orig Sun Jul 1 11:45:44 2007
X+++ Makefile.in Sun Jul 1 11:46:00 2007
X@@ -157,7 +157,7 @@
X top_builddir = @top_builddir@
X top_srcdir = @top_srcdir@
X mtpfs_SOURCES = id3read.c mtpfs.c mtpfs.h id3read.h
X-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS)
X+mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=25 $(FUSE_CFLAGS)
X mtpfs_LDADD = $(FUSE_LIBS)
X all: all-am
X
END-of-mtpfs/files/patch-Makefile.in
echo x - mtpfs/files/patch-mtpfs.h
sed 's/^X//' >mtpfs/files/patch-mtpfs.h << 'END-of-mtpfs/files/patch-mtpfs.h'
X--- mtpfs.h.orig Sun Jul 1 11:45:49 2007
X+++ mtpfs.h Sun Jul 1 11:46:22 2007
X@@ -18,7 +18,9 @@
X #include <fcntl.h>
X #include <dirent.h>
X #include <errno.h>
X-#include <sys/statfs.h>
X+#include <sys/param.h>
X+#include <sys/mount.h>
X+#include <sys/statvfs.h>
X
X #include <libmtp.h>
X #include <glib.h>
X@@ -48,7 +50,7 @@
X static int mtpfs_unlink (const gchar * path);
X static int mtpfs_mkdir (const char *path, mode_t mode);
X static int mtpfs_rmdir (const char *path);
X-static int mtpfs_statfs (const char *path, struct statfs *stbuf);
X+static int mtpfs_statfs (const char *path, struct statvfs *stbuf);
X
X
X static LIBMTP_mtpdevice_t *device;
END-of-mtpfs/files/patch-mtpfs.h
echo x - mtpfs/files/patch-mtpfs.c
sed 's/^X//' >mtpfs/files/patch-mtpfs.c << 'END-of-mtpfs/files/patch-mtpfs.c'
X--- mtpfs.c.orig Sun Jul 1 11:45:55 2007
X+++ mtpfs.c Sun Jul 1 11:46:30 2007
X@@ -921,7 +921,7 @@
X */
X
X static int
X-mtpfs_statfs (const char *path, struct statfs *stbuf)
X+mtpfs_statfs (const char *path, struct statvfs *stbuf)
X {
X if (DEBUG) g_debug ("mtpfs_statfs");
X stbuf->f_bsize=1024;
END-of-mtpfs/files/patch-mtpfs.c
exit
--- mtpfs.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list