From gslin@netnews.NCTU.edu.tw  Sun Jul 16 14:57:55 2006
Return-Path: <gslin@netnews.NCTU.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 49E1516A4DA
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Jul 2006 14:57:55 +0000 (UTC)
	(envelope-from gslin@netnews.NCTU.edu.tw)
Received: from netnews.NCTU.edu.tw (ccreader.nctu.edu.tw [140.113.54.119])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EAE2D43D68
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Jul 2006 14:57:51 +0000 (GMT)
	(envelope-from gslin@netnews.NCTU.edu.tw)
Received: by netnews.NCTU.edu.tw (Postfix, from userid 1000)
	id DEFDA6AF; Sun, 16 Jul 2006 22:57:46 +0800 (CST)
Message-Id: <20060716145746.DEFDA6AF@netnews.NCTU.edu.tw>
Date: Sun, 16 Jul 2006 22:57:46 +0800 (CST)
From: Gea-Suan Lin <gslin@gslin.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gslin@gslin.org
Subject: [NEW PORT] sysutils/fusefs-httpfs: Fuse-based http filesystem
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         100389
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/fusefs-httpfs: Fuse-based http filesystem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 16 15:00:32 GMT 2006
>Closed-Date:    Wed Jul 19 01:04:07 GMT 2006
>Last-Modified:  Wed Jul 19 01:04:07 GMT 2006
>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:
httpfs depends on FUSE. It uses HTTP/1.1 extensions to read arbitrary
bytes from a file on a web-server. This is particular interesting for
an iso, since it can be investigated (loop device) without actually
downloading the whole iso.

WWW:	http://httpfs.sourceforge.net/

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

--- fusefs-httpfs-2.06.07.10.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-httpfs
#	fusefs-httpfs/pkg-descr
#	fusefs-httpfs/Makefile
#	fusefs-httpfs/distinfo
#	fusefs-httpfs/files
#	fusefs-httpfs/files/patch-httpfs.c
#
echo c - fusefs-httpfs
mkdir -p fusefs-httpfs > /dev/null 2>&1
echo x - fusefs-httpfs/pkg-descr
sed 's/^X//' >fusefs-httpfs/pkg-descr << 'END-of-fusefs-httpfs/pkg-descr'
Xhttpfs depends on FUSE. It uses HTTP/1.1 extensions to read arbitrary
Xbytes from a file on a web-server. This is particular interesting for
Xan iso, since it can be investigated (loop device) without actually
Xdownloading the whole iso.
X
XWWW:	http://httpfs.sourceforge.net/
END-of-fusefs-httpfs/pkg-descr
echo x - fusefs-httpfs/Makefile
sed 's/^X//' >fusefs-httpfs/Makefile << 'END-of-fusefs-httpfs/Makefile'
X# New ports collection makefile for:	fusefs-httpfs
X# Date created:		2006-07-16
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	httpfs
XPORTVERSION=	2.06.07.10
XCATEGORIES=	sysutils www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XPKGNAMEPREFIX=	fusefs-
XDISTNAME=	${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=	gslin@gslin.org
XCOMMENT=	Fuse-based http filesystem
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/httpfs
XUSE_BZIP2=	yes
XWRKSRC=		${WRKDIR}
X
Xdo-build:
X	(cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
X	 -DUSE_AUTH -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
X	 -DFUSE_USE_VERSION=25 -D_POSIX_C_SOURCE=200112L -D_POSIX_SOURCE \
X	 -D_SVID_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=500 \
X	 -o httpfs httpfs.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/httpfs ${PREFIX}/bin
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 600000	# Inherited from sysutils/fusefs-kmod
XIGNORE=		depends on kernel module that requires FreeBSD 6 or later
X.endif
X
X.include <bsd.port.post.mk>
END-of-fusefs-httpfs/Makefile
echo x - fusefs-httpfs/distinfo
sed 's/^X//' >fusefs-httpfs/distinfo << 'END-of-fusefs-httpfs/distinfo'
XMD5 (httpfs_2.06.07.10.tar.bz2) = f62e2f333651a7c21b610d0ec4f52f03
XSHA256 (httpfs_2.06.07.10.tar.bz2) = b6291852ae2810528585447b835aa9d507c6ee7d1a4e7889e183e0305f753223
XSIZE (httpfs_2.06.07.10.tar.bz2) = 13990
END-of-fusefs-httpfs/distinfo
echo c - fusefs-httpfs/files
mkdir -p fusefs-httpfs/files > /dev/null 2>&1
echo x - fusefs-httpfs/files/patch-httpfs.c
sed 's/^X//' >fusefs-httpfs/files/patch-httpfs.c << 'END-of-fusefs-httpfs/files/patch-httpfs.c'
X--- httpfs.c.orig	Sun Jul 16 22:48:19 2006
X+++ httpfs.c	Sun Jul 16 22:48:39 2006
X@@ -32,9 +32,10 @@
X #include <errno.h>
X #include <fcntl.h>
X #include <sys/stat.h>
X-#include <sys/dir.h>
X+#include <dirent.h>
X #include <sys/types.h>
X #include <sys/socket.h>
X+#include <sys/select.h>
X #include <netinet/in.h>
X #include <netdb.h>
X #include <time.h>
END-of-fusefs-httpfs/files/patch-httpfs.c
exit
--- fusefs-httpfs-2.06.07.10.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 16 15:00:39 UTC 2006 
Responsible-Changed-Why:  
clsung@ wants his PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100389 
State-Changed-From-To: open->closed 
State-Changed-By: clsung 
State-Changed-When: Wed Jul 19 01:04:05 UTC 2006 
State-Changed-Why:  
New port added. Thank You. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100389 
>Unformatted:
