1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/mathopd/Makefile
Anton Berezin 31cb98f4dc 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.
2007-07-27 13:39:52 +00:00

34 lines
993 B
Makefile

# New ports collection makefile for: mathopd HTTPD
# Date created: Sun Oct 31 1999
# Whom: tobez@plab.ku.dk
#
# $FreeBSD$
#
PORTNAME= mathopd
PORTVERSION= 1.5p6
CATEGORIES= www
MASTER_SITES= http://www.mathopd.org/dist/
MAINTAINER= tobez@FreeBSD.org
COMMENT= A very small, yet very fast HTTP server
CFLAGS+= -DFREEBSD_SENDFILE
MAKE_ARGS= CFLAGS="${CFLAGS}"
DOCS= CHANGES cgi.txt config.txt running.txt sample.cfg syntax.txt
post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${PREFIX}/etc/mathopd.conf.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mathopd
@${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/mathopd
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd
.for df in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${df} ${PREFIX}/share/doc/mathopd
.endfor
.endif
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${PREFIX}/etc/rc.d/mathopd.sh-dist
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.mk>