diff options
author | Steve Price <steve@FreeBSD.org> | 1999-11-26 19:34:11 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-11-26 19:34:11 +0000 |
commit | 912468911465bf8a91cf943cac16d8994293881f (patch) | |
tree | e531fe249e73f6f2123bddda6f59f564da45c813 /www | |
parent | e53ab58c55f075174c1c73427716238055ff5457 (diff) | |
download | ports-912468911465bf8a91cf943cac16d8994293881f.tar.gz ports-912468911465bf8a91cf943cac16d8994293881f.zip |
Initial import of webfs version 0.6.
A simple http server for static content.
PR: 14409
Submitted by: Chris D. Faulhaber <jedgar@fxp.org>
Notes
Notes:
svn path=/head/; revision=23386
Diffstat (limited to 'www')
-rw-r--r-- | www/webfs/Makefile | 30 | ||||
-rw-r--r-- | www/webfs/distinfo | 1 | ||||
-rw-r--r-- | www/webfs/files/patch-ab | 13 | ||||
-rw-r--r-- | www/webfs/pkg-comment | 1 | ||||
-rw-r--r-- | www/webfs/pkg-descr | 23 | ||||
-rw-r--r-- | www/webfs/pkg-plist | 3 |
6 files changed, 71 insertions, 0 deletions
diff --git a/www/webfs/Makefile b/www/webfs/Makefile new file mode 100644 index 000000000000..6bd2195f71f4 --- /dev/null +++ b/www/webfs/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: webfs +# Version required: 0.6 +# Date created: 18 October 1999 +# Whom: Chris D. Faulhaber <jedgar@fxp.org> +# +# $FreeBSD$ +# + +DISTNAME= webfs-0.6 +CATEGORIES= www +MASTER_SITES= http://www.IN-Berlin.DE/User/kraxel/dl/ + +MAINTAINER= jedgar@fxp.org + +MAN1= webfsd.1 + +do-configure: + @${SED} -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' \ + < ${WRKSRC}/webfsd.man > ${WRKSRC}/webfsd.1 + @${MV} ${WRKSRC}/main.c ${WRKSRC}/main.c.orig + @${SED} -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' \ + < ${WRKSRC}/main.c.orig > ${WRKSRC}/main.c + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin + @${INSTALL_MAN} ${WRKSRC}/webfsd.1 ${PREFIX}/man/man1 + @${MKDIR} ${PREFIX}/etc/webfsd + @${ECHO} "# Insert mime types here" > ${PREFIX}/etc/webfsd/mime.types + +.include <bsd.port.mk> diff --git a/www/webfs/distinfo b/www/webfs/distinfo new file mode 100644 index 000000000000..6a4a2f55ae1d --- /dev/null +++ b/www/webfs/distinfo @@ -0,0 +1 @@ +MD5 (webfs-0.6.tar.gz) = b3bffd6cfd8a24d5bfb7e68eca0a165f diff --git a/www/webfs/files/patch-ab b/www/webfs/files/patch-ab new file mode 100644 index 000000000000..37fdda0a0b50 --- /dev/null +++ b/www/webfs/files/patch-ab @@ -0,0 +1,13 @@ +--- ls.c.orig Wed Oct 20 13:40:30 1999 ++++ ls.c Mon Oct 25 11:13:51 1999 +@@ -15,6 +15,10 @@ + + #include "httpd.h" + ++#ifdef __FreeBSD__ ++#define NAME_MAX FILENAME_MAX ++#endif ++ + #define LS_ALLOC_SIZE 8192 + #define HOMEPAGE "http://www.in-berlin.de/User/kraxel/webfs.html" + diff --git a/www/webfs/pkg-comment b/www/webfs/pkg-comment new file mode 100644 index 000000000000..83c5f075806d --- /dev/null +++ b/www/webfs/pkg-comment @@ -0,0 +1 @@ +A simple http server for static content diff --git a/www/webfs/pkg-descr b/www/webfs/pkg-descr new file mode 100644 index 000000000000..ae67cc111ae0 --- /dev/null +++ b/www/webfs/pkg-descr @@ -0,0 +1,23 @@ +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. + +Features/Design: +================ + * single process: select() + non-blocking I/O + * automatically generates directory listings when asked for a + directory (check for index.html available as option), caches + the listings. + * no config file, just a few switches. Try "webfsd -h" for a + list. + * Uses ${PREFIX}/etc/webfsd/mime.types to map file extentions + to mime/types (not included). + * supports keep-alive and pipelined requests. + * serves byte ranges. + * optional logging in common log file format. + +WWW: http://www.IN-Berlin.DE/User/kraxel/webfs.html + +- Chris D. Faulhaber +jedgar@fxp.org diff --git a/www/webfs/pkg-plist b/www/webfs/pkg-plist new file mode 100644 index 000000000000..d4b52dd48620 --- /dev/null +++ b/www/webfs/pkg-plist @@ -0,0 +1,3 @@ +etc/webfsd/mime.types +sbin/webfsd +@dirrm etc/webfsd |