summaryrefslogtreecommitdiff
path: root/www/bozohttpd/patches
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2002-08-23 08:37:24 +0000
committermrg <mrg@pkgsrc.org>2002-08-23 08:37:24 +0000
commit8c5e0252cd257bde26a15095dd35c5c48946f12c (patch)
tree8502ab0fd7ea8f9a7f5922891025dc1b235bce69 /www/bozohttpd/patches
parent9289b01b8fea37a8bc8f60735b60ddde3d376401 (diff)
downloadpkgsrc-8c5e0252cd257bde26a15095dd35c5c48946f12c.tar.gz
update to bozohttpd 5.14. changes include:
o allow -X mode to work for "/" o work on systems without MADV_SEQUENTIAL o make a local cut-down copy of "queue.h" (fixes linux & solaris support at the very least) o portability fixes for pre-ipv6 socket api systems (eg, solaris 7) o portability fixes for missing _PATH_DEFPATH, LOG_FTP and __progname o better documentation on virtual host support
Diffstat (limited to 'www/bozohttpd/patches')
-rw-r--r--www/bozohttpd/patches/patch-ab17
-rw-r--r--www/bozohttpd/patches/patch-ac51
2 files changed, 13 insertions, 55 deletions
diff --git a/www/bozohttpd/patches/patch-ab b/www/bozohttpd/patches/patch-ab
index 3a6e51eec89..0ada442a2d8 100644
--- a/www/bozohttpd/patches/patch-ab
+++ b/www/bozohttpd/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.10 2002/07/10 10:48:04 mrg Exp $
+$NetBSD: patch-ab,v 1.11 2002/08/23 08:37:25 mrg Exp $
---- bozohttpd.8.in.orig Sat Sep 22 20:10:00 2001
-+++ bozohttpd.8.in
-@@ -172,8 +169,8 @@
+--- bozohttpd.8.in.orig Fri Aug 23 15:43:44 2002
++++ bozohttpd.8.in Fri Aug 23 15:48:04 2002
+@@ -197,8 +197,8 @@
.Xr inetd.conf 5
entry would be:
.Bd -literal
@@ -13,3 +13,12 @@ $NetBSD: patch-ab,v 1.10 2002/07/10 10:48:04 mrg Exp $
.Ed
.Pp
This would serve web pages from
+@@ -218,7 +218,7 @@
+ .Pp
+ To configure set of virtual hosts, one would use an entry like:
+ .Bd -literal
+-www stream tcp nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd -v /var/vroot /var/www
++www stream tcp nowait:600 httpd @PREFIX@/libexec/bozohttpd bozohttpd -v /var/vroot /var/www
+ .Ed
+ .Pp
+ and inside
diff --git a/www/bozohttpd/patches/patch-ac b/www/bozohttpd/patches/patch-ac
deleted file mode 100644
index 20ead1b551e..00000000000
--- a/www/bozohttpd/patches/patch-ac
+++ /dev/null
@@ -1,51 +0,0 @@
-$NetBSD: patch-ac,v 1.7 2002/08/05 16:37:50 mrg Exp $
-
-Index: bozohttpd.c
-===================================================================
-RCS file: /home/towers/mrg/cvsroot/eterna/bozohttpd/bozohttpd.c,v
-retrieving revision 1.45
-retrieving revision 1.46
-diff -p -c -r1.45 -r1.46
-*** bozohttpd.c 2002/08/04 15:21:25 1.45
---- bozohttpd.c 2002/08/05 16:28:26 1.46
-***************
-*** 1,4 ****
-! /* $eterna: bozohttpd.c,v 1.45 2002/08/04 15:21:25 mrg Exp $ */
-
- /*
- * Copyright (c) 1997, 1998, 1999, 2000, 2001 Matthew R. Green
---- 1,4 ----
-! /* $eterna: bozohttpd.c,v 1.46 2002/08/05 16:28:26 mrg Exp $ */
-
- /*
- * Copyright (c) 1997, 1998, 1999, 2000, 2001 Matthew R. Green
-*************** process_request(request)
-*** 900,906 ****
- else if (errno == ENOENT) {
- #ifndef NO_DIRINDEX_SUPPORT
- if (isindex && Xflag) {
-! file[strlen(file) - strlen(index_html)] = '\0';
- debug((DEBUG_FAT, "trying dir index (%s)",
- file));
- directory_index(request, file);
---- 900,909 ----
- else if (errno == ENOENT) {
- #ifndef NO_DIRINDEX_SUPPORT
- if (isindex && Xflag) {
-! if (strlen(file) <= strlen(index_html))
-! (const char *)file = ".";
-! else
-! file[strlen(file) - strlen(index_html)] = '\0';
- debug((DEBUG_FAT, "trying dir index (%s)",
- file));
- directory_index(request, file);
-*************** directory_index(request, dirname)
-*** 972,977 ****
---- 975,981 ----
- char buf[MAXPATHLEN];
- int l;
-
-+ debug((DEBUG_FAT, "directory_index: dirname ``%s''", dirname));
- if (stat(dirname, &sb) < 0 ||
- (dp = opendir(dirname)) == NULL) {
- if (errno == EPERM)