mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Initial import of mathopd version 1.3.
A very samll, yet very fast HTTP server. PR: 14624 Submitted by: Anton Berezin <tobez@plab.ku.dk>
This commit is contained in:
parent
730305f987
commit
98f30589e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=23388
45
www/mathopd/Makefile
Normal file
45
www/mathopd/Makefile
Normal file
@ -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>
|
1
www/mathopd/distinfo
Normal file
1
www/mathopd/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mathopd-1.3.tar.gz) = 718b318fc0c3737c99753aed8327aa31
|
123
www/mathopd/files/mathopd.conf.sample
Normal file
123
www/mathopd/files/mathopd.conf.sample
Normal file
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
32
www/mathopd/files/patch-aa
Normal file
32
www/mathopd/files/patch-aa
Normal file
@ -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>
|
1
www/mathopd/pkg-comment
Normal file
1
www/mathopd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A very small, yet very fast HTTP server
|
13
www/mathopd/pkg-descr
Normal file
13
www/mathopd/pkg-descr
Normal file
@ -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
|
7
www/mathopd/pkg-plist
Normal file
7
www/mathopd/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user