Commit graph

51 commits

Author SHA1 Message Date
recht
45c41f793e update to wwwoffle-2.8c
patch provided by Ove Soerensen in PR 26792

changes compared to 2.7f:
wwwoffle 2.8c contains various fixes and new features. For example the
removal of some memory-leaks, fixes for race-conditions and it's noew
CSS aware and has support for chunked encoding.
2004-08-29 15:03:46 +00:00
cjep
f6887a97b1 Add USE_INET6 to BUILD_DEFS as these packages use it. Part of PR#25743 from
Georg Schwarz.
2004-06-08 12:23:59 +00:00
grant
e3d128293a replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:18:32 +00:00
fredb
2138bc2c1d Set "rcvar" in the rc.d script, so that wwwoffled=NO is effective, and
bump PKGREVISION. Problem noted by Benjamin Walkenhorst on netbsd-users.
2003-12-23 16:43:56 +00:00
jmmv
22a7d6e637 Use bsd.pkg.install.mk to handle generation and installation of the rc.d
script.  Bump PKGREVISION to 1.
2003-08-29 09:25:40 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
fredb
e9183d3edd Update to version 2.7f. The following is condensed in format only from
the "ChangeLog" file:

    * src/configrdwr.c:
    When allowing '=' signs in URL-SPECIFICATIONS ignore trailing spaces.

    * doc/FAQ: Added a question about startup error/warning messages.

    * src/wwwoffles.c:
    Don't attempt to modify HTML if the page is compressed.

    * src/headbody.c: Fix the Set-Cookie problem again.

    * doc/scripts/FAQ-html.pl: New file.

    * doc/scripts/README.CONF-html.pl, doc/scripts/README.CONF-msg.pl:
    Convert characters with umlauts into proper HTML entities.

    * src/headbody.c: A fix for the stupid bug in the previous version.

    * src/io.c:
    Fix for partial pages when server uses compression (suggested by
    Paul Rombouts).

    * src/wwwoffled.c: Close the client socket if SocketRemoteName() fails.
2002-11-08 15:39:55 +00:00
fredb
6832a16900 Update wwwoffle to Version 2.7e. From the NEWS file:
Bug Fixes:
 Correct some invalid HTML in the message files.  Fix some memory leaks, free
 some unfreed memory, check some pointers, close some files.  Don't send the
 extra arguments to POST requests that WWWOFFLE uses internally.  Removed
 segmentation fault potential when password not used in config file.  Another
 fix for the cookie problem.  Warn if running as root.  Try both IPv6 and IPv4
 socket binding (IPv6 may not accept IPv4).  Potential bug fix for page
 corruption.  Potential fix for IPv6 configuration on Solaris.

New Features:
 Add an option to have case-insensitive matching for URL-SPEC path and args.
 Added the option to only fetch images on the same host (automatic fetching).
 Allow URL-SPECs to contain an '=' sign embedded in them (long time bug fix).
 The monitor options page now accepts ranges of hours or days (e.g. '1-5n').

[Note: The change to IPv6 binding to not require IPv4-mapped addresses was
already present in the package as "patch-ac".]

[Note: TODO: Have the package create a user, and let the "rc.d" script run
wwwoffle as that user.]

Also, reorder ${MASTER_SITES} to comply with the request on the download
page, and work around an install target corner case for the benefit of bulk
build machines (only applies for hosts on which wwwoffle has never run).
2002-09-05 16:56:54 +00:00
grant
618961e568 check that USE_INET6 is defined.
remove extraneous parenthesis around .if (${FOO} ..) conditions.
2002-08-21 02:43:44 +00:00
fredb
b03b625e7a 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 '/'.
2002-08-19 22:03:04 +00:00
fredb
9ccd29a8f3 Really respect ${PKG_SYSCONFDIR}, and account for the fact that it may
have moved since the last installation.

Make myself the maintainer of this package.
2002-08-10 17:03:26 +00:00
jlam
e3a7832109 Merge wwwoffle.sh and wwwoffled into one rc.d script that follows pkgsrc
conventions for rc.d scripts.
2002-08-07 09:15:43 +00:00
itojun
a5a3ead2a0 simply obey config file, don't do trick against :: and 0.0.0.0.
(patch sent to the author).  bump PKGREVISION
2002-08-06 01:20:20 +00:00
fredb
c7f528a950 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.
2002-07-25 15:56:19 +00:00
fredb
c75fe1231c 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.
2002-07-16 14:28:07 +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
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
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
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
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
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
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
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
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
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
tron
472d4c94c7 Update "wwwoffle" to version 2.2. 1998-07-13 18:20:08 +00:00
agc
988019b016 Update package Makefiles for automatic manual page handling. 1998-06-22 12:58:33 +00:00