Commit graph

71 commits

Author SHA1 Message Date
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
jmmv
bfe5412698 Add missing file to PLIST. 2003-08-29 09:23:25 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
tron
39a943ad92 Replace "true" by "${TRUE}". 2002-12-09 16:01:10 +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
ae54016cd8 Do as intended all along with the old config handling, and choose the
newest of the possible candidates.

Update comment -- there are now multiple wwwoffle.pac files.
2002-11-08 15:34:21 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29: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
fredb
f54df28f73 Clarify comment. 2002-09-05 15:34:19 +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
fredb
1c7477d085 Fix PR pkg/17672 a little more portably, with patch suggested by Andrew
M. Bishop (wwwoffle's author/maintainer). With this, if IPv6-mapped IPv6
addresses are enabled, attempting to bind the wildcard address for both
protocols is not a fatal error.
2002-08-10 13:43:09 +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
865a511d81 one more instance of :: and 0.0.0.0 issue. by fredb 2002-08-06 01:58:34 +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
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