2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2005/04/11 21:48:02 tv Exp $
|
1999-04-11 00:01:10 +02:00
|
|
|
|
Update to 2.25b, provided by Michael Santos in PR pkg/24128.
Changes:
New in version 2.25b:
* Move fdwatch initialization before the chroot, so that
/dev/poll can work.
* Multiple fdwatch cleanups and fixes (Adam Zell).
New in version 2.25:
* Prohibit "Host: ." and "Host: .." (David Leadbeater).
* Don't free memory prematurely on SIGUSR1 (A.D.F.).
* Use the specified charset in directory listings and errors
(Jonas Ohlsson).
* Lowered THROTTLE_TIME from 60 seconds to 2 seconds, plus more
aggressive computation of sending rate, to improve throttle
reaction time (E Frank Ball).
* Added code to redistribute the throttled bandwidth fairly among
the currently sending connections.
* Some more throttling changes that smooth things out a lot.
* Added an experimental limitation on the number of simultaneous CGIs.
* Chown the log file when starting as root, so that it can later be
re-opened when running as nobody (or whatever user you configure).
Also tweak the logfile pathname so that it still works inside a
chroot tree.
* Make sure URL paths begin with a slash.
* Generate multiple MIME encodings in the correct order, and with the
correct separator.
* Ignore EINTR on read() and write().
* Fix error in httpd_read_fully() and httpd_write_fully() that could
cause incorrect data to be read or written (Daniel Jensen).
* Don't attempt to double-free a file descriptor if a connection times
out while it is paused for throttling.
* Save and restore errno in signal handlers.
* The non-local referer check is no longer fooled by URLs with query
strings.
* Simplified handling of HAVE_INT64T (Trisk). If this causes problems,
e.g. if there are still systems which don't have "long long", we can
back out the change.
* Keep a list of free connection structs, instead of doing linear search
to find a free one (Adam Zell).
* Added config.h option FLUSH_LOG_EVERY_TIME - if it's turned off, the
log does not get fflushed after each request (Adam Zell).
* Multiple robustness improvements to the fdwatch module (Adam Zell).
* Added /dev/poll support to fdwatch (Adam Zell).
* Automatically add no-cache control header on error responses.
2004-01-17 13:55:05 +01:00
|
|
|
DISTNAME= thttpd-2.25b
|
2004-12-28 03:47:40 +01:00
|
|
|
PKGREVISION= 2
|
1999-04-11 00:01:10 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.acme.com/software/thttpd/
|
1999-12-15 15:48:48 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sitedrivenby.gif
|
1999-04-11 00:01:10 +02:00
|
|
|
|
|
|
|
MAINTAINER= mike@ethmoid.org
|
1999-11-22 00:03:37 +01:00
|
|
|
HOMEPAGE= http://www.acme.com/software/thttpd/
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Tiny/turbo/throttling HTTP server
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2000-07-27 14:42:08 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2004-02-22 19:34:54 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_PKGINSTALL= yes
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2000-02-09 21:55:27 +01:00
|
|
|
# Note: this pkg auto-detects IPv6 without regarding USE_INET6.
|
2000-04-07 12:11:54 +02:00
|
|
|
BUILD_DEFS+= USE_INET6
|
2004-09-14 10:32:16 +02:00
|
|
|
# thttpd syslogs at level LOG_DAEMON by default
|
|
|
|
# change this to your preferred syslog level
|
|
|
|
THTTPD_LOG_FACILITY?= LOG_DAEMON
|
|
|
|
BUILD_DEFS+= THTTPD_LOG_FACILITY
|
2000-02-09 21:55:27 +01:00
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples
|
2001-11-25 19:59:45 +01:00
|
|
|
CONF_FILES= ${EGDIR}/thttpd.conf ${PKG_SYSCONFDIR}/thttpd.conf
|
2001-11-21 16:44:22 +01:00
|
|
|
RCD_SCRIPTS= thttpd
|
2001-07-13 09:09:17 +02:00
|
|
|
|
2004-02-22 19:34:54 +01:00
|
|
|
INSTALLATION_DIRS= share/thttpd
|
|
|
|
|
2000-07-27 14:42:08 +02:00
|
|
|
pre-configure:
|
2000-02-09 21:55:27 +01:00
|
|
|
${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thtpasswd.1
|
2000-07-27 14:42:08 +02:00
|
|
|
${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thtpasswd.c
|
2002-06-16 21:12:13 +02:00
|
|
|
for FILE in thttpd.8 extras/Makefile.in extras/thtpasswd.c; do \
|
|
|
|
${MV} -f ${WRKSRC}/$${FILE} ${WRKSRC}/$${FILE}.bak; \
|
2002-05-12 16:47:28 +02:00
|
|
|
${SED} -e "s,\.htpasswd,XXX,g;s,htpasswd,thtpasswd,g;s,XXX,.htpasswd,g" \
|
2002-06-16 21:12:13 +02:00
|
|
|
${WRKSRC}/$${FILE}.bak > ${WRKSRC}/$${FILE}; \
|
2000-07-27 14:42:08 +02:00
|
|
|
done
|
2004-09-14 10:32:16 +02:00
|
|
|
${MV} -f ${WRKSRC}/config.h ${WRKSRC}/config.h.bak
|
|
|
|
${SED} -e "s/LOG_DAEMON/${THTTPD_LOG_FACILITY}/" ${WRKSRC}/config.h.bak \
|
|
|
|
> ${WRKSRC}/config.h
|
2000-07-27 14:42:08 +02:00
|
|
|
|
|
|
|
post-build:
|
2004-02-22 19:34:54 +01:00
|
|
|
@for FILE in thttpd.conf; do \
|
|
|
|
${SED} ${FILES_SUBST_SED} \
|
2002-06-16 21:12:13 +02:00
|
|
|
${FILESDIR}/$${FILE} > ${WRKDIR}/$${FILE}; \
|
2000-07-27 14:42:08 +02:00
|
|
|
done
|
1999-12-15 15:48:48 +01:00
|
|
|
|
|
|
|
post-install:
|
2000-07-27 14:42:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/thttpd.conf ${PREFIX}/share/examples
|
2000-07-27 14:47:33 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.html ${PREFIX}/share/thttpd
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/thttpd
|
1999-04-11 00:01:10 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|