From 6e2da9672f79f44048d597f0f61e4646cdeade9d Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Fri, 27 Sep 2024 12:48:46 +0200 Subject: filesystems: add new category for file systems and related utilities The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988 --- filesystems/mtpfs/Makefile | 34 +++++++++++++++++++++++++++++++ filesystems/mtpfs/distinfo | 3 +++ filesystems/mtpfs/files/patch-Makefile.am | 10 +++++++++ filesystems/mtpfs/files/patch-Makefile.in | 11 ++++++++++ filesystems/mtpfs/files/patch-mtpfs.c | 11 ++++++++++ filesystems/mtpfs/files/patch-mtpfs.h | 11 ++++++++++ filesystems/mtpfs/pkg-descr | 2 ++ 7 files changed, 82 insertions(+) create mode 100644 filesystems/mtpfs/Makefile create mode 100644 filesystems/mtpfs/distinfo create mode 100644 filesystems/mtpfs/files/patch-Makefile.am create mode 100644 filesystems/mtpfs/files/patch-Makefile.in create mode 100644 filesystems/mtpfs/files/patch-mtpfs.c create mode 100644 filesystems/mtpfs/files/patch-mtpfs.h create mode 100644 filesystems/mtpfs/pkg-descr (limited to 'filesystems/mtpfs') diff --git a/filesystems/mtpfs/Makefile b/filesystems/mtpfs/Makefile new file mode 100644 index 000000000000..45280de5a66a --- /dev/null +++ b/filesystems/mtpfs/Makefile @@ -0,0 +1,34 @@ +PORTNAME= mtpfs +PORTVERSION= 1.1 +PORTREVISION= 5 +CATEGORIES= filesystems sysutils + +MAINTAINER= jhixson@FreeBSD.org +COMMENT= MTP device filesystem +WWW= https://www.adebenham.com/mtpfs/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libmtp.so:multimedia/libmtp \ + libid3.so:audio/id3lib \ + libid3tag.so:audio/libid3tag \ + libmad.so:audio/libmad + +USES= autoreconf fuse gnome pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= cjd +GH_TAGNAME= fd3864dd6f0e8183fa2598d4cf890401d3a1e09a +USE_GNOME= glib20 + +GNU_CONFIGURE= yes + +PLIST_FILES= bin/mtpfs + +.include + +.if ${OPSYS} == FreeBSD +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + +.include diff --git a/filesystems/mtpfs/distinfo b/filesystems/mtpfs/distinfo new file mode 100644 index 000000000000..f5a1fe2cc047 --- /dev/null +++ b/filesystems/mtpfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1593705811 +SHA256 (cjd-mtpfs-1.1-fd3864dd6f0e8183fa2598d4cf890401d3a1e09a_GH0.tar.gz) = f004136a82452d13362581277eb2496033aa13a6c3f35d0501327248f3120456 +SIZE (cjd-mtpfs-1.1-fd3864dd6f0e8183fa2598d4cf890401d3a1e09a_GH0.tar.gz) = 82022 diff --git a/filesystems/mtpfs/files/patch-Makefile.am b/filesystems/mtpfs/files/patch-Makefile.am new file mode 100644 index 000000000000..88b3b171b057 --- /dev/null +++ b/filesystems/mtpfs/files/patch-Makefile.am @@ -0,0 +1,10 @@ +--- Makefile.am.orig 2020-07-02 17:25:56 UTC ++++ Makefile.am +@@ -1,6 +1,6 @@ + bin_PROGRAMS = mtpfs + mtpfs_SOURCES = mtpfs.c mtpfs.h +-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS) ++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS) + mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS) + + if USEMAD diff --git a/filesystems/mtpfs/files/patch-Makefile.in b/filesystems/mtpfs/files/patch-Makefile.in new file mode 100644 index 000000000000..81605bc20d6b --- /dev/null +++ b/filesystems/mtpfs/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2016-12-15 23:55:52 UTC ++++ Makefile.in +@@ -287,7 +287,7 @@ top_build_prefix = @top_build_prefix@ + 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/filesystems/mtpfs/files/patch-mtpfs.c b/filesystems/mtpfs/files/patch-mtpfs.c new file mode 100644 index 000000000000..2c9be7d4cdb1 --- /dev/null +++ b/filesystems/mtpfs/files/patch-mtpfs.c @@ -0,0 +1,11 @@ +--- mtpfs.c.orig 2016-12-15 23:55:52 UTC ++++ mtpfs.c +@@ -1774,7 +1774,7 @@ main (int argc, char *argv[]) + + 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/filesystems/mtpfs/files/patch-mtpfs.h b/filesystems/mtpfs/files/patch-mtpfs.h new file mode 100644 index 000000000000..92ca2ae91cda --- /dev/null +++ b/filesystems/mtpfs/files/patch-mtpfs.h @@ -0,0 +1,11 @@ +--- mtpfs.h.orig 2016-12-15 23:55:52 UTC ++++ mtpfs.h +@@ -17,7 +17,7 @@ + #include + #include + #include +-#include ++#include + + #include + #include diff --git a/filesystems/mtpfs/pkg-descr b/filesystems/mtpfs/pkg-descr new file mode 100644 index 000000000000..95934af17d80 --- /dev/null +++ b/filesystems/mtpfs/pkg-descr @@ -0,0 +1,2 @@ +MTPFS is a FUSE filesystem that supports reading and writing from any +MTP device (as supported by libmtp) -- cgit v1.2.3