ports/100382: [NEW PORT] sysutils/fusefs-unionfs: FUSE based implementation of the well-known unionfs

Gea-Suan Lin gslin at gslin.org
Sun Jul 16 11:20:17 UTC 2006


>Number:         100382
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/fusefs-unionfs: FUSE based implementation of the well-known unionfs
>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:   Sun Jul 16 11:20:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
This is my effort to create a unionfs filesystem implementation which
is probably slower but way more flexible than the current in-kernel
unionfs solution. Currently it's almost fully usable, the only problem
is new file/directory creation which I will fix soon...

WWW:	http://podgorny.cz/moin/UnionFsFuse

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- fusefs-unionfs-0.14.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:
#
#	fusefs-unionfs
#	fusefs-unionfs/pkg-descr
#	fusefs-unionfs/Makefile
#	fusefs-unionfs/files
#	fusefs-unionfs/files/patch-unionfs.c
#	fusefs-unionfs/distinfo
#
echo c - fusefs-unionfs
mkdir -p fusefs-unionfs > /dev/null 2>&1
echo x - fusefs-unionfs/pkg-descr
sed 's/^X//' >fusefs-unionfs/pkg-descr << 'END-of-fusefs-unionfs/pkg-descr'
XThis is my effort to create a unionfs filesystem implementation which
Xis probably slower but way more flexible than the current in-kernel
Xunionfs solution. Currently it's almost fully usable, the only problem
Xis new file/directory creation which I will fix soon...
X
XWWW:	http://podgorny.cz/moin/UnionFsFuse
END-of-fusefs-unionfs/pkg-descr
echo x - fusefs-unionfs/Makefile
sed 's/^X//' >fusefs-unionfs/Makefile << 'END-of-fusefs-unionfs/Makefile'
X# New ports collection makefile for:	fusefs-unionfs
X# Date created:		2006-07-16
X# Whom:			Gea-Suan Lin <gslin at gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	unionfs
XPORTVERSION=	0.14
XCATEGORIES=	sysutils
XMASTER_SITES=	http://podgorny.cz/unionfs-fuse/releases/
XPKGNAMEPREFIX=	fusefs-
XDISTNAME=	unionfs-fuse-${PORTVERSION}
X
XMAINTAINER=	gslin at gslin.org
XCOMMENT=	FUSE based implementation of the well-known unionfs
X
XRUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
XBUILD_DEPENDS=	${LOCALBASE}/include/fuse.h:${PORTSDIR}/sysutils/fusefs-libs
X
XPLIST_FILES=	bin/unionfs
X
XUSE_BZIP2=	yes
X
Xdo-build:
X	(cd ${WRKSRC} && \
X	 ${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
X	 -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25 \
X	 -o unionfs *.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/unionfs ${PREFIX}/bin
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 600000	# Inherited from fusefs-kmod
XIGNORE=		requires FreeBSD 6.x or above
X.endif
X
X.include <bsd.port.post.mk>
END-of-fusefs-unionfs/Makefile
echo c - fusefs-unionfs/files
mkdir -p fusefs-unionfs/files > /dev/null 2>&1
echo x - fusefs-unionfs/files/patch-unionfs.c
sed 's/^X//' >fusefs-unionfs/files/patch-unionfs.c << 'END-of-fusefs-unionfs/files/patch-unionfs.c'
X--- unionfs.c.orig	Sun Jul 16 19:02:07 2006
X+++ unionfs.c	Sun Jul 16 19:05:45 2006
X@@ -189,9 +189,13 @@
X 	if (stats_enabled && strcmp(path, STATS_FILENAME) == 0) return 0;
X 
X 	int res;
X+#if FUSE_USE_VERSION >= 26
X 	if (isdatasync) {
X 		res = fdatasync(fi->fh);
X 	} else {
X+#else
X+	{
X+#endif
X 		res = fsync(fi->fh);
X 	}
X 
END-of-fusefs-unionfs/files/patch-unionfs.c
echo x - fusefs-unionfs/distinfo
sed 's/^X//' >fusefs-unionfs/distinfo << 'END-of-fusefs-unionfs/distinfo'
XMD5 (unionfs-fuse-0.14.tar.bz2) = 7730e9b99830f50a2c8f884e5a8c0870
XSHA256 (unionfs-fuse-0.14.tar.bz2) = dd32cd853e650c742f87ee5f4aa92892e74add38e72bf9b518dec6783249fe0d
XSIZE (unionfs-fuse-0.14.tar.bz2) = 6025
END-of-fusefs-unionfs/distinfo
exit
--- fusefs-unionfs-0.14.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list