pkgsrc-WIP-changes archive

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

add mtpfs 1.1 to repo



Module Name:	pkgsrc-wip
Committed By:	Daniel Oelschlegel <amoibos%gmail.com@localhost>
Pushed By:	amoibos
Date:		Sat Jun 18 10:58:55 2016 +0000
Changeset:	a7dbffcd2801bc31085e2cfa418e39d89717a873

Added Files:
	mtpfs/DESCR
	mtpfs/Makefile
	mtpfs/PLIST
	mtpfs/distinfo
	mtpfs/patches/patch-aa
	mtpfs/patches/patch-ab
	mtpfs/patches/patch-ac

Log Message:
add mtpfs 1.1 to repo

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a7dbffcd2801bc31085e2cfa418e39d89717a873

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mtpfs/DESCR            |  7 +++++++
 mtpfs/Makefile         | 29 +++++++++++++++++++++++++++
 mtpfs/PLIST            |  2 ++
 mtpfs/distinfo         |  9 +++++++++
 mtpfs/patches/patch-aa | 14 +++++++++++++
 mtpfs/patches/patch-ab | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 mtpfs/patches/patch-ac | 35 ++++++++++++++++++++++++++++++++
 7 files changed, 150 insertions(+)

diffs:
diff --git a/mtpfs/DESCR b/mtpfs/DESCR
new file mode 100644
index 0000000..3febf13
--- /dev/null
+++ b/mtpfs/DESCR
@@ -0,0 +1,7 @@
+Simple-MTPFS(Simple Media Transfer Protocol FileSystem) is a file system
+for Linux(and other operating system with a FUSE implementation, such as
+Mac OS X or FreeBSD) capable of operating on files on MTP devices
+attached via USB to local machine. On the local computer where the
+SIMPLE-MTPDS is mounted, the implementation makes use of the FUSE
+(Filesystem in Userspace) kernel module. The practical effect of this is
+that the end user can seamlessly interact with MTP device files.
diff --git a/mtpfs/Makefile b/mtpfs/Makefile
new file mode 100644
index 0000000..14f78eb
--- /dev/null
+++ b/mtpfs/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+PKGNAME=	mtpfs-1.1
+CATEGORIES=	filesystems
+GHCOMMIT=	ffa738f82350a5256200fd6e38d6b23ea2fefb3a
+DISTNAME=	${GHCOMMIT}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=cjd/mtpfs/archive/}
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	amoibos%gmail.com@localhost
+HOMEPAGE=	http://github.com/cjd/mtpfs
+COMMENT=	Access to MTP device filesystem
+LICENSE=	gnu-gpl-v3
+
+DIST_SUBDIR=	mtpfs
+WRKSRC=		${WRKDIR}/mtpfs-${GHCOMMIT}
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+
+USE_LANGUAGES+=	c c++
+USE_TOOLS+=	pkg-config
+
+
+.include "../../audio/libid3tag/buildlink3.mk"
+.include "../../audio/libmad/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/libmtp/buildlink3.mk"
+.include "../../filesystems/fuse/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mtpfs/PLIST b/mtpfs/PLIST
new file mode 100644
index 0000000..9aa4caa
--- /dev/null
+++ b/mtpfs/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/mtpfs
diff --git a/mtpfs/distinfo b/mtpfs/distinfo
new file mode 100644
index 0000000..31aa03d
--- /dev/null
+++ b/mtpfs/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+SHA1 (mtpfs/ffa738f82350a5256200fd6e38d6b23ea2fefb3a.zip) = d69b1b798825ce4166243933022e45fe353a3cd9
+RMD160 (mtpfs/ffa738f82350a5256200fd6e38d6b23ea2fefb3a.zip) = 5d69e4d852c24ad342fc0b8e6910c1601eb6c74b
+SHA512 (mtpfs/ffa738f82350a5256200fd6e38d6b23ea2fefb3a.zip) = de5c3e3a5dc70a37a7e9193b9165ac11a0fa529a0b2c0b50cd0e05aad6e074bd87f3f2f7bb0acad072ffcd62c907ef8eabe611a4bba8d2fe72891e4e564202f7
+Size (mtpfs/ffa738f82350a5256200fd6e38d6b23ea2fefb3a.zip) = 87733 bytes
+SHA1 (patch-aa) = c10891132729409a96c453df63858c2a2dee8ee5
+SHA1 (patch-ab) = 449d93809905aaa2f25ca35cf4c63b81566bec60
+SHA1 (patch-ac) = 0f81be26d53674061a42c19b9ba47399739fb938
diff --git a/mtpfs/patches/patch-aa b/mtpfs/patches/patch-aa
new file mode 100644
index 0000000..aa52e85
--- /dev/null
+++ b/mtpfs/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa $
+
+adjust to our fuse headers
+--- Makefile.in.orig	2016-06-18 10:14:25.000000000 +0000
++++ Makefile.in	2016-06-18 10:14:47.000000000 +0000
+@@ -287,7 +287,7 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ mtpfs_SOURCES = mtpfs.c mtpfs.h $(am__append_1)
+-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \
++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \
+ 	$(MTP_CFLAGS) $(am__append_2)
+ mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS) $(am__append_3)
+ all: all-am
diff --git a/mtpfs/patches/patch-ab b/mtpfs/patches/patch-ab
new file mode 100644
index 0000000..1b5c701
--- /dev/null
+++ b/mtpfs/patches/patch-ab
@@ -0,0 +1,54 @@
+$NetBSD: patch-ab $
+
+adjust to our fuse headers
+--- mtpfs.c.orig	2016-06-18 10:28:32.000000000 +0000
++++ mtpfs.c	2016-06-18 10:26:53.000000000 +0000
+@@ -1601,7 +1601,7 @@
+ }
+ 
+ static int
+-mtpfs_statfs (const char *path, struct statfs *stbuf)
++mtpfs_statfs (const char *path, struct statvfs *stbuf)
+ {
+   DBG ("mtpfs_statfs");
+   stbuf->f_bsize = 1024;
+@@ -1613,7 +1613,7 @@
+ }
+ 
+ void *
+-mtpfs_init ()
++mtpfs_init (struct fuse_conn_info *conn)
+ {
+   LIBMTP_devicestorage_t *storage;
+   DBG ("mtpfs_init");
+@@ -1624,13 +1624,20 @@
+ }
+ 
+ int
++mtpfs_blank_chmod(const char *path, mode_t mode)
++{
++	return (0);
++}
++
++
++int
+ mtpfs_blank ()
+ {
+   // Do nothing
+ }
+ 
+ static struct fuse_operations mtpfs_oper = {
+-  .chmod = mtpfs_blank,
++  .chmod = mtpfs_blank_chmod,
+   .release = mtpfs_release,
+   .readdir = mtpfs_readdir,
+   .getattr = mtpfs_getattr,
+@@ -1774,7 +1781,7 @@
+ 
+   DBG ("Start fuse");
+ 
+-  fuse_stat = fuse_main (argc, argv, &mtpfs_oper);
++  fuse_stat = fuse_main (argc, argv, &mtpfs_oper, NULL);
+   DBG ("fuse_main returned %d\n", fuse_stat);
+   return fuse_stat;
+ }
diff --git a/mtpfs/patches/patch-ac b/mtpfs/patches/patch-ac
new file mode 100644
index 0000000..98af614
--- /dev/null
+++ b/mtpfs/patches/patch-ac
@@ -0,0 +1,35 @@
+$NetBSD: patch-ac $
+
+
+adjust to our fuse headers
+--- mtpfs.h.orig	2016-06-18 10:28:40.000000000 +0000
++++ mtpfs.h	2016-06-18 10:06:11.000000000 +0000
+@@ -17,7 +17,9 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <errno.h>
+-#include <sys/statfs.h>
++#include <sys/param.h>
++//#include <sys/mount>
++#include <sys/statvfs.h>
+ 
+ #include <libmtp.h>
+ #include <glib.h>
+@@ -48,7 +50,7 @@
+ static int find_storage (const gchar * path);
+ 
+     /* fuse functions */
+-static void *mtpfs_init (void);
++static void *mtpfs_init (struct fuse_conn_info *);
+ static int mtpfs_blank ();
+ static int mtpfs_release (const char *path, struct fuse_file_info *fi);
+ void mtpfs_destroy ();
+@@ -65,7 +67,7 @@
+ static int mtpfs_unlink (const gchar * path);
+ static int mtpfs_mkdir (const char *path, mode_t mode);
+ static int mtpfs_rmdir (const char *path);
+-static int mtpfs_statfs (const char *path, struct statfs *stbuf);
++static int mtpfs_statfs (const char *path, struct statvfs *stbuf);
+ int calc_length (int f);
+ 
+ static LIBMTP_mtpdevice_t *device;


Home | Main Index | Thread Index | Old Index