aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/webfs/Makefile30
-rw-r--r--www/webfs/distinfo1
-rw-r--r--www/webfs/files/patch-ab13
-rw-r--r--www/webfs/pkg-comment1
-rw-r--r--www/webfs/pkg-descr23
-rw-r--r--www/webfs/pkg-plist3
6 files changed, 71 insertions, 0 deletions
diff --git a/www/webfs/Makefile b/www/webfs/Makefile
new file mode 100644
index 00000000000..6bd2195f71f
--- /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 00000000000..6a4a2f55ae1
--- /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 00000000000..37fdda0a0b5
--- /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 00000000000..83c5f075806
--- /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 00000000000..ae67cc111ae
--- /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 00000000000..d4b52dd4862
--- /dev/null
+++ b/www/webfs/pkg-plist
@@ -0,0 +1,3 @@
+etc/webfsd/mime.types
+sbin/webfsd
+@dirrm etc/webfsd