head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.190 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.188 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.186 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.184 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.182 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.180 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.178 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.176 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.174 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.172 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.170 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.168 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.166 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.164 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.162 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.160 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.158 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.156 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.154 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.152 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.150 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.148 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.146 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.142 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.122 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.144 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.140 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.138 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.136 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.134 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.132 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.130 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.128 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.126 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.124 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.120 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.118 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.116 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.114 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.112 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.110 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.108 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.106 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.104 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.102 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.100 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.98 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.96 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.94 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.92 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.90 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.88 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.86 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.84 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.82 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.80 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.78 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.76 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.74 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.72 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.70 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.68 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.66 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.64 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.62 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.60 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.58 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.56 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.54 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.52 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.50 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.48 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.46 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.44 pkgsrc-2008Q1:1.6.0.42 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.40 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.38 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.36 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.34 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.32 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.30 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.28 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.26 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.24 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.22 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.20 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.18 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.16 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.14 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.12 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.10 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.8 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.6.0.4 netbsd-1-6-1-base:1.6 netbsd-1-6:1.6.0.6 netbsd-1-6-RELEASE-base:1.6 pkgviews:1.6.0.2 pkgviews-base:1.6 buildlink2:1.5.0.2 buildlink2-base:1.6 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.5 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 netbsd-1-4-RELEASE:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2002.06.16.19.10.26; author wiz; state Exp; branches; next 1.5; 1.5 date 2000.12.17.22.21.44; author jlam; state Exp; branches 1.5.2.1; next 1.4; 1.4 date 2000.07.27.12.47.34; author jlam; state Exp; branches; next 1.3; 1.3 date 2000.02.09.20.55.29; author hubertf; state Exp; branches; next 1.2; 1.2 date 99.11.21.23.03.38; author tron; state Exp; branches; next 1.1; 1.1 date 99.04.10.22.01.10; author tron; state Exp; branches 1.1.1.1; next ; 1.5.2.1 date 2002.06.23.19.04.45; author jlam; state Exp; branches; next ; 1.1.1.1 date 99.04.10.22.01.10; author tron; state Exp; branches; next ; desc @@ 1.6 log @Update to 2.23beta1, as requested in pkg/17251 by Oliver Tonnhofer. Changes since 2.21b: * Added some Microsoft MIME types (Kevin Day). * Switch htpasswd from using tmpnam to mkstemp. * Rewrote figure_mime() to do binary search. * Removed the x- from gzip and compress in mime_encodings.txt. * Added rudimentary option to set cache-control headers. * Simplified the IPv6 ifdefs. * Allow filenames with ? in them (Cameron Gregory). * Some improvements to the mmap cache - added a "panic mode" if you run out of address space, added DESIRED_MAX_MAPPED_BYTES config.h option. * Lowered OCCASIONAL_TIME from five minutes to two minutes. * Fix CGI variable AUTH_TYPE (Alexandre CHERIF). * Split clear_connection() into two routines, one which sends a possible buffered response and the other which ignores such (David Burgess). * Remove /./ in de_dotdot() (Dana Dahlstrom). * Shortened LINGER_TIME from two seconds to half a second. * Changed some write() calls to httpd_write_fully(), as suggested by Neale Pickett. * Changed the non-mmap() read() call in mmc.c to httpd_read_fully(), as suggested by Cameron Gregory. * Added an madvise(MADV_SEQUENTIAL) call in mmc.c. * Added .xhtml and .xht to mime_types.txt (suggested by Dave Hodder). * Added index.xhtml and index.xht to INDEX_NAMES (suggested by Dave Hodder). * Got rid of the custom-jiggered syslog.c, now we just use the standard system version. Also added a paragraph in the man page about the syslogd flags needed to make syslogging work from inside a chroot tree. * Added some OpenOffice MIME types (Dave Hodder). * Lowered the default DESIRED_MAX_MAPPED_FILES from 2000 to 1000. * Set up accept filters after listen() (Kris Spinka). * Preserve query string when doing a missing-slash directory redirect. * Special-case logging to '-' as stdout (Matt Armstrong). * Added -s to usage line (Pavel Janík). * Fix for security hole that exposed contents of .htpasswd in some cases (noticed by zeno@@cgisecurity.com). * Allow (and ignore) extra fields in .htpasswd files. * Added some calls to shutdown() in strategic places. * Added a timer-kill of the CGI interpose input and output process. These processes also now close the listen fd(s). * Fixed rare file descriptor leak, when we get an unknown sockaddr family (George Schlossnagle). * Put virtual hostname in non-local referer syslog (Craig Leres). * Added a P3P server privacy header setting (Henrik Schack Jensen). And lots of other bug fixes. @ text @$NetBSD$ --- Makefile.in.orig Wed Apr 3 04:49:35 2002 +++ Makefile.in @@@@ -34,7 +34,7 @@@@ # Pathname of directory to install the man page. MANDIR = @@mandir@@ # Pathname of directory to install the CGI programs. -WEBDIR = $(prefix)/www +WEBDIR = $(prefix)/share/thttpd # CONFIGURE: The group that the web directory belongs to. This is so that # the makeweb program can be installed set-group-id to that group, and make @@@@ -42,7 +42,7 @@@@ WEBGROUP = www # CONFIGURE: Directory for CGI executables. -CGIBINDIR = $(WEBDIR)/cgi-bin +CGIBINDIR = $(prefix)/libexec/cgi-bin # You shouldn't need to edit anything below here. @@@@ -50,7 +50,7 @@@@ CCOPT = @@V_CCOPT@@ DEFS = @@DEFS@@ INCLS = -I. -CFLAGS = $(CCOPT) $(DEFS) $(INCLS) +CFLAGS += $(CCOPT) $(DEFS) $(INCLS) LDFLAGS = @@LDFLAGS@@ LIBS = @@LIBS@@ NETLIBS = @@V_NETLIBS@@ @@@@ -109,12 +109,12 @@@@ install: installthis install-man installsubdirs installthis: - -mkdir -p $(DESTDIR)$(BINDIR) - $(INSTALL) -m 555 -o bin -g bin thttpd $(DESTDIR)$(BINDIR) + $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR) + $(BSD_INSTALL_PROGRAM) thttpd $(DESTDIR)$(BINDIR) install-man: - -mkdir -p $(DESTDIR)$(MANDIR)/man8 - $(INSTALL) -m 444 -o bin -g bin thttpd.8 $(DESTDIR)$(MANDIR)/man8 + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(MANDIR)/man8 + $(BSD_INSTALL_MAN) thttpd.8 $(DESTDIR)$(MANDIR)/man8 installsubdirs: for i in $(SUBDIRS) ; do ( \ @ 1.5 log @Honor CFLAGS passed in from environment during build. Improve the INSTALL script and add a DEINSTALL script in handling the config file. @ text @d3 1 a3 1 --- Makefile.in.orig Tue Jul 4 12:21:32 2000 d32 1 a32 1 @@@@ -111,10 +111,10 @@@@ d36 1 d38 1 d42 1 d44 1 @ 1.5.2.1 log @Merge from pkgsrc-current to buildlink2 branch. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2002/06/16 19:10:26 wiz Exp $ d3 1 a3 1 --- Makefile.in.orig Wed Apr 3 04:49:35 2002 d32 1 a32 1 @@@@ -109,12 +109,12 @@@@ a35 1 - -mkdir -p $(DESTDIR)$(BINDIR) a36 1 + $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR) a39 1 - -mkdir -p $(DESTDIR)$(MANDIR)/man8 a40 1 + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(MANDIR)/man8 @ 1.4 log @Put files in ${PREFIX}/share/thttpd, not ${PREFIX}/share/www. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2000/02/09 20:55:29 hubertf Exp $ d3 2 a4 2 --- Makefile.in.BAK Wed Feb 9 21:05:49 2000 +++ Makefile.in Wed Feb 9 21:06:50 2000 d23 9 @ 1.3 log @Update to V2.15. Main reason: IPv6. Changes: New in version 2.15: * Use standard isxdigit macro instead of is_hexit routine. * Portability fix for Debian, which lacks gai_strerror(). * Fix for .htpasswd authorization, broken by 2.14's custom error pages change. New in version 2.14: * Fix to non-local referer code - it was trying to dereference a null pointer under some circumstances. * Fix to If-Modified-Since - some leap year problems. * Rewrote match() - it was using a whole lot of CPU time for patterns with lots of |'s, such as those used by the new non-local-referer filtering. * Fix to host lookup code for -h flag. * Fix custom error pages to work with 401 Unauthorized. * Removed unused variable. New in version 2.13: * Portability fix for fdwatch on systems with poll() but not select(). * Renamed nph-redirect to redirect, now that thttpd does header parsing. * Always chdir to / after a chroot. * Some minor de-linting changes. * Revived code that closes stdin/stdout/stderr, after adding a fix in the CGI code to prevent descriptors from getting screwed up. * Bugfix for CGI header parsing - if the CGI was sending binary data (e.g. images), the result could get truncated or corrupted. * Disallow ".." listing of virtual host directory. * Revised snprintf portability fix. * Rearranged the hc initialization so it's all in one place. * New IPv6 code from KIKUCHI Takahiro. * New non-local referer filtering code from Craig Leres. * New custom error pages code from Catalin Ionescu. New in version 2.12: * Better heuristic for deciding between select() and poll(). * Added Red Hat RPM spec file. New in version 2.11: * Use poll() instead of select() when favorable. * Do lazy allocation of part of the connection data structure, to save on memory now that we can have thousands of simultaneous connections. * Some speed optimizations. * Add HTTP_HOST to CGI environment. * Bugfix for rare uninitialized variable. New in version 2.10: * Bugfix for CGI header parsing. * Call setlogin() if it's available. @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 +WEBDIR = $(prefix)/share/www @ 1.2 log @Update "thttpd" package to version 2.05 using patches supplied by Michael Santos in PR pkg/8801. Chances since version 2.04: - New el-cheapo virtual hosting feature. - Assorted bug fixes - non-anchored wildcard matching, truncated CGI output, throttling, authorization cache, daemonization, date-header parsing. - Option to write pid to a file, re-open log file on SIGHUP. - Now looks for index files from a list, instead of only index.html. - Simple config file. @ text @d3 2 a4 2 --- Makefile.in.orig Mon Oct 11 20:45:38 1999 +++ Makefile.in Sun Nov 21 23:52:46 1999 @ 1.1 log @Initial revision @ text @d3 33 a35 9 --- extras/Makefile.in.orig Sun Apr 4 17:14:00 1999 +++ extras/Makefile.in Sun Apr 4 17:14:19 1999 @@@@ -68,6 +68,4 @@@@ rm -f $(BINDIR)/makeweb $(BINDIR)/htpasswd $(BINDIR)/syslogtocern cp makeweb $(BINDIR)/makeweb - chgrp $(WEBGROUP) $(BINDIR)/makeweb - chmod 2755 $(BINDIR)/makeweb cp htpasswd $(BINDIR)/htpasswd cp syslogtocern $(BINDIR)/syslogtocern @ 1.1.1.1 log @New "thttpd-2.04" package supplied by Michael Santos in PR pkg/7323: tiny/turbo/throttling HTTP server @ text @@