INSTALL/DEINSTALL script creation within pkgsrc.
If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts. If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:
INSTALL_SRC= ${PKGDIR}/INSTALL
DEINSTALL_SRC= # emtpy
As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts. By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).
In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework. The only public variables relating to the templates are:
INSTALL_SRC INSTALL_TEMPLATE
DEINSTALL_SRC DEINSTALL_TEMPLATE
HEADER_TEMPLATE
The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
Changes since 2.8c:
* src/version.h, doc/NEWS: Update to version 2.8e.
* src/wwwoffle-tools.c:
Fix previous wwwoffle-mv change and preserve timestamps.
* src/configdata.c:
Make the default value for reply-chunked-data match the documentation.
* src/info.c: Indicate on the info page if the URL has been requested.
* src/wwwoffles.c: Handle HEAD requests more intelligently.
When online send HEAD don't cache them, when offline convert to GET if not cached.
* doc/README: Updated description of wwwoffle-mv program.
* src/configdata.c, src/wwwoffles.c, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h:
Added a new option cache-control-max-age-0 to OnlineOptions and OfflineOptions.
* doc/FAQ: Another solution to the infamous libc resolver problem.
* src/wwwoffles.c: No functional changes.
Added more comments relating to Fetch mode, and on mode for else statements.
Rearranged code so that mode==Fetch is evaluated with others in else branch.
* src/wwwoffles.c:
Fix two places where being in Fetch mode would go wrong
(aliased URL and unauthenticated proxy request).
* doc/README, doc/README.CONF: Some text changes.
* src/wwwoffle-tools.c: Allow moving files and changing the path.
* src/control.c: Fix spurious error message.
* doc/wwwoffle.conf.man.template:
Updated the dates in the footer/header.
* src/spool.c:
Only print an error for a missing monitor time file if the URL is monitored.
Version 2.8d of WWWOFFLE released.
* doc/NEWS, src/version.h: Update to version 2.8d.
* doc/README:
Update acknowledgements section (removal of old GIF code).
* src/gifmodify.c:
All new GIF modification code (handles GIF87a and GIF89a).
* doc/README.CONF:
Make sure that all lines are less than 78 characters long.
* src/htmlmodify.l, conf/upgrade-config.pl,
conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
src/config.h, src/configdata.c:
Add a new option to remove HTML "marquee" effect (scrolling text).
* src/Makefile.in, src/configedit.c, src/control.c, src/index.c,
src/monitor.c, src/refresh.c:
Give warnings if processing URL arguments and an unexpected one is seen.
* conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README,
doc/README.CONF, src/config.h, src/configdata.c, src/htmlmodify.l,
conf/upgrade-config.pl:
Add an HTMLModify option to fix bad cyrillic coding.
* src/wwwoffle-tools.c: Return an error status in case of a failure.
* src/wwwoffles.c:
Make sure that there is a message from 'wwwoffle -fetch' for all URLs.
* src/miscurl.c: Fix hostname character checking.
* src/document.c: Parse xhtml pages for links and images.
* src/info.c: Display source of xhtml and xml pages.
* src/wwwoffles.c: Add cache information to xhtml pages.
* doc/README.CONF: Clarify the try-without-password option wording.
* src/miscurl.c:
When splitting a URL disallow invalid characters in hostnames.
* src/wwwoffled.c: Change log file ownership before changing uid/gid.
Close stdin/stdout/stderr after detaching from terminal not before.
Don't open log file again after detaching from terminal.
Don't force usage of stderr when re-initialising error handler.
* doc/README.CONF, src/configmisc.c:
A URL-SPEC path like '/*/foo*' matches '/foo*' and '/*/foo*' as a special case.
* src/cgi.c, src/search.c:
Fix bug with setting up stdout for CGI program.
* src/errors.c: Fix bug that left file descriptor open on log file.
* src/document.h, src/htmlmodify.l, src/wwwoffles.c:
Disable the demoronise-ms-html option if the HTML is UTF-8 or other multibyte charset.
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.
This is from ideas from Greg Woods and others.
Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
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.
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.
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).
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 '/'.
"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.
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.
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.
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 '/*'.
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!
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).
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.
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.
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.
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.
- - 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.