Subject: pkg/18514: pkg ap-gzip update to
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/02/2002 17:44:11
>Number:         18514
>Category:       pkg
>Synopsis:       pkg ap-gzip update to
>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
>Originator:     Todd Vierling
>Release:        pkgsrc 20021002
	DUH.ORG:  Pointing out the obvious since 1994.


mod_gzip update to  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

* Netware patch

  Guenter Knauf ( 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

* 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

* 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 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




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}
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX} changes.txt commands.txt samples.txt
 COMMENT=	On-the-fly GZIP compression for Apache 1.3.x
 DEPENDS+=	apache{,6}-1.3.*:../../www/apache
 USE_PERL5=	build	# for "apxs"
 	@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -c -o *.c
 	@cd ${WRKSRC} && ${PREFIX}/sbin/apxs -i
-	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_gzip
-	${INSTALL_DATA} ${_DISTDIR}/*.txt ${PREFIX}/share/doc/mod_gzip/
+		${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/"
Index: www/ap-gzip/PLIST
RCS file: /cvsroot/pkgsrc/www/ap-gzip/PLIST,v
retrieving revision
diff -u -u -r1.1.1.1 PLIST
--- www/ap-gzip/PLIST	2002/04/01 17:44:43
+++ www/ap-gzip/PLIST	2002/10/02 21:39:31
@@ -1,6 +1,35 @@
-@comment $NetBSD: PLIST,v 2002/04/01 17:44:43 tv Exp $
+@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:15:44 zuntum Exp $
+@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
diff -u -u -r1.1.1.1 distinfo
--- www/ap-gzip/distinfo	2002/04/01 17:44:43
+++ www/ap-gzip/distinfo	2002/10/02 21:39:31
@@ -1,10 +1,4 @@
-$NetBSD: distinfo,v 2002/04/01 17:44:43 tv Exp $
+$NetBSD: distinfo,v 1.2 2001/04/20 12:02:31 skrll Exp $
-SHA1 (ap-gzip- = 5b1e7add6ddee17806ff9801f196797b80831989
-Size (ap-gzip- = 55269 bytes
-SHA1 (ap-gzip- = 6089a2e74091a3a630b5836c7c1e90e46c0d0e44
-Size (ap-gzip- = 6897 bytes
-SHA1 (ap-gzip- = b1b9e1745346dbbbfec6724d1e49b66b168678f9
-Size (ap-gzip- = 8231 bytes
-SHA1 (ap-gzip- = ebd31f221a4aeadd36ef17bbc05a7da0f550316f
-Size (ap-gzip- = 7050 bytes
+SHA1 (mod_gzip- = b430dca7216ccb85c06bde972e508919d112ab1b
+Size (mod_gzip- = 137394 bytes