Commit graph

53 commits

Author SHA1 Message Date
fredb
96c602805c 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.
2002-05-14 15:37:19 +00:00
fredb
e0e9ec9355 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 <URL>'.
 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.
2002-04-25 10:43:26 +00:00
fredb
8a935a1c4c Add a convenience target to run the INSTALL script, and update the
post-install message accordingly. We have to do it manually after
`make package', as explained in the comment.
2002-03-25 09:17:55 +00:00
fredb
ad4d98f3fa Update wwwoffle to 2.7a (2.7.1). From the NEWS file:
Bug Fixes:
 Ensure that the -put or -post options to wwwoffle have one URL.  Fix IPv6
 checking (configure fails if IPv6 not available).  Fix conditional request
 problem (304 reply for non-conditional requests).  Make the socket binding
 errors less confusing.  Fix requesting of compressed data.  Handle NULL strings
 in FTP code and parsing requests.  Speed up wildcard matching of '/*' paths.
 When search script fails give an error not a blank page.  The content-length
 header is not removed unless compression is being used.  Fix core dump with
 configuration page adding first item to DontGet/DontCache section.  Preserve
 cache file timestamps when compressing them.  Handle relative URLs that start
 with '//'.  Fix Solaris compilation problem with statfs/statvfs.  Bug fix for
 failure to censor some headers.  Remove the 'alt' attribute from disabled
 images when modifying HTML.

New Features:
 Re-instate the old configuration editing web pages due to user demand.
 Allow wildcards to have more than two '*' in them.
 The upgrade-config.pl script warns about URL-SPECs with path='/' not '/*'.
2002-03-25 08:49:59 +00:00
fredb
918a9ca4c9 Fix sprintf() overflow for long urls: sprintf() -> snprintf(). 2002-03-23 22:48:09 +00:00
fredb
584da08bcc Update the example "crontab" fragment to the new location for the "htdig"
scripts, and while we're in here, be a little less verbose.
2002-03-11 07:32:33 +00:00
fredb
0a5fe486f5 Update wwwwoffle to 2.7. Very many bug fixes, including fixes for
dealing better with javascript pages, and fixes for old ftp servers.
Lots of new features and configure options, too. Also, new
translations for French, Dutch, Polish, German; docs and notes in
a few other languages; and translations for local pages are now
selected by browser settings!
2002-03-10 22:14:29 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
zuntum
431e7a7dda Move pkg/ files into package's toplevel directory 2001-11-01 02:15:23 +00:00
wiz
cf875b62b6 Pass ${command_args} in stop_cmd, as requested in pkg/14349. 2001-10-25 10:20:59 +00:00
fredb
d92999722f Let the default configuration file be installed as "wwwoffle.conf.install",
rather than "wwwoffle.conf.default", so that wwwoffle-upgrade-config*.pl
can use it to populate the new config file with comments (and to minimize
gratuitious changes).
2001-08-18 20:31:13 +00:00
fredb
f989deaade 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.]
2001-08-18 20:04:08 +00:00
fredb
0dfbc897e9 Don't call freeaddrinfo() with "0" argument -- it cores. 2001-08-16 04:23:45 +00:00
fredb
af2e50fab0 Update wwwoffle to version 2.6d. From the "NEWS" file...
Bug Fixes:
 Fix pagination problem in wwwoffled manual page.  Fix core dump with missing
 DontCompress section.  Fix error with convert-cache and uncompress-cache
 programs not recognising valid configuration items.  Fix harmless buffer
 overrun.  Improve the URL decoded strings displayed in indexes.  Don't complain
 about empty directory when installing.  Canonicalise the pathname in URLs.
 Compile on __bsdi__ systems.  Convert decimal IP addresses to dotted-quad.
 Add support for compilation on Apple OS X.  Enable HTML modifications on URLs
 with error status.  Use a case-insensitive check when censoring headers.  Fix
 up HTML to that it validates with an SGML checker.

New Features:
 Added IPv6 support.
 Added bind-ipv4 and bind-ipv6 options to specify local IP address to bind to.
 Added 'random' sort order option for indexes.
 Made index sorting use alphabetical as a secondary sort.
 Added HTTP/1.1 'Cache-Control: max-age=..' header handling (same as 'Expires').

Translations:
 Updated the Russian translations of the WWWOFFLE messages.
2001-08-14 04:51:46 +00:00
fredb
e65bc1f071 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.
2001-04-22 06:44:39 +00:00
fredb
35c55af338 Add missing "NetBSD" CVS tag. 2001-04-22 06:37:38 +00:00
agc
8f972b049a + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 12:12:16 +00:00
itojun
22ba2c8a32 upgrade to 2.6b + IPv6 patch.
Version 2.6b of WWWOFFLE released : Sat Mar 24 14:30:00 2001
------------------------------------------------------------

Bug Fixes:
 HTML parsing optimisations.  HTML parser memory leak fixed.  Fix stylesheet
 link parser.  Stop cached pages containing trailing junk.  Fixed wwwoffle
 manual page quote character bug.  Fix problems parsing parameter strings in
 URLs.  Fix ssl-allow-port config file parsing.

Win32 Bug Fixes:
 Fixed the socket closing code.

Documentation:
 Updated the README.win32 file.
 Updated FAQ to version 2.6.
 Updated French translated pages.
 Added a README.compress that describes the compression problems and solutions.

New Features:
 Request data from servers is sent compressed, config option (see zlib note).
 Reply to client with compressed data if asked, config option (see zlib note).
 Compress the files in the cache when purging, based on age (see zlib note).
 Allow fetching in autodial mode as well as online mode.


*NOTE* The use of zlib to enable compression should be considered a beta quality
       feature in this version.  It requires the zlib library to compile it.

*NOTE* If upgrading from a version < 2.6a then see the notes for version 2.6a.
2001-04-13 13:46:34 +00:00
fredb
3ba2601c44 Update wwwoffle to 2.6a:
Bug Fixes:
 Fix crash with invalid entries in config file.  Handle some invalid URL
 encodings that servers/clients use.  Stop crashes when monitoring illegal
 refresh URLs.  Handle malformed headers better.  Check the DontGet section of
 the configuration file when doing SSL.  Print error messages when starting on
 stderr.  Read the configuration file if using wwwoffle-write.  Fix bug with
 form argument parsing.  Set fetch-stylesheets to true in the default config
 file.  Bug fixes for modifying HTML with meta refresh tags.  Stop duplicated
 items in the configuration file.

Win32 Bug Fixes:
 Fixed logfile opening problem. Added a fchdir() function for cygwin.
 Workaround cygwin socket closing problem. Change the makefile for cygwin
 installation (don't auto install .dll or .bat).

Documentation
 Updated the Welcome.html page to include more links to useful information.
 Include an HTML version of README.CONF in the html directory.
 Updated several README files and INSTALL file.


*NOTE* The default location of the replacement .gif file for the DontGet section
       has changed, upgrade-config.pl should fix wwwoffle.conf automatically.

*NOTE* If upgrading from a version < 2.6 then see the notes for version 2.6.

NetBSD package changes:

- - Install upgrade-config-2.x-2.5.pl (as wwwoffle-upgrade-config-2.x-2.5.pl).
- - Protect convert-cache the same way as upgrade-config -- prefix with wwwoffle-.
- - Update MESSAGE file accordingly.
2001-03-12 19:08:37 +00:00
fredb
569b8e4ef7 Attend to some pkglint warnings. 2001-03-12 18:08:32 +00:00
fredb
b3bfb33728 Some tweaks to the package:
- - Add a new-style rc.d script.
- - Fix the included "htdig" scripts to work with packaged "htdig".
    ("htdig" remains optional.)
- - Install the convert-cache and upgrade-config-pl tools to make
    upgrading less painful. Run convert-cache automatically for binary
    package install, but only suggest to for source install.
- - Expand the MESSAGE text to explain how to use all this.
2001-03-12 18:05:24 +00:00
hubertf
d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00
wiz
a0745845b3 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:21:28 +00:00
wiz
b979f7222a Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
2001-01-29 11:34:21 +00:00
hubertf
1791cbecbb etc/rc.d cleanup: rename *.sh -> * 2001-01-26 05:21:43 +00:00
itojun
217ac8932e remove commented out section (post-build) 2000-11-21 01:31:14 +00:00
itojun
ce9041021d update IPv6 patch version. sync up better with 2.6. 2000-11-21 01:11:18 +00:00
itojun
b57bed3af6 upgrade to 2.6. pull IPv6 patch from ftp.kame.net (maintenance reason)
Version 2.6 of WWWOFFLE released : Sat Nov 18 19:15:00 2000
-----------------------------------------------------------

Bug Fixes:
 Improve HTML modification for unterminated tags.  Allow passworded pages to be
 fetched.  Improve compilation on non-Linux systems.  Fix bug with proxy config
 file entry.  Fix an error with not truncating files.  Fix an error with
 dir-perm and file-perm.  Fix problem when getting pages with passwords.  Fix
 problem deleting pages with passwords.

Documentation
 Added a note to the FAQ about DoS attacks and ipchains.


*NOTE* If upgrading from version 2.[2345] then you will need to convert your
       cache to the new format, see the file CONVERT for details.

*NOTE* If upgrading from version 2.4[abc] the max-size option in the Purge
       section of the configuration file has changed.  See CHANGES.CONF.

*NOTE* If upgrading from version 2.[123] the setting of the times of monitoring
       URLs has changed, check the monitor index and correct where needed.

*NOTE* If upgrading from version 1.x or 2.[01] then you will need to delete
       your cache since conversion from those formats is no longer provided.


Version 2.6-beta of WWWOFFLE released : Sun Oct 22 10:30:00 2000
----------------------------------------------------------------

Bug Fixes:
 Handle usernames specified in URLs including the '@' character.  Fix problems
 deleting URLs with arguments.  Fix bug with recursive fetching in same dir.
 Retry the select system call if it is interrupted.

Win32 Bug Fixes:
 Fix for local web-pages not being opened in binary mode.  Compilation fixes.

Internal Changes:
 Re-examined all URL-encoding and URL-decoding issues (small cache change).
 Ensure that the canonical form of the URL is used throughout.
 Changed the URLs in the indexes for monitor, delete & refresh.

Documentation
 Re-written the README.CONF file with new layout and more information.
 Added three more questions to the FAQ and updated several others.

Configuration File
 Allow many of the configuration file options be selectable on a URL by URL basis.
 Move some configuration file options around and create some new sections.
 Allow purge ages to be specified in larger units (weeks, months, years).
 Allow re-request times to be specified in larger units (minutes, hours, days).

New Configuration Options
 Add the ability to demoronise HTML (replace bogus characters with real ones).
 Add the ability to remove meta refresh tags that redirect browsers.
 Added the option to convert redirections to DontGet pages to errors.
 Allow the HTML modifications to happen to pages viewed when online.
 Add timeouts to DNS lookups to stop WWWOFFLE servers hanging up.
 Add the option to enable the use of lock files (defaults to disabled).

New Features
 Remove the index of the latest pages (was slow on big caches).
 Add an index of the pages that were in the outgoing directory last time.
 Change the don't cache option so that pages are not requested when offline.
 Allow password protected URLs to be deleted.
 Aliased pages now use a redirect rather than re-writing the URL.
 Make it safe to have symlinks in the cache.

Searching
 Changed the ht://Dig search URLs in WWWOFFLE from /htdig/* to /search/htdig/*.
 Allow the use of UdmSearch instead of ht://Dig.

Contrib
 Improved the audit-usage.pl script to show cache hit/miss status for requests.
2000-11-20 05:12:38 +00:00
fredb
dcbd9eea50 For binary package users: 1) Clean up some extra junk that may be left
over after an aborted pkgsrc install. 2) Fix up the host name in the proxy
autoconfigure file. Now, setting the autoconfigure url
(to http://${WWWOFFLE_SERVER}:8080/wwwoffle.pac) works. Note; we can't
do this for pkgsrc users, as then there's a danger that the name of the
build host will make it's way into the binary package.
2000-08-07 09:10:33 +00:00
fredb
328706198a Delete /var/wwwoffle/html.old, so that an install following an aborted
install will work. There's no point in saving "html.old" -- a successful
update will not even create that directory.
2000-08-07 08:27:37 +00:00
itojun
b30abcb890 upgrade to 2.5e (since 2.5e is no longer available on ftp site) 2000-06-06 13:22:28 +00:00
itohy
bd44ecb553 Upgraded to 2.5d.
Related changes:
 - Fix the permissions for the installed files
   (this fix is the same one that Frederick Bruckman did for 2.5c).
 - Remove the extra newline added to POST requests.
 - Only clear the supplementary group list if running as root.
 - Stopped overflow of 32 bit integer when purging.
 - Allow wrong reply to CWD from broken FTP server.
 - Don't get confused by badly nested script or blink tags.
 - Disallow the Accept-Encoding header on outgoing requests.
 - Make the URL-SPECIFICATION in the config file have lower case
   for protocol and host.
 - Modified the Meta refresh tag handling.
 - Fix FTP directory listings for files with ':' in them.
 -   and other bug fixes.

 - Added Russian and Polish translations of WWWOFFLE messages.

 - Updated FAQ.
2000-02-22 00:48:58 +00:00
fredb
6720a06627 Restore correct permissions to spool directory. Per Andrew M. Bishop,
wwwoffle's author, removing world read permissions from the spool directory
was a mistake, which will be rectified in wwwoffle-2.5d.
2000-02-21 03:10:34 +00:00
itohy
a4f8db5d53 Remove dependency on htdig.
WWWOFFLE is functional without ht://Dig (search function is not available
of course) and htdig pkg may be added/removed AFTER addition of wwwoffle pkg.
(Another reason is that ht://Dig is not so useful for Asian languages. :)

Add reference to www/htdig pkg.
2000-02-16 00:28:03 +00:00
itohy
735f92fc27 Update to 2.5c, which fixes descriptor leakage on zero-length directories.
Requested by Christoph Badura.
2000-02-16 00:24:39 +00:00
fredb
9a701f3449 Let this work with pkgsrc htdig, and add a dependency on htdig. 2000-01-25 02:48:11 +00:00
agc
0a4280ecbc Make this package compile on Solaris. 1999-12-07 08:50:49 +00:00
itohy
dc68cb1778 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.
1999-11-30 03:53:29 +00:00
itohy
15a1163fc3 Hack pre-install to prevent installation failure
under certain conditions (cache dir exists, but no http dir).
1999-11-26 06:30:10 +00:00
itohy
b3a20c1613 - Update to 2.5b.
Based on PR #8562 by Feico Dillema.
- Do not automatically remove the cache on un-installation.
1999-11-26 06:09:00 +00:00
tron
8806522d17 Record "${USE_INET6}" in build definitions. 1999-09-03 21:57:49 +00:00
tron
e2e1f85a6e Add RCS Ids to IPv6 patches. 1999-09-03 21:10:53 +00:00
tron
775827e921 Update "wwwoffle" package to version 2.4 and add IPv6 support.
Patches supplied by Feico Dillema in PR pkg/8290.
1999-09-03 21:07:36 +00:00
agc
00a16e3008 Add package patch checksum files. 1999-07-09 14:22:59 +00:00
tron
566e7a4338 Replace "${PREFIX}" with real installation path in message file. 1999-04-21 10:08:20 +00:00
tron
bb04f7ac54 Remove kludge which tries to add "/var/wwwoffle" to package list. Instead
of that we create a tar archive with the spool directory layout which
will be extracted during installation of the binary package.
1999-04-20 20:06:49 +00:00
hubertf
2a95ad9c6b Fix CONFLICTS (remove redundancy, mostly) 1999-02-20 22:48:24 +00:00
tsarna
6bd0d65c65 The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
1998-08-20 15:16:34 +00:00
agc
f7c4996e0b Add NetBSD RCS Ids. 1998-08-07 13:27:33 +00:00
agc
41bfb30737 Add NetBSD RCS Ids. 1998-08-07 11:08:53 +00:00