Date: Sun, 31 Oct 1999 20:11:56 +0100 (CET) From: tobez@plab.ku.dk To: FreeBSD-gnats-submit@freebsd.org Subject: ports/14624: New port: Mathopd - A very small, yet very fast HTTP server Message-ID: <199910311911.UAA38241@lion.plab.ku.dk>
next in thread | raw e-mail | index | archive | help
>Number: 14624 >Category: ports >Synopsis: New port: Mathopd - A very small, yet very fast HTTP server >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: Sun Oct 31 11:20:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Anton Berezin >Release: FreeBSD 4.0-CURRENT i386 >Organization: The Protein Laboratory, University of Copenhagen >Environment: Tested on 4.0-CURRENT and on 3.3-STABLE >Description: 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/ >How-To-Repeat: Commit fast. :-) >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: # # mathopd # mathopd/Makefile # mathopd/pkg # mathopd/pkg/PLIST # mathopd/pkg/COMMENT # mathopd/pkg/DESCR # mathopd/patches # mathopd/patches/patch-mk # mathopd/files # mathopd/files/mathopd.conf.sample # mathopd/files/md5 # echo c - mathopd mkdir -p mathopd > /dev/null 2>&1 echo x - mathopd/Makefile sed 's/^X//' >mathopd/Makefile << 'END-of-mathopd/Makefile' X# New ports collection makefile for: mathopd HTTPD X# Version required: 1.3 X# Date created: Sun Oct 31 1999 X# Whom: tobez@plab.ku.dk X# X# $FreeBSD$ X# X XDISTNAME= mathopd-1.3 XCATEGORIES= www XMASTER_SITES= http://mathop.diva.nl/dist/ \ X ftp://ftp.prima.eu.org/pub/mirrored_files/mathop.diva.nl/ X XMAINTAINER= tobez@plab.ku.dk X XWRKSRC= ${WRKDIR}/mathopd X Xpost-install: X @${INSTALL_DATA} ${FILESDIR}/mathopd.conf.sample ${PREFIX}/etc X.if !defined(NOPORTDOCS) X @${MKDIR} ${PREFIX}/share/doc/mathopd X @${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/mathopd X @${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/mathopd X @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd X.endif X @if [ ! -f ${PREFIX}/etc/rc.d/mathopd.sh ]; then \ X ${ECHO} "#! ${SH}" > ${PREFIX}/etc/rc.d/mathopd.sh; \ X ${ECHO} "[ -x ${PREFIX}/sbin/mathopd ] && ${PREFIX}/sbin/mathopd < ${PREFIX}/etc/mathopd.conf && ${ECHO} -n ' mathopd'" >> ${PREFIX}/etc/rc.d/mathopd.sh; \ X ${CHMOD} 440 ${PREFIX}/etc/rc.d/mathopd.sh; \ X fi X @${ECHO} "=====================================================================" X @${ECHO} "" X @${ECHO} "Before you start the server you must create a config file." X @${ECHO} "The easiest way to do it is to copy ${PREFIX}/etc/mathopd.conf.sample" X @${ECHO} "to ${PREFIX}/etc/mathopd.conf and edit this file to your taste." X @${ECHO} "" X @${ECHO} "After you've done with that, chmod 540 ${PREFIX}/etc/rc.d/mathopd.sh" X @${ECHO} "and run it." X @${ECHO} "" X @${ECHO} "Also do not forget to create your web hierarchy and to set its" X @${ECHO} "permissions to something secure." X @${ECHO} "" X @${ECHO} "=====================================================================" X X.include <bsd.port.mk> END-of-mathopd/Makefile echo c - mathopd/pkg mkdir -p mathopd/pkg > /dev/null 2>&1 echo x - mathopd/pkg/PLIST sed 's/^X//' >mathopd/pkg/PLIST << 'END-of-mathopd/pkg/PLIST' Xetc/mathopd.conf.sample Xetc/rc.d/mathopd.sh Xsbin/mathopd Xshare/doc/mathopd/CHANGES Xshare/doc/mathopd/COPYING Xshare/doc/mathopd/README X@dirrm share/doc/mathopd END-of-mathopd/pkg/PLIST echo x - mathopd/pkg/COMMENT sed 's/^X//' >mathopd/pkg/COMMENT << 'END-of-mathopd/pkg/COMMENT' XA very small, yet very fast HTTP server END-of-mathopd/pkg/COMMENT echo x - mathopd/pkg/DESCR sed 's/^X//' >mathopd/pkg/DESCR << 'END-of-mathopd/pkg/DESCR' XMathopd is a very small, yet very fast HTTP server for UN*X systems. X XMathopd is designed specifically to handle a large number of connections Xwith minimal fuss. It contains no unnecessary add-ons, but it does the Xtrick for most things. X XMathopd does not allocate any memory, once it has started up, and Xdoes not fork any processes (except for CGI scripts of course.) X XWWW: http://mathop.diva.nl/ X X- Anton Xtobez@plab.ku.dk END-of-mathopd/pkg/DESCR echo c - mathopd/patches mkdir -p mathopd/patches > /dev/null 2>&1 echo x - mathopd/patches/patch-mk sed 's/^X//' >mathopd/patches/patch-mk << 'END-of-mathopd/patches/patch-mk' X--- Makefile.orig Sun Oct 31 18:25:08 1999 X+++ Makefile Sun Oct 31 19:03:04 1999 X@@ -1,23 +1,7 @@ X-BIN=mathopd X-CC=gcc X-CFLAGS=-O -Wall X-CPPFLAGS= X-LDFLAGS= X-LDLIBS= X-PREFIX=/usr/local X-SBINDIR=$(PREFIX)/sbin X+PROG= mathopd X+SRCS= base64.c cgi.c config.c core.c dummy.c dump.c imap.c log.c \ X+ main.c redirect.c request.c util.c X+BINDIR?=${PREFIX}/sbin X+NOMAN= yes X X-OBJS= base64.o cgi.o config.o core.o dummy.o dump.o imap.o log.o main.o \ X- redirect.o request.o util.o X-DEPENDS=mathopd.h Makefile X- X-all: $(BIN) X-install: $(BIN) X- install $(BIN) $(SBINDIR) X-$(BIN): $(OBJS) X- $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS) X-$(OBJS): $(DEPENDS) X-.c.o: X- $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ X-clean: X- rm -f $(BIN) $(OBJS) X+.include <bsd.prog.mk> END-of-mathopd/patches/patch-mk echo c - mathopd/files mkdir -p mathopd/files > /dev/null 2>&1 echo x - mathopd/files/mathopd.conf.sample sed 's/^X//' >mathopd/files/mathopd.conf.sample << 'END-of-mathopd/files/mathopd.conf.sample' XUmask 026 X XTuning { X NumConnections 120 X BufSize 12288 X} X XUser daemon XStayRoot On X XPIDFile /tmp/mathopd/pid XLog /tmp/mathopd/log.%Y%m%d XErrorLog /tmp/mathopd/errors.%Y%m X XControl { X Symlinks On X Types { X text/plain { * } X text/css { css } X application/octet-stream { zip gz tgz exe class } X application/futuresplash { spl } X model/vrml { wrl } X application/pdf { pdf } X text/html { html htm } X image/gif { gif } X image/jpeg { jpg } X } X Specials { X Imagemap { map } X CGI { cgi } X Redirect { url } X } X External { X /usr/bin/perl { pl } X } X IndexNames { home.html index.htm index.html redirect.url } X} X XDefaultName localtoast X XServer { X Port 8080 X X Virtual { X Control { X Alias / X Location /home/www/oldclients X } X } X X Virtual { X Host localhost X Control { X Alias / X Location /home/www/localhost X } X Control { X Alias /protected X Location /home/www/localhost/protected X Realm "Protected Area" X UserFile /home/www/htpasswd X } X } X X Virtual { X Host www.domain.com X Control { X Alias / X Location /home/w/www/www.domain.com X } X Control { X Alias /~ X Location http://www2.domain.com/~ X } X } X X Virtual { X Host www3.domain.com X Control { X Alias / X Location /home/www/www3.domain.com X } X } X X Virtual { X Host www4.domain.com X Control { X Alias / X Location /home/www/www4.domain.com X } X Control { X Alias /cgi-bin X Location /home/www/www4.domain.com/cgi-bin X Specials { X CGI { * } X } X } X } X X Virtual { X Host www5.domain.com X Control { X Alias / X Location /home/www/www5.domain.com/silly.html X PathArgs On X } X Control { X Alias /private X Location /home/www/www5.domain.com/private X Access { X Deny 0/0 X Allow 127.0.0.1/32 X Allow 192.168.57.0/24 X } X } X Control { X Alias /funky X Location /home/www/www5.domain.com/funky X Refresh 300 X } X } X X} END-of-mathopd/files/mathopd.conf.sample echo x - mathopd/files/md5 sed 's/^X//' >mathopd/files/md5 << 'END-of-mathopd/files/md5' XMD5 (mathopd-1.3.tar.gz) = 718b318fc0c3737c99753aed8327aa31 END-of-mathopd/files/md5 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?199910311911.UAA38241>