diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-09-27 12:48:46 +0200 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 16:17:35 +0100 |
commit | 6e2da9672f79f44048d597f0f61e4646cdeade9d (patch) | |
tree | c92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/mhddfs | |
parent | math/sdpa: speed up build (diff) |
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
Diffstat (limited to 'filesystems/mhddfs')
-rw-r--r-- | filesystems/mhddfs/Makefile | 33 | ||||
-rw-r--r-- | filesystems/mhddfs/distinfo | 3 | ||||
-rw-r--r-- | filesystems/mhddfs/files/patch-Makefile | 50 | ||||
-rw-r--r-- | filesystems/mhddfs/pkg-descr | 8 |
4 files changed, 94 insertions, 0 deletions
diff --git a/filesystems/mhddfs/Makefile b/filesystems/mhddfs/Makefile new file mode 100644 index 000000000000..5ae9b30c5a9e --- /dev/null +++ b/filesystems/mhddfs/Makefile @@ -0,0 +1,33 @@ +PORTNAME= mhddfs +PORTVERSION= 0.1.37 +PORTREVISION= 1 +CATEGORIES= filesystems +MASTER_SITES= http://mhddfs.uvw.ru/downloads/ +PKGNAMEPREFIX= fusefs- +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= proler@gmail.com +COMMENT= Multi HDD [FUSE] File System +WWW= http://mhddfs.uvw.ru/ + +USES= fuse pkgconfig gmake +MAKE_ARGS= WITHOUT_XATTR=1 +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +PLIST_FILES= bin/${PORTNAME} share/man/man1/mhddfs.1.gz +PORTDOCS= README ChangeLog + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|<sys/vfs.h>|<sys/statvfs.h>|' \ + ${WRKSRC}/src/main.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/filesystems/mhddfs/distinfo b/filesystems/mhddfs/distinfo new file mode 100644 index 000000000000..9eb0b83fedb0 --- /dev/null +++ b/filesystems/mhddfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730905183 +SHA256 (mhddfs_0.1.37.tar.gz) = cac6b528b65e7468aa1988bf8ca3cb5cf505f3b543e063649a62e8d1cf800b3b +SIZE (mhddfs_0.1.37.tar.gz) = 40042 diff --git a/filesystems/mhddfs/files/patch-Makefile b/filesystems/mhddfs/files/patch-Makefile new file mode 100644 index 000000000000..27dc30fcdb9d --- /dev/null +++ b/filesystems/mhddfs/files/patch-Makefile @@ -0,0 +1,50 @@ +--- ./Makefile.orig 2014-03-03 13:17:15.751580055 +0100 ++++ ./Makefile 2014-03-03 13:17:55.792585399 +0100 +@@ -83,14 +83,14 @@ + $(shell rpm --eval '%_rpmdir')/*/mhddfs-*$(VERSION)-$(RELEASE)* . + + $(TARGET): obj/obj-stamp $(OBJ) +- gcc $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) ++ $(CC) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) + + obj/obj-stamp: + mkdir -p obj + touch $@ + + obj/%.o: src/%.c +- gcc $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + clean: + rm -fr obj $(TARGET) pwrite_test statvfs rename +@@ -98,7 +98,7 @@ + rm -fr rename-test/mnt + + rename: tests/rename.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + release_svn_thread: + @echo current version $(VERSION) +@@ -113,10 +113,10 @@ + screen -t vim vim Makefile src/*.[ch] README* ChangeLog mhddfs.1 + + pwrite_test: src/test/pwrite.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + statvfs: src/test/statvfs.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + images-mount: test1.img test2.img + mount|grep -q `pwd`/test1 || sudo mount -o loop test1.img test1 +@@ -160,7 +160,7 @@ + while make test; do echo ok; echo; done + + ptest: +- gcc -o $@ tests/plocks.c -l pthread ++ $(CC) -o $@ tests/plocks.c -l pthread + -./$@ + rm -f $@ + diff --git a/filesystems/mhddfs/pkg-descr b/filesystems/mhddfs/pkg-descr new file mode 100644 index 000000000000..76148714af7e --- /dev/null +++ b/filesystems/mhddfs/pkg-descr @@ -0,0 +1,8 @@ +mhddfs - Multi HDD [FUSE] File System + +File system for unifying several mount points into one +This FUSE-based file system allows mount points (or directories) to be +combined, simulating a single big volume which can merge several hard +drives or remote file systems. It is like unionfs, but can choose the +drive with the most free space to create new files on, and can move +data transparently between drives. |