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.)
===> The following configuration options are available for mathopd-1.5p8_1:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
Before you start the server you must create a config file.
The easiest way to do it is to copy /usr/local/etc/mathopd.conf.sample
to /usr/local/etc/mathopd.conf and edit this file to your taste.
After you've done with that, chmod 540 /usr/local/etc/rc.d/mathopd.sh
and run it.
Also do not forget to create your web hierarchy and to set its
permissions to something secure.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
www/mathopd: Fix build with default PIE
Mathopd Makefile passed CFLAGS in MAKE_ENV variable. This caused CFLAGS
processing in bsd.prog.mk to be ignored, which in turn left non-PIE CFLAGS
from sys.mk and LDFLAGS with PIE enabled from bsd.prog.mk.
PR: 253275 [exp-run]
Submitted by: Dawid Gorecki <dgr@semihalf.com>
Approved by: lwhsu, Michiel Boland [maintainer]
Differential Revision: https://reviews.freebsd.org/D28793
Fix build with src r354909 applied.
The referenced change made NO_INSTALLLIB, NO_MAN, and NO_PROFILE into
errors causing these ports that declare them and use the FreeBSD make
infrastructure as part of their build to fail.
When the offending variables occur in a BSD Makefile, NO_MAN becomes
MAN= and NO_INSTALLLIB and NO_PROFILE become MK_INSTALLLIB=no and
MK_PROFILE=no respectively. When declared in the environment they
become WITHOUT_<FOO>.
- update to 1.5p8
Previous version crashes if you send a HTTP/1.0 request with no Host header.
PR: 164737
Submitted by: Michiel Boland <michiel at boland dot org> (maintainer)
- update to 1.5p7 (fix directory traversal in special case)
- while i'm here, fix couple of whitespaces and NOMAN -> NO_MAN warning
PR: 164717
Submitted by: Michiel Boland <michiel at boland dot org>
Remove more tags from pkg-descr files fo the form:
- Name
em@i.l
or variations thereof. While I'm here also fix some whitespace and other
formatting errors, including moving WWW: to the last line in the file.
Update to 1.5p6.
Changes (as taken from
16461.82.215.41.237.1185016981.squirrel@webmail.xs4all.nl):
1) On FreeBSD there was a rather embarrassing bug when sendfile was used,
which manifests itself in bogus 'premature end of file' messages in the
error log. This should now be fixed.
2) There were some stupid mistakes in the way in which Content-Length, and
Range headers were computed and/or parsed. This had to do with the fact
that size_t is 32 bit on most 32-bit platforms, but file sizes can be
much bigger.
3) Mathopd would refuse to open files larger than 2 GB on Solaris or Linux.
This should now be fixed, provided you follow the instructions in the
Makefile.
4) The SanitizePath feature (the one that substitutes // for /, etc. in
request URIs) has been retrofitted into 1.5.
5) Some cosmetic changes were made to the Makefile in 1.6. These were
merged also.
Really build with sendfile(2) support (fix "CFLAGS from make.conf
overwrites CFLAGS in the environment" issue). Bump portrevision.
Noticed by: Piotr Rybicki <p.rybicki@point-group.pl>
As threatened on freebsd-ports: all startup scripts know about the two options
`start' and `stop' now (unless I have forgotten any). This allows us to call
the scripts from /etc/rc.shutdown with the correct option.