Subject: pkg/18514: pkg ap-gzip update to 1.3.26.1a
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@pobox.com>
List: netbsd-bugs
Date: 10/02/2002 17:44:11
>Number: 18514
>Category: pkg
>Synopsis: pkg ap-gzip update to 1.3.26.1a
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 02 14:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Todd Vierling
>Release: pkgsrc 20021002
>Organization:
DUH.ORG: Pointing out the obvious since 1994.
>Environment:
>Description:
mod_gzip update to 1.3.26.1a. Changes:
* mod_gzip_update_static Yes/No
This new directive controls wether mod_gzip should re-gzip outdated
precompressed files. mod_gzip compresses a copy of the original file,
use it with care! No other modules can handle the content of these
HTTP requests.
* bugfix for long lines
In older versions, mod_gzip had a problem with HTTP header lines
longer than 4k. This bug has been fixed.
* bugfix for POST-requests on Win32
Previous mod_gzip versions had a problem with POST-request whose
bodies were larger than 4 or 8k. No it declines them and does not
compress their output any more.
* Vary bugfix
The previous version of mod_gzip sent Vary headers in too many cases.
But now this is not longer necessary. mod_gzip sends no
Vary headers when the request is excluded by 'file', 'uri' or
'handler'.
* Netware patch
Guenter Knauf (eflash@gmx.net) wrote a patch for Netware. It's
now included.
* Documentation included
The mod_gzip documentation is now included in the download package.
There is also a mod_gzip.conf.sample file included.
Changes in Version 1.3.19.2a
* mod_gzip_static_suffix suffix
This new directive defines the suffix of the static compressed files.
On most platforms this will be .gz, but on some it may be .z or
something like that. Default is '.gz'.
Warning: You have to add an 'AddEncoding .suffix gzip' in your Apache
config! If you don't do this, Apache may send a wrong
'Content-Encoding' HTTP header (or even none at all).
* mod_gzip_handle_methods GET POST
Parameters are GET or POST or a list of both values.
Default is the list of both values.
* mod_gzip_send_vary Yes/No
This will be useful for some caching HTTP proxies like squid.
Prior to the current version of mod_gzip, they had problems
to properly handle mod_gzip output.
Example: A client that is able to handle compressed content
receives a compressed response and the proxy caches it.
The next client is not able to handle compressed content but as
the proxy was not aware of the response being a negotiation
result, it could do nothing but serve the content to this
client as well.
"Vary:" should tell the proxy what to do in those situations,
or at least warn it to not cache the content if it is not
able to understand the negotiation procedure.
The value of the 'Vary:' header will be a comma separated
list of
a) 'Accept-Encoding' and
b) each value that has been used as second operand of a
'mod_gzip_item_include reqheader' rsp.
'mod_gzip_item_exclude reqheader' directive.
This may cause a proxy to not cache the content in some
more cases than necessary, but at least make sure it
won't inadvertantly serve compressed content.
The calculation logic for 'Vary:' headers may have to be
improved in subsequent versions, as to hopefully reduce
the header names to the absolute minimum necessary.
Warning: Don't set this value to "no" unless you are perfectly
sure that all clients in your environment are able to handle
compressed content properly!
* Workfile bug fixed
In prior versions of mod_gzip there was a problem with the
workfiles. When the compressed version of a file was bigger
than the file itself, the workfile has not been deleted.
Now it will be.
* mod_gzip recognizes outdated .gz files
mod_gzip now performs another stat() call and checks whether
the static compressed version of the file is older than the
uncompressed original file itself. If so, it sends the
uncompressed content(!) and creates a
SEND_AS_IS:PRECOMPRESSED_VARIANT_OUTDATED status value.
* mod_gzip is now split into 3 files
Mod_gzip has been split into three files because it is easier to
maintain. And because of this splitting I added an Makefile.tmpl
(a Makefile template) for Apache build process so that you
can compile mod_gzip statically into Apache.
There is also a Makefile which uses the apxs script to generate
a shared library.
Now there are two ways to build mod_gzip: statically compiled
into Apache and a DSO-File for mod_so. If you want to
compile it statically into Apache, just copy the source
to Apache src/modules directory and there into a subdirectory
named 'gzip'. You can activate it via a parameter of the
configure script, e.g.
./configure --activate-module=src/modules/gzip/mod_gzip.a
make
make install
This will build a new Apache with mod_gzip statically built in.
The DSO-Version is much easier to build. Just type
make APXS=/path/to/apxs
make install APXS=/path/to/apxs
/path/to/apachectl restart
The apxs script is normaly located inside the bin directory of
Apache.
>How-To-Repeat:
>Fix:
Unidiff:
Index: www/ap-gzip/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/ap-gzip/Makefile,v
retrieving revision 1.3
diff -u -u -r1.3 Makefile
--- www/ap-gzip/Makefile 2002/08/01 02:37:41 1.3
+++ www/ap-gzip/Makefile 2002/10/02 21:39:31
@@ -1,32 +1,36 @@
# $NetBSD: Makefile,v 1.3 2002/08/01 02:37:41 jschauma Exp $
#
-DISTNAME= mod_gzip.c
+DISTNAME= mod_gzip-${VERSION}
PKGNAME= ap-gzip-${VERSION}
CATEGORIES= www
-MASTER_SITES= http://www.remotecommunications.com/apache/mod_gzip/src/${VERSION}/
-EXTRACT_SUFX= .gz
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} changes.txt commands.txt samples.txt
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mod-gzip/}
+EXTRACT_SUFX= .tgz
MAINTAINER= packages@netbsd.org
-HOMEPAGE= http://www.remotecommunications.com/apache/mod_gzip/
+HOMEPAGE= http://www.sourceforge.net/projects/mod-gzip/
COMMENT= On-the-fly GZIP compression for Apache 1.3.x
DEPENDS+= apache{,6}-1.3.*:../../www/apache
USE_PERL5= build # for "apxs"
-VERSION= 1.3.19.1a
-DIST_SUBDIR= ${PKGNAME}
+VERSION= 1.3.26.1a
-EXTRACT_CMD= ${GZIP_CMD} -dc >${WRKDIR}/${DISTNAME} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
-WRKSRC= ${WRKDIR}
-
do-build:
@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -c -o mod_gzip.so *.c
do-install:
@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -i mod_gzip.so
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_gzip
- ${INSTALL_DATA} ${_DISTDIR}/*.txt ${PREFIX}/share/doc/mod_gzip/
+ ${INSTALL_DATA_DIR} \
+ ${PREFIX}/share/doc/mod_gzip \
+ ${PREFIX}/share/doc/mod_gzip/de \
+ ${PREFIX}/share/doc/mod_gzip/en \
+ ${PREFIX}/share/examples/mod_gzip
+ ${INSTALL_DATA} ${WRKSRC}/docs/manual/deutsch/* \
+ ${PREFIX}/share/doc/mod_gzip/de/
+ ${INSTALL_DATA} ${WRKSRC}/docs/manual/english/* \
+ ${PREFIX}/share/doc/mod_gzip/en/
+ ${INSTALL_DATA} ${WRKSRC}/docs/mod_gzip.conf.sample \
+ ${PREFIX}/share/examples/mod_gzip/httpd.conf
.include "../../mk/bsd.pkg.mk"
Index: www/ap-gzip/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/www/ap-gzip/PLIST,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 PLIST
--- www/ap-gzip/PLIST 2002/04/01 17:44:43 1.1.1.1
+++ www/ap-gzip/PLIST 2002/10/02 21:39:31
@@ -1,6 +1,35 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/01 17:44:43 tv Exp $
+@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:15:44 zuntum Exp $
lib/httpd/mod_gzip.so
-share/doc/mod_gzip/changes.txt
-share/doc/mod_gzip/commands.txt
-share/doc/mod_gzip/samples.txt
+share/doc/mod_gzip/de/browser.htm
+share/doc/mod_gzip/de/cache.htm
+share/doc/mod_gzip/de/config.htm
+share/doc/mod_gzip/de/encoding.htm
+share/doc/mod_gzip/de/enhancements.htm
+share/doc/mod_gzip/de/extern.gif
+share/doc/mod_gzip/de/firewalls.htm
+share/doc/mod_gzip/de/index.htm
+share/doc/mod_gzip/de/links.htm
+share/doc/mod_gzip/de/mod_gzip_logo.gif
+share/doc/mod_gzip/de/status.htm
+share/doc/mod_gzip/de/valid-css.png
+share/doc/mod_gzip/de/valid-xhtml11.png
+share/doc/mod_gzip/de/versions.htm
+share/doc/mod_gzip/en/browser.htm
+share/doc/mod_gzip/en/cache.htm
+share/doc/mod_gzip/en/config.htm
+share/doc/mod_gzip/en/encoding.htm
+share/doc/mod_gzip/en/enhancements.htm
+share/doc/mod_gzip/en/extern.gif
+share/doc/mod_gzip/en/firewalls.htm
+share/doc/mod_gzip/en/index.htm
+share/doc/mod_gzip/en/links.htm
+share/doc/mod_gzip/en/mod_gzip_logo.gif
+share/doc/mod_gzip/en/status.htm
+share/doc/mod_gzip/en/valid-css.png
+share/doc/mod_gzip/en/valid-xhtml11.png
+share/doc/mod_gzip/en/versions.htm
+share/examples/mod_gzip/httpd.conf
+@dirrm share/doc/mod_gzip/de
+@dirrm share/doc/mod_gzip/en
@dirrm share/doc/mod_gzip
+@dirrm share/examples/mod_gzip
Index: www/ap-gzip/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/ap-gzip/distinfo,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 distinfo
--- www/ap-gzip/distinfo 2002/04/01 17:44:43 1.1.1.1
+++ www/ap-gzip/distinfo 2002/10/02 21:39:31
@@ -1,10 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2002/04/01 17:44:43 tv Exp $
+$NetBSD: distinfo,v 1.2 2001/04/20 12:02:31 skrll Exp $
-SHA1 (ap-gzip-1.3.19.1a/mod_gzip.c.gz) = 5b1e7add6ddee17806ff9801f196797b80831989
-Size (ap-gzip-1.3.19.1a/mod_gzip.c.gz) = 55269 bytes
-SHA1 (ap-gzip-1.3.19.1a/changes.txt) = 6089a2e74091a3a630b5836c7c1e90e46c0d0e44
-Size (ap-gzip-1.3.19.1a/changes.txt) = 6897 bytes
-SHA1 (ap-gzip-1.3.19.1a/commands.txt) = b1b9e1745346dbbbfec6724d1e49b66b168678f9
-Size (ap-gzip-1.3.19.1a/commands.txt) = 8231 bytes
-SHA1 (ap-gzip-1.3.19.1a/samples.txt) = ebd31f221a4aeadd36ef17bbc05a7da0f550316f
-Size (ap-gzip-1.3.19.1a/samples.txt) = 7050 bytes
+SHA1 (mod_gzip-1.3.26.1a.tgz) = b430dca7216ccb85c06bde972e508919d112ab1b
+Size (mod_gzip-1.3.26.1a.tgz) = 137394 bytes
>Release-Note:
>Audit-Trail:
>Unformatted: