Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 1999 20:19:51 -0400 (EDT)
From:      jedgar@fxp.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14409: New port: www/webfs-0.5
Message-ID:  <19991019001951.5EBE09B22@pawn.primelocation.net>

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

>Number:         14409
>Category:       ports
>Synopsis:       New port: www/webfs-0.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 18 17:20:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Chris D. Faulhaber
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
BUGO - BSD Users Group of Orlando
>Environment:

FreeBSD earth.fxp 4.0-CURRENT FreeBSD 4.0-CURRENT #75: Fri Oct 15 10:13:22 EDT 1999

>Description:

New port: www/webfs-0.5

This is a simple http server for purely static content.  You can
use it to serve the content of a ftp server via http for example.
It is also nice to export some files quickly by starting an http
server in a few seconds without editing a config file first.

>How-To-Repeat:
>Fix:

# 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:
#
#	webfs
#	webfs/Makefile
#	webfs/files
#	webfs/files/md5
#	webfs/pkg
#	webfs/pkg/PLIST
#	webfs/pkg/COMMENT
#	webfs/pkg/DESCR
#	webfs/patches
#	webfs/patches/patch-aa
#
echo c - webfs
mkdir -p webfs > /dev/null 2>&1
echo x - webfs/Makefile
sed 's/^X//' >webfs/Makefile << 'END-of-webfs/Makefile'
X# New ports collection makefile for:	webfs
X# Version required:			0.5
X# Date created:				18 October 1999
X# Whom:					Chris D. Faulhaber <jedgar@fxp.org>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	webfs-0.5
XCATEGORIES=	www
XMASTER_SITES=	http://www.IN-Berlin.DE/User/kraxel/dl/
X
XMAINTAINER=	jedgar@fxp.org
X
XMAN1=		webfsd.1
X
Xdo-configure:
X	@${CP} ${WRKSRC}/webfsd.man ${WRKSRC}/webfsd.1
X	@${MV} ${WRKSRC}/mime.c ${WRKSRC}/mime.c.orig
X	@${SED} -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' \
X	    < ${WRKSRC}/mime.c.orig > ${WRKSRC}/mime.c
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin
X	@${INSTALL_MAN} ${WRKSRC}/webfsd.1 ${PREFIX}/man/man1
X	@${MKDIR} ${PREFIX}/etc/webfsd
X	@${ECHO} "# Insert mime types here" > ${PREFIX}/etc/webfsd/mime.types
X
X.include <bsd.port.mk>
END-of-webfs/Makefile
echo c - webfs/files
mkdir -p webfs/files > /dev/null 2>&1
echo x - webfs/files/md5
sed 's/^X//' >webfs/files/md5 << 'END-of-webfs/files/md5'
XMD5 (webfs-0.5.tar.gz) = e0776bd482c67fdbd7c5582de9d9a768
END-of-webfs/files/md5
echo c - webfs/pkg
mkdir -p webfs/pkg > /dev/null 2>&1
echo x - webfs/pkg/PLIST
sed 's/^X//' >webfs/pkg/PLIST << 'END-of-webfs/pkg/PLIST'
Xsbin/webfsd
Xetc/webfsd/mime.types
X@dirrm etc/webfsd
END-of-webfs/pkg/PLIST
echo x - webfs/pkg/COMMENT
sed 's/^X//' >webfs/pkg/COMMENT << 'END-of-webfs/pkg/COMMENT'
XA simple http server for static content
END-of-webfs/pkg/COMMENT
echo x - webfs/pkg/DESCR
sed 's/^X//' >webfs/pkg/DESCR << 'END-of-webfs/pkg/DESCR'
XThis is a simple http server for purely static content.  You can
Xuse it to serve the content of a ftp server via http for example.
XIt is also nice to export some files quickly by starting an http
Xserver in a few seconds without editing a config file first.
X
XFeatures/Design:
X================
X * single process: select() + non-blocking I/O
X * automatically generates directory listings when asked for a
X   directory (check for index.html available as option), caches
X   the listings.
X * no config file, just a few switches.  Try "webfsd -h" for a
X   list.
X * Uses ${PREFIX}/etc/webfsd/mime.types to map file extentions
X   to mime/types (not included).
X * supports keep-alive and pipelined requests.
X * serves byte ranges.
X * optional logging in common log file format.
X
XWWW: http://www.IN-Berlin.DE/User/kraxel/webfs.html
X
X- Chris D. Faulhaber
Xjedgar@fxp.org
END-of-webfs/pkg/DESCR
echo c - webfs/patches
mkdir -p webfs/patches > /dev/null 2>&1
echo x - webfs/patches/patch-aa
sed 's/^X//' >webfs/patches/patch-aa << 'END-of-webfs/patches/patch-aa'
X--- Makefile.orig	Fri Oct 15 15:46:00 1999
X+++ Makefile	Mon Oct 18 19:28:49 1999
X@@ -2,8 +2,8 @@
X bindir=$(prefix)/bin
X mandir=$(prefix)/man/man1
X 
X-CC=gcc
X-CFLAGS=-Wall -g -O2
X+#CC=gcc
X+#CFLAGS=-Wall -g -O2
X 
X PROG=webfsd
X OBJS=main.o request.o response.o ls.o mime.o
END-of-webfs/patches/patch-aa
exit


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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