Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2006 09:40:34 +0200
From:      Ulrich Spoerlein <uspoerlein@gmail.com>
To:        Anish Mistry <amistry@am-productions.biz>
Cc:        ports@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: Port of FUSE-NTFS to FreeBSD (sort of)
Message-ID:  <20060716074034.GA1089@roadrunner.aventurien.local>
In-Reply-To: <200607151839.48114.amistry@am-productions.biz>
References:  <20060715195146.GE1106@roadrunner.aventurien.local> <200607151839.48114.amistry@am-productions.biz>

next in thread | previous in thread | raw e-mail | index | archive | help

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Anish Mistry wrote:
> Would you post the port somewhere?  Once Csaba gets the next update 
> out he might have time to take a look.

Sigh,

I attached it as shar, looks like even those get stripped now? I'll try
again by attaching it as text ...

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fusefs-ntfs.shar"

# 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-ntfs
#	fusefs-ntfs/Makefile
#	fusefs-ntfs/distinfo
#	fusefs-ntfs/pkg-descr
#	fusefs-ntfs/pkg-plist
#	fusefs-ntfs/files
#	fusefs-ntfs/files/patch-configure
#	fusefs-ntfs/files/patch-unix_io.c
#	fusefs-ntfs/files/patch-utils.c
#
echo c - fusefs-ntfs
mkdir -p fusefs-ntfs > /dev/null 2>&1
echo x - fusefs-ntfs/Makefile
sed 's/^X//' >fusefs-ntfs/Makefile << 'END-of-fusefs-ntfs/Makefile'
X# New ports collection makefile for:	fusefs-ntfs
X# Date created: 			15.07.2006
X# Whom:					Ulrich Spoerlein
X# $FreeBSD$
X#
X
XSTRIP=
XCFLAGS=	-O -g -DDEBUG
X
XPORTNAME=	ntfs-3g
XPORTVERSION=	20070714
XCATEGORIES=	sysutils
XMASTER_SITES=	http://mlf.linux.rulez.org/mlf/ezaz/
XPKGNAMEPREFIX=	fusefs-
XDISTNAME=	${PORTNAME}-${PORTVERSION}-BETA
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	uspoerlein@gmail.com
XCOMMENT=	Mount NTFS partitions with good write support
X
XLIB_DEPENDS=	fuse.2:${PORTSDIR}/sysutils/fusefs-libs
XRUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
XBUILD_DEPENDS=	fusefs-libs>2.4.1:${PORTSDIR}/sysutils/fusefs-libs
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=	--program-transform-name="s/.*/ntfs-3g/"
X
XMAN8=	ntfs-3g.8
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 600000
XIGNORE=		depends on kernel module that requires FreeBSD 6 or later
X.endif
X
X.include <bsd.port.post.mk>
END-of-fusefs-ntfs/Makefile
echo x - fusefs-ntfs/distinfo
sed 's/^X//' >fusefs-ntfs/distinfo << 'END-of-fusefs-ntfs/distinfo'
XMD5 (ntfs-3g-20070714-BETA.tgz) = 00e8f27da72ed51f6c99ebaef0989297
XSHA256 (ntfs-3g-20070714-BETA.tgz) = f55e8cb1637aa6940f745f50940b43c060b52350d1004406b6a141658a23ddf3
XSIZE (ntfs-3g-20070714-BETA.tgz) = 654526
END-of-fusefs-ntfs/distinfo
echo x - fusefs-ntfs/pkg-descr
sed 's/^X//' >fusefs-ntfs/pkg-descr << 'END-of-fusefs-ntfs/pkg-descr'
XThe ntfs-3g driver is an open source, GPL licensed, third generation Linux 
XNTFS driver for 32-bit, little-endian architectures which was implemented 
Xby the Linux-NTFS project. It provides full read-write access to NTFS, 
Xexcluding access to encrypted files, writing compressed files, changing 
Xfile ownership, access right.
X
XTechnically it's based on and a major improvement to the third generation 
XLinux NTFS driver, ntfsmount. The improvements includes functionality, 
Xquality and performance enhancements. 
X
XThe driver currently is in BETA status: before release of this software we 
Xhaven't experienced any driver crashes or data loss during our heavy quality 
Xtesting, however we are aware of some minor issues which will be resolved
Xin the near future. We listed all of them in a below section. Please report 
Xany new problem to linux-ntfs-dev@li... if it's not listed 
Xyet in the latest release of this software. 
X
XWWW: http://www.linux-ntfs.org/
END-of-fusefs-ntfs/pkg-descr
echo x - fusefs-ntfs/pkg-plist
sed 's/^X//' >fusefs-ntfs/pkg-plist << 'END-of-fusefs-ntfs/pkg-plist'
Xbin/ntfs-3g
Xinclude/ntfs/attrib.h
Xinclude/ntfs/attrlist.h
Xinclude/ntfs/bitmap.h
Xinclude/ntfs/bootsect.h
Xinclude/ntfs/collate.h
Xinclude/ntfs/compat.h
Xinclude/ntfs/compress.h
Xinclude/ntfs/debug.h
Xinclude/ntfs/device.h
Xinclude/ntfs/device_io.h
Xinclude/ntfs/dir.h
Xinclude/ntfs/endians.h
Xinclude/ntfs/index.h
Xinclude/ntfs/inode.h
Xinclude/ntfs/layout.h
Xinclude/ntfs/lcnalloc.h
Xinclude/ntfs/list.h
Xinclude/ntfs/logfile.h
Xinclude/ntfs/logging.h
Xinclude/ntfs/mft.h
Xinclude/ntfs/mst.h
Xinclude/ntfs/ntfstime.h
Xinclude/ntfs/runlist.h
Xinclude/ntfs/security.h
Xinclude/ntfs/support.h
Xinclude/ntfs/types.h
Xinclude/ntfs/unistr.h
Xinclude/ntfs/version.h
Xinclude/ntfs/volume.h
Xlib/libntfs-3g.a
Xlib/libntfs-3g.la
Xlib/libntfs-3g.so.0
X@dirrm include/ntfs
END-of-fusefs-ntfs/pkg-plist
echo c - fusefs-ntfs/files
mkdir -p fusefs-ntfs/files > /dev/null 2>&1
echo x - fusefs-ntfs/files/patch-configure
sed 's/^X//' >fusefs-ntfs/files/patch-configure << 'END-of-fusefs-ntfs/files/patch-configure'
X--- configure.orig	Sat Jul 15 19:29:33 2006
X+++ configure	Sat Jul 15 19:29:40 2006
X@@ -19956,7 +19956,7 @@
X 
X 
X case "$target_os" in
X-linux*)
X+linux*|freebsd*)
X 
X   succeeded=no
X 
END-of-fusefs-ntfs/files/patch-configure
echo x - fusefs-ntfs/files/patch-unix_io.c
sed 's/^X//' >fusefs-ntfs/files/patch-unix_io.c << 'END-of-fusefs-ntfs/files/patch-unix_io.c'
X--- libntfs-3g/unix_io.c.orig	Sat Jul 15 20:44:04 2006
X+++ libntfs-3g/unix_io.c	Sat Jul 15 20:44:41 2006
X@@ -112,6 +112,7 @@
X 		flk.l_type = F_WRLCK;
X 	flk.l_whence = SEEK_SET;
X 	flk.l_start = flk.l_len = 0LL;
X+#ifndef __FreeBSD__
X 	if (fcntl(DEV_FD(dev), F_SETLK, &flk)) {
X 		err = errno;
X 		ntfs_log_debug("ntfs_device_unix_io_open: Could not lock %s for %s\n",
X@@ -121,6 +122,7 @@
X 					"close %s", dev->d_name);
X 		goto err_out;
X 	}
X+#endif
X 	/* Determine if device is a block device or not, ignoring errors. */
X 	if (!fstat(DEV_FD(dev), &sbuf) && S_ISBLK(sbuf.st_mode))
X 		NDevSetBlock(dev);
END-of-fusefs-ntfs/files/patch-unix_io.c
echo x - fusefs-ntfs/files/patch-utils.c
sed 's/^X//' >fusefs-ntfs/files/patch-utils.c << 'END-of-fusefs-ntfs/files/patch-utils.c'
X--- src/utils.c.orig	Sat Jul 15 21:11:40 2006
X+++ src/utils.c	Sat Jul 15 21:11:19 2006
X@@ -133,6 +133,7 @@
X 		return 0;
X 	}
X 
X+#ifndef __FreeBSD__
X 	if (!S_ISBLK(st.st_mode) && !S_ISREG(st.st_mode)) {
X 		ntfs_log_warning("%s is not a block device, "
X 				 "nor regular file.\n", name);
X@@ -143,6 +144,7 @@
X 		}
X 		ntfs_log_warning("Forced to continue.\n");
X 	}
X+#endif
X 
X 	/* Make sure the file system is not mounted. */
X 	if (ntfs_check_if_mounted(name, &mnt_flags)) {
END-of-fusefs-ntfs/files/patch-utils.c
exit


--vkogqOf2sHV7VnPd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060716074034.GA1089>