ports/100389: [NEW PORT] sysutils/fusefs-httpfs: Fuse-based http filesystem

Gea-Suan Lin gslin at gslin.org
Sun Jul 16 15:00:34 UTC 2006


>Number:         100389
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/fusefs-httpfs: Fuse-based http filesystem
>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 15:00:32 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:
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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list