head 1.12; access; symbols pkgsrc-2026Q1:1.12.0.162 pkgsrc-2026Q1-base:1.12 pkgsrc-2025Q4:1.12.0.160 pkgsrc-2025Q4-base:1.12 pkgsrc-2025Q3:1.12.0.158 pkgsrc-2025Q3-base:1.12 pkgsrc-2025Q2:1.12.0.156 pkgsrc-2025Q2-base:1.12 pkgsrc-2025Q1:1.12.0.154 pkgsrc-2025Q1-base:1.12 pkgsrc-2024Q4:1.12.0.152 pkgsrc-2024Q4-base:1.12 pkgsrc-2024Q3:1.12.0.150 pkgsrc-2024Q3-base:1.12 pkgsrc-2024Q2:1.12.0.148 pkgsrc-2024Q2-base:1.12 pkgsrc-2024Q1:1.12.0.146 pkgsrc-2024Q1-base:1.12 pkgsrc-2023Q4:1.12.0.144 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.142 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.12.0.140 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.12.0.138 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.12.0.136 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.134 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.12.0.132 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.12.0.130 pkgsrc-2022Q1-base:1.12 pkgsrc-2021Q4:1.12.0.128 pkgsrc-2021Q4-base:1.12 pkgsrc-2021Q3:1.12.0.126 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.124 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.12.0.122 pkgsrc-2021Q1-base:1.12 pkgsrc-2020Q4:1.12.0.120 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.12.0.118 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.114 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.94 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.116 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.112 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.12.0.110 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.108 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.106 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.104 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.12.0.102 pkgsrc-2018Q2-base:1.12 pkgsrc-2018Q1:1.12.0.100 pkgsrc-2018Q1-base:1.12 pkgsrc-2017Q4:1.12.0.98 pkgsrc-2017Q4-base:1.12 pkgsrc-2017Q3:1.12.0.96 pkgsrc-2017Q3-base:1.12 pkgsrc-2017Q2:1.12.0.92 pkgsrc-2017Q2-base:1.12 pkgsrc-2017Q1:1.12.0.90 pkgsrc-2017Q1-base:1.12 pkgsrc-2016Q4:1.12.0.88 pkgsrc-2016Q4-base:1.12 pkgsrc-2016Q3:1.12.0.86 pkgsrc-2016Q3-base:1.12 pkgsrc-2016Q2:1.12.0.84 pkgsrc-2016Q2-base:1.12 pkgsrc-2016Q1:1.12.0.82 pkgsrc-2016Q1-base:1.12 pkgsrc-2015Q4:1.12.0.80 pkgsrc-2015Q4-base:1.12 pkgsrc-2015Q3:1.12.0.78 pkgsrc-2015Q3-base:1.12 pkgsrc-2015Q2:1.12.0.76 pkgsrc-2015Q2-base:1.12 pkgsrc-2015Q1:1.12.0.74 pkgsrc-2015Q1-base:1.12 pkgsrc-2014Q4:1.12.0.72 pkgsrc-2014Q4-base:1.12 pkgsrc-2014Q3:1.12.0.70 pkgsrc-2014Q3-base:1.12 pkgsrc-2014Q2:1.12.0.68 pkgsrc-2014Q2-base:1.12 pkgsrc-2014Q1:1.12.0.66 pkgsrc-2014Q1-base:1.12 pkgsrc-2013Q4:1.12.0.64 pkgsrc-2013Q4-base:1.12 pkgsrc-2013Q3:1.12.0.62 pkgsrc-2013Q3-base:1.12 pkgsrc-2013Q2:1.12.0.60 pkgsrc-2013Q2-base:1.12 pkgsrc-2013Q1:1.12.0.58 pkgsrc-2013Q1-base:1.12 pkgsrc-2012Q4:1.12.0.56 pkgsrc-2012Q4-base:1.12 pkgsrc-2012Q3:1.12.0.54 pkgsrc-2012Q3-base:1.12 pkgsrc-2012Q2:1.12.0.52 pkgsrc-2012Q2-base:1.12 pkgsrc-2012Q1:1.12.0.50 pkgsrc-2012Q1-base:1.12 pkgsrc-2011Q4:1.12.0.48 pkgsrc-2011Q4-base:1.12 pkgsrc-2011Q3:1.12.0.46 pkgsrc-2011Q3-base:1.12 pkgsrc-2011Q2:1.12.0.44 pkgsrc-2011Q2-base:1.12 pkgsrc-2011Q1:1.12.0.42 pkgsrc-2011Q1-base:1.12 pkgsrc-2010Q4:1.12.0.40 pkgsrc-2010Q4-base:1.12 pkgsrc-2010Q3:1.12.0.38 pkgsrc-2010Q3-base:1.12 pkgsrc-2010Q2:1.12.0.36 pkgsrc-2010Q2-base:1.12 pkgsrc-2010Q1:1.12.0.34 pkgsrc-2010Q1-base:1.12 pkgsrc-2009Q4:1.12.0.32 pkgsrc-2009Q4-base:1.12 pkgsrc-2009Q3:1.12.0.30 pkgsrc-2009Q3-base:1.12 pkgsrc-2009Q2:1.12.0.28 pkgsrc-2009Q2-base:1.12 pkgsrc-2009Q1:1.12.0.26 pkgsrc-2009Q1-base:1.12 pkgsrc-2008Q4:1.12.0.24 pkgsrc-2008Q4-base:1.12 pkgsrc-2008Q3:1.12.0.22 pkgsrc-2008Q3-base:1.12 cube-native-xorg:1.12.0.20 cube-native-xorg-base:1.12 pkgsrc-2008Q2:1.12.0.18 pkgsrc-2008Q2-base:1.12 cwrapper:1.12.0.16 pkgsrc-2008Q1:1.12.0.14 pkgsrc-2008Q1-base:1.12 pkgsrc-2007Q4:1.12.0.12 pkgsrc-2007Q4-base:1.12 pkgsrc-2007Q3:1.12.0.10 pkgsrc-2007Q3-base:1.12 pkgsrc-2007Q2:1.12.0.8 pkgsrc-2007Q2-base:1.12 pkgsrc-2007Q1:1.12.0.6 pkgsrc-2007Q1-base:1.12 pkgsrc-2006Q4:1.12.0.4 pkgsrc-2006Q4-base:1.12 pkgsrc-2006Q3:1.12.0.2 pkgsrc-2006Q3-base:1.12 pkgsrc-2006Q2:1.11.0.2 pkgsrc-2006Q2-base:1.11 pkgsrc-2006Q1:1.10.0.20 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.18 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.10.0.16 pkgsrc-2005Q3-base:1.10 pkgsrc-2005Q2:1.10.0.14 pkgsrc-2005Q2-base:1.10 pkgsrc-2005Q1:1.10.0.12 pkgsrc-2005Q1-base:1.10 pkgsrc-2004Q4:1.10.0.10 pkgsrc-2004Q4-base:1.10 pkgsrc-2004Q3:1.10.0.8 pkgsrc-2004Q3-base:1.10 pkgsrc-2004Q2:1.10.0.6 pkgsrc-2004Q2-base:1.10 pkgsrc-2004Q1:1.10.0.4 pkgsrc-2004Q1-base:1.10 pkgsrc-2003Q4:1.10.0.2 pkgsrc-2003Q4-base:1.10 netbsd-1-6:1.9.0.4 netbsd-1-6-RELEASE-base:1.9 buildlink2-base:1.7 buildlink2:1.7.0.2 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.3; locks; strict; comment @# @; 1.12 date 2006.09.26.13.48.43; author abs; state Exp; branches; next 1.11; 1.11 date 2006.04.11.08.10.41; author joerg; state Exp; branches; next 1.10; 1.10 date 2002.08.19.22.03.06; author fredb; state dead; branches; next 1.9; 1.9 date 2002.07.25.15.56.20; author fredb; state Exp; branches; next 1.8; 1.8 date 2002.07.16.14.28.07; author fredb; state dead; branches; next 1.7; 1.7 date 2002.05.14.15.37.20; author fredb; state Exp; branches 1.7.2.1; next 1.6; 1.6 date 2002.04.25.10.43.27; author fredb; state dead; branches; next 1.5; 1.5 date 2002.03.23.22.48.09; author fredb; state Exp; branches; next 1.4; 1.4 date 2001.08.18.20.04.09; author fredb; state dead; branches; next 1.3; 1.3 date 2001.04.22.06.44.40; author fredb; state Exp; branches; next 1.2; 1.2 date 2000.02.16.00.24.41; author itohy; state dead; branches; next 1.1; 1.1 date 99.11.30.03.53.30; author itohy; state Exp; branches; next ; 1.7.2.1 date 2002.05.14.15.37.20; author jlam; state dead; branches; next 1.7.2.2; 1.7.2.2 date 2002.06.23.19.04.49; author jlam; state Exp; branches; next ; desc @@ 1.12 log @Update www/wwwoffle from 2.8e to 2.9a - from PR/34532 by Marko Schutz Changelog runs to over 1000 lines @ text @$NetBSD: patch-ab,v 1.11 2006/04/11 08:10:41 joerg Exp $ --- conf/Makefile.in.orig 2006-04-10 16:42:27.000000000 +0000 +++ conf/Makefile.in @@@@ -23,7 +23,7 @@@@ SHELL=/bin/sh prefix=@@prefix@@ SPOOLDIR=$(DESTDIR)@@SPOOLDIR@@ -CONFDIR=$(DESTDIR)@@CONFDIR@@ +CONFDIR=$(DESTDIR)$(prefix)/share/examples/wwwoffle REAL_SPOOLDIR=@@SPOOLDIR@@ REAL_CONFDIR=@@CONFDIR@@ @ 1.11 log @Correctly use config file framework for wwwoffle.conf, also move it under share/examples/wwwoffle like all other packages do. Bump revision. @ text @d1 1 a1 1 $NetBSD$ a13 8 @@@@ -45,6 +45,7 @@@@ compile : conf-file ######## INSTALLATION ######## install : compile + sed -e 's%SPOOLDIR%$(REAL_SPOOLDIR)%' -e 's%CONFDIR%$(REAL_CONFDIR)%' < wwwoffle.conf > wwwoffle.conf.install [ -x $(CONFDIR) ] || $(INSTALL) -d -m 750 $(CONFDIR) @@[ ! -f $(DESTDIR)/etc/wwwoffle.conf ] || \ @ 1.10 log @Update to version 2.7d. From the NEWS file: Bug Fixes: Discard POST/PUT requests that have negative content-lengths. Make the CanonicaliseHost() function robust to bad IP addresses. Fix some memory leaks, free some unfreed memory. Don't give socket error using '-f' option. Fix compilation on Cygwin. Fix IPv6 compilation on Solaris 9. Bug fix for v2.7c Cookie change. Don't replace '//' in a URL path with '/'. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.9 2002/07/25 15:56:20 fredb Exp $ d3 4 a6 5 --- src/ftp.c.orig Sun Jun 23 10:04:08 2002 +++ src/ftp.c @@@@ -365,8 +365,6 @@@@ return(msg); } d8 3 a10 3 - free(path); - /* Change directory again to see if file is a dir. */ d12 4 a15 4 if(file) @@@@ -824,6 +822,7 @@@@ nbuffer=buffer?strlen(buffer):0; nread=0; nbuffertail=buffertail?strlen(buffertail):0; nreadtail=0; d17 5 a21 4 + free(path); free(str); return(msg); @ 1.9 log @In FTP_Request(), don't free "path" until we're really done with it, as "file" is in "path"'s allocation. This fixes a bug where the server task would randomly try to acces a file as a directory, and fail. Bump PKGREVISION, as this was a fairly serious bug. @ text @d1 1 a1 1 $NetBSD$ @ 1.8 log @Update to 2.7c. Straight from the NEWS file: Bug Fixes: Install two DLLs for the Win32 version. Don't crash for HTTP servers that send headers prefixed with whitespace. Make the "edit selected entry" option work. Don't write uncompressed data to the cache with a header saying it is compressed. Be more lenient in detecting spiders that cannot make requests. The wwwoffle-tools programs now handle dir names as if they had http:// in front. Disallow wwwoffle requests for protocols that WWWOFFLE does not handle. Use the command line config filename in error messages. Fix to allow compilation on SGI IRIX. Handle XHTML style tags when modifying HTML. Updated setuid/setgid code. Some memory leaks removed and potential crashes removed due to using lint). New Features: Split up Set-Cookie headers since browsers can't handle them. Don't request deflated data since WWWOFFLE and servers don't agree on format. Added a form on the monitor options page to stop monitoring a URL. The confirm-requests option now asks for confirmation for page reloads. Documentation: Update FAQ to reference privoxy as well as JunkBuster. Describe how to modify htdig templates to work with WWWOFFLE. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.7 2002/05/14 15:37:20 fredb Exp $ d3 5 a7 5 --- src/headbody.c.orig Sat Apr 13 09:45:24 2002 +++ src/headbody.c @@@@ -205,7 +205,7 @@@@ { /* Append text to the last header line */ d9 13 a21 5 - if(!head->key[head->n-1]) + if(head->n==0 || !head->key[head->n-1]) return; /* weird: there must be a last header... */ head->size+=strlen(val); @ 1.7 log @Don't core just because a silly server, like my 3com [TM] Lan Modem, puts leading white space at the beginning of the very first header line. (Leading blanks are supposed to signify a continuation of the previous header line, but for the "server:" line, there aren't any previous lines, so who knows why they do that.) This patch was suggested by Andrew M. Bishop, "wwwoffle"'s author and maintainer. Don't know if it's going to be in the next release, or not. @ text @d1 1 a1 1 $NetBSD$ @ 1.7.2.1 log @file patch-ab was added on branch buildlink2 on 2002-06-23 19:04:49 +0000 @ text @d1 13 @ 1.7.2.2 log @Merge from pkgsrc-current to buildlink2 branch. @ text @a0 13 $NetBSD: patch-ab,v 1.7.2.1 2002/06/23 19:04:49 jlam Exp $ --- src/headbody.c.orig Sat Apr 13 09:45:24 2002 +++ src/headbody.c @@@@ -205,7 +205,7 @@@@ { /* Append text to the last header line */ - if(!head->key[head->n-1]) + if(head->n==0 || !head->key[head->n-1]) return; /* weird: there must be a last header... */ head->size+=strlen(val); @ 1.6 log @Update wwwoffle to 2.7b (from NEWS): Bug Fixes: Ensure that only one argument is given to wwwoffle -o or -O. Some more version 2.7 documentation updates. Fix crash using 'wwwoffle -O|-o|-put|-post '. Put refresh URLs in the outgoing directory with correct URL. Delete auto-generated files in Makefile before re-generating. Choosing 'edit selected item' in configuration pages shows current values. Fix potential crash with wwwoffle-hash. Put a DESTDIR variable in Makefile for easier installation. Fix parsing IPv6 addresses in audit-usage.pl script. Makefile change for FreeBSD make. Bug fix for the Alias section of the config file. Fix Makefile for Win32. New Features: Allow CGI scripts to be used with the built-in web server. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.5 2002/03/23 22:48:09 fredb Exp $ d3 5 a7 5 --- src/parse.c.orig Sun Jan 20 04:54:12 2002 +++ src/parse.c @@@@ -208,7 +208,8 @@@@ else strcat(url,"?"); d9 5 a13 6 - sprintf(url+strlen(url),"!%s:%s.%08lx",(*request_head)->method,MakeHash((*request_body)->content),time(NULL)); + if (snprintf(url+strlen(url),40,"!%s:%s.%08lx",(*request_head)->method,MakeHash((*request_body)->content),time(NULL)) >= 40) + {free(url);return(NULL);} } return(url); @ 1.5 log @Fix sprintf() overflow for long urls: sprintf() -> snprintf(). @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @This patch is no longer needed -- the tools now take an absolute path to be a "localhost" URL. [Per Andrew M. Bishop, wwwoffle's author.] @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2001/04/22 06:44:40 fredb Exp $ d3 5 a7 13 --- config.c.orig Sun Apr 22 00:29:18 2001 +++ config.c @@@@ -344,9 +344,9 @@@@ {"disable-meta-refresh-self",&DisableHTMLMetaRefreshSelf ,1,Fixed,Boolean,"no"}, {"disable-dontget-links" ,&DisableHTMLDontGetLinks ,1,Fixed,Boolean,"no"}, {"replace-dontget-images" ,&ReplaceHTMLDontGetImages ,1,Fixed,Boolean,"no"}, - {"replacement-dontget-image",&ReplacementHTMLDontGetImage,1,Fixed,Url ,"/local/dontget/replacement.gif"}, + {"replacement-dontget-image",&ReplacementHTMLDontGetImage,1,Fixed,PathName ,"/local/dontget/replacement.gif"}, {"replace-webbug-images" ,&ReplaceHTMLWebbugImages ,1,Fixed,Boolean,"no"}, - {"replacement-webbug-image" ,&ReplacementHTMLWebbugImage ,1,Fixed,Url ,"/local/dontget/replacement.gif"}, + {"replacement-webbug-image" ,&ReplacementHTMLWebbugImage ,1,Fixed,PathName ,"/local/dontget/replacement.gif"}, {"demoronise-ms-chars" ,&DemoroniseMSChars ,1,Fixed,Boolean,"no"}, {"disable-animated-gif" ,&DisableAnimatedGIF ,1,Fixed,Boolean,"no"}}; d9 6 @ 1.3 log @Upgrade wwwoffle to 2.6c. From the "NEWS" file... Bug Fixes: Changed the HTML message pages to be HTML 4 compliant (use ';' instead of '&' for URL arguments). Fixed meta-refresh-self problem. Don't get confused by scripts when parsing HTML. Fix crash in convert-cache program. Made compilation work on SGI machines. Don't truncate partial cached file. Fix the request-changed option. New Features: Add comments where WWWOFFLE modifies the original page's HTML. Add the option to remove stylesheets, external links and embedded styles. Add the option to remove Java applets. Add options to remove links and replace images listed in the DontGet section. Add the option to not fetch webbugs (1x1 pixel images) when parsing HTML. Add the option to replace webbugs (1x1 pixel images) when modifying HTML. Translations: Added Dutch translations of WWWOFFLE messages. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 2.5c, which fixes descriptor leakage on zero-length directories. Requested by Christoph Badura. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 1999/11/30 03:53:30 itohy Exp $ d3 13 a15 67 This patch is originated from the author, and will be included in future releases. --- misc.c.orig Mon Nov 29 10:50:02 1999 +++ misc.c Mon Nov 29 11:11:55 1999 @@@@ -44,7 +44,7 @@@@ URL *Url=(URL*)malloc(sizeof(URL)); char *copyurl,*mallocurl=malloc(strlen(url)+2); int i=0,n=0; - char *colon,*slash,*at,*temppath,root[2]; + char *colon,*slash,*at,*ques,*temppath,root[2]; copyurl=mallocurl; strcpy(copyurl,url); @@@@ -73,7 +73,8 @@@@ slash=strchr(copyurl,'/'); } else if(colon && !isdigit(*(colon+1)) && - (!at || (slash && at>slash))) /* http:www.foo.com/... */ + (!slash || colonslash))) /* http:www.foo.com/...[:@@]... */ { *colon=0; Url->proto=(char*)malloc(colon-copyurl+1); @@@@ -127,6 +128,16 @@@@ Url->pass=NULL; } + /* Arguments */ + ques=strchr(copyurl,'?'); + if(ques) /* ../path?... */ + { + *ques++=0; + Url->args=(char*)malloc(strlen(ques)+1); + strcpy(Url->args,ques); + } + else + Url->args=NULL; /* Hostname */ if(*copyurl=='/') /* /path/... (local) */ @@@@ -139,24 +150,11 @@@@ Url->host=copyurl; Url->local=0; - if(slash) /* www.foo.com/... */ + if(slash && (!ques || slashargs=NULL; - - for(i=0;copyurl[i];i++) - if(copyurl[i]=='?') - { - copyurl[i]=0; - Url->args=(char*)malloc(strlen(copyurl+i+1)+1); - strcpy(Url->args,copyurl+i+1); - break; - } /* Pathname */ @ 1.1 log @Treat broken URL's like "http://foo.bar:80?query" (no '/' between port and query part) as "http://foo.bar:80/?query". Patch is from the wwwoffle author via Feico Dillema. @ text @d1 1 a1 1 $NetBSD$ @