From owner-freebsd-ports@FreeBSD.ORG Sun Jul 16 07:40:08 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53AFE16A4DF for ; Sun, 16 Jul 2006 07:40:08 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id D681643D4C for ; Sun, 16 Jul 2006 07:40:05 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by nf-out-0910.google.com with SMTP id n15so286820nfc for ; Sun, 16 Jul 2006 00:40:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=lFrspl4FG+acAiQKGxOoqHas0SQuMBcT7J/ml3qADN6t9fm8uJawWQ4FwutgZZ0k5sW+H1+fD+nABj6Z/3a8vLkykRuVTKtPd+IU/G7/a1WsT1QZXu56BYS4F1Y9C0DA4X7yNV+qnkE5ZjlwUq+i+lO0DLUZ1NPS0unoOA45va0= Received: by 10.49.7.3 with SMTP id k3mr943458nfi; Sun, 16 Jul 2006 00:40:04 -0700 (PDT) Received: from roadrunner.q.local ( [84.149.114.215]) by mx.gmail.com with ESMTP id i1sm310700nfe.2006.07.16.00.40.03; Sun, 16 Jul 2006 00:40:04 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k6G7eZTM001350; Sun, 16 Jul 2006 09:40:35 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k6G7eYhP001349; Sun, 16 Jul 2006 09:40:34 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sun, 16 Jul 2006 09:40:34 +0200 From: Ulrich Spoerlein To: Anish Mistry Message-ID: <20060716074034.GA1089@roadrunner.aventurien.local> Mail-Followup-To: Anish Mistry , freebsd-ports@freebsd.org, ports@freebsd.org References: <20060715195146.GE1106@roadrunner.aventurien.local> <200607151839.48114.amistry@am-productions.biz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <200607151839.48114.amistry@am-productions.biz> Cc: ports@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Port of FUSE-NTFS to FreeBSD (sort of) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 07:40:08 -0000 --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 X X.if ${OSVERSION} < 600000 XIGNORE= depends on kernel module that requires FreeBSD 6 or later X.endif X X.include 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--