aboutsummaryrefslogtreecommitdiff
path: root/www/mathopd
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-26 19:38:30 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-26 19:38:30 +0000
commit98f30589e2f844d7e9becd1d6f548e3ab64035e5 (patch)
treebbd18cfab2db7af24a36c4da42627af026e42f35 /www/mathopd
parent730305f987bfcbabeadd5cc3c0a2450262a7063e (diff)
downloadports-98f30589e2f844d7e9becd1d6f548e3ab64035e5.tar.gz
ports-98f30589e2f844d7e9becd1d6f548e3ab64035e5.zip
Notes
Diffstat (limited to 'www/mathopd')
-rw-r--r--www/mathopd/Makefile45
-rw-r--r--www/mathopd/distinfo1
-rw-r--r--www/mathopd/files/mathopd.conf.sample123
-rw-r--r--www/mathopd/files/patch-aa32
-rw-r--r--www/mathopd/pkg-comment1
-rw-r--r--www/mathopd/pkg-descr13
-rw-r--r--www/mathopd/pkg-plist7
7 files changed, 222 insertions, 0 deletions
diff --git a/www/mathopd/Makefile b/www/mathopd/Makefile
new file mode 100644
index 000000000000..f645a28700dc
--- /dev/null
+++ b/www/mathopd/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: mathopd HTTPD
+# Version required: 1.3
+# Date created: Sun Oct 31 1999
+# Whom: tobez@plab.ku.dk
+#
+# $FreeBSD$
+#
+
+DISTNAME= mathopd-1.3
+CATEGORIES= www
+MASTER_SITES= http://mathop.diva.nl/dist/ \
+ ftp://ftp.prima.eu.org/pub/mirrored_files/mathop.diva.nl/
+
+MAINTAINER= tobez@plab.ku.dk
+
+WRKSRC= ${WRKDIR}/mathopd
+
+post-install:
+ @${INSTALL_DATA} ${FILESDIR}/mathopd.conf.sample ${PREFIX}/etc
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/mathopd
+ @${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/mathopd
+ @${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/mathopd
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd
+.endif
+ @if [ ! -f ${PREFIX}/etc/rc.d/mathopd.sh ]; then \
+ ${ECHO} "#! ${SH}" > ${PREFIX}/etc/rc.d/mathopd.sh; \
+ ${ECHO} "[ -x ${PREFIX}/sbin/mathopd ] && ${PREFIX}/sbin/mathopd < ${PREFIX}/etc/mathopd.conf && ${ECHO} -n ' mathopd'" >> ${PREFIX}/etc/rc.d/mathopd.sh; \
+ ${CHMOD} 440 ${PREFIX}/etc/rc.d/mathopd.sh; \
+ fi
+ @${ECHO} "====================================================================="
+ @${ECHO} ""
+ @${ECHO} "Before you start the server you must create a config file."
+ @${ECHO} "The easiest way to do it is to copy ${PREFIX}/etc/mathopd.conf.sample"
+ @${ECHO} "to ${PREFIX}/etc/mathopd.conf and edit this file to your taste."
+ @${ECHO} ""
+ @${ECHO} "After you've done with that, chmod 540 ${PREFIX}/etc/rc.d/mathopd.sh"
+ @${ECHO} "and run it."
+ @${ECHO} ""
+ @${ECHO} "Also do not forget to create your web hierarchy and to set its"
+ @${ECHO} "permissions to something secure."
+ @${ECHO} ""
+ @${ECHO} "====================================================================="
+
+.include <bsd.port.mk>
diff --git a/www/mathopd/distinfo b/www/mathopd/distinfo
new file mode 100644
index 000000000000..d64478361960
--- /dev/null
+++ b/www/mathopd/distinfo
@@ -0,0 +1 @@
+MD5 (mathopd-1.3.tar.gz) = 718b318fc0c3737c99753aed8327aa31
diff --git a/www/mathopd/files/mathopd.conf.sample b/www/mathopd/files/mathopd.conf.sample
new file mode 100644
index 000000000000..74f1c7504b2f
--- /dev/null
+++ b/www/mathopd/files/mathopd.conf.sample
@@ -0,0 +1,123 @@
+Umask 026
+
+Tuning {
+ NumConnections 120
+ BufSize 12288
+}
+
+User daemon
+StayRoot On
+
+PIDFile /tmp/mathopd/pid
+Log /tmp/mathopd/log.%Y%m%d
+ErrorLog /tmp/mathopd/errors.%Y%m
+
+Control {
+ Symlinks On
+ Types {
+ text/plain { * }
+ text/css { css }
+ application/octet-stream { zip gz tgz exe class }
+ application/futuresplash { spl }
+ model/vrml { wrl }
+ application/pdf { pdf }
+ text/html { html htm }
+ image/gif { gif }
+ image/jpeg { jpg }
+ }
+ Specials {
+ Imagemap { map }
+ CGI { cgi }
+ Redirect { url }
+ }
+ External {
+ /usr/bin/perl { pl }
+ }
+ IndexNames { home.html index.htm index.html redirect.url }
+}
+
+DefaultName localtoast
+
+Server {
+ Port 8080
+
+ Virtual {
+ Control {
+ Alias /
+ Location /home/www/oldclients
+ }
+ }
+
+ Virtual {
+ Host localhost
+ Control {
+ Alias /
+ Location /home/www/localhost
+ }
+ Control {
+ Alias /protected
+ Location /home/www/localhost/protected
+ Realm "Protected Area"
+ UserFile /home/www/htpasswd
+ }
+ }
+
+ Virtual {
+ Host www.domain.com
+ Control {
+ Alias /
+ Location /home/w/www/www.domain.com
+ }
+ Control {
+ Alias /~
+ Location http://www2.domain.com/~
+ }
+ }
+
+ Virtual {
+ Host www3.domain.com
+ Control {
+ Alias /
+ Location /home/www/www3.domain.com
+ }
+ }
+
+ Virtual {
+ Host www4.domain.com
+ Control {
+ Alias /
+ Location /home/www/www4.domain.com
+ }
+ Control {
+ Alias /cgi-bin
+ Location /home/www/www4.domain.com/cgi-bin
+ Specials {
+ CGI { * }
+ }
+ }
+ }
+
+ Virtual {
+ Host www5.domain.com
+ Control {
+ Alias /
+ Location /home/www/www5.domain.com/silly.html
+ PathArgs On
+ }
+ Control {
+ Alias /private
+ Location /home/www/www5.domain.com/private
+ Access {
+ Deny 0/0
+ Allow 127.0.0.1/32
+ Allow 192.168.57.0/24
+ }
+ }
+ Control {
+ Alias /funky
+ Location /home/www/www5.domain.com/funky
+ Refresh 300
+ }
+ }
+
+}
diff --git a/www/mathopd/files/patch-aa b/www/mathopd/files/patch-aa
new file mode 100644
index 000000000000..b78a94c24ebf
--- /dev/null
+++ b/www/mathopd/files/patch-aa
@@ -0,0 +1,32 @@
+--- Makefile.orig Sun Oct 31 18:25:08 1999
++++ Makefile Sun Oct 31 19:03:04 1999
+@@ -1,23 +1,7 @@
+-BIN=mathopd
+-CC=gcc
+-CFLAGS=-O -Wall
+-CPPFLAGS=
+-LDFLAGS=
+-LDLIBS=
+-PREFIX=/usr/local
+-SBINDIR=$(PREFIX)/sbin
++PROG= mathopd
++SRCS= base64.c cgi.c config.c core.c dummy.c dump.c imap.c log.c \
++ main.c redirect.c request.c util.c
++BINDIR?=${PREFIX}/sbin
++NOMAN= yes
+
+-OBJS= base64.o cgi.o config.o core.o dummy.o dump.o imap.o log.o main.o \
+- redirect.o request.o util.o
+-DEPENDS=mathopd.h Makefile
+-
+-all: $(BIN)
+-install: $(BIN)
+- install $(BIN) $(SBINDIR)
+-$(BIN): $(OBJS)
+- $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
+-$(OBJS): $(DEPENDS)
+-.c.o:
+- $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
+-clean:
+- rm -f $(BIN) $(OBJS)
++.include <bsd.prog.mk>
diff --git a/www/mathopd/pkg-comment b/www/mathopd/pkg-comment
new file mode 100644
index 000000000000..ff6a9a131941
--- /dev/null
+++ b/www/mathopd/pkg-comment
@@ -0,0 +1 @@
+A very small, yet very fast HTTP server
diff --git a/www/mathopd/pkg-descr b/www/mathopd/pkg-descr
new file mode 100644
index 000000000000..9e426fec6b47
--- /dev/null
+++ b/www/mathopd/pkg-descr
@@ -0,0 +1,13 @@
+Mathopd is a very small, yet very fast HTTP server for UN*X systems.
+
+Mathopd is designed specifically to handle a large number of connections
+with minimal fuss. It contains no unnecessary add-ons, but it does the
+trick for most things.
+
+Mathopd does not allocate any memory, once it has started up, and
+does not fork any processes (except for CGI scripts of course.)
+
+WWW: http://mathop.diva.nl/
+
+- Anton
+tobez@plab.ku.dk
diff --git a/www/mathopd/pkg-plist b/www/mathopd/pkg-plist
new file mode 100644
index 000000000000..a3a4fbbf4241
--- /dev/null
+++ b/www/mathopd/pkg-plist
@@ -0,0 +1,7 @@
+etc/mathopd.conf.sample
+etc/rc.d/mathopd.sh
+sbin/mathopd
+share/doc/mathopd/CHANGES
+share/doc/mathopd/COPYING
+share/doc/mathopd/README
+@dirrm share/doc/mathopd