- update to mod_gzip-1.3.26.1a

- install html docs, and sample conf file is now in archive
- my vary patch has been long integrated, so remove it from here

prodded into updating by Alexander.Farber@t-online.de & mhess@solarius.org
This commit is contained in:
avsm 2003-05-24 15:37:44 +00:00
parent 7dc96179e3
commit 6ad56f0625
7 changed files with 43 additions and 152 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2003/05/22 14:16:23 naddy Exp $
# $OpenBSD: Makefile,v 1.7 2003/05/24 15:37:44 avsm Exp $
COMMENT= "transparently compress Apache output"
@ -6,16 +6,14 @@ COMMENT= "transparently compress Apache output"
# and has Apache that supports DSO's.
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
VERSION= 1.3.19.1a
DISTNAME= mod_gzip.c
PKGNAME= mod_gzip-${VERSION}
V= 1.3.26.1a
DISTNAME= mod_gzip-${V}
CATEGORIES= www
MASTER_SITES= http://www.remotecommunications.com/apache/mod_gzip/src/${VERSION}/
EXTRACT_SUFX= .gz
HOMEPAGE= http://www.remotecommunications.com/apache/mod_gzip/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mod-gzip/}
EXTRACT_SUFX= .tgz
HOMEPAGE= http://www.schroepl.net/projekte/mod_gzip/
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
@ -24,22 +22,29 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SUBST_VARS= PKGNAME
WRKDIST= ${WRKDIR}
NO_REGRESS= Yes
post-extract:
@cp -f ${FILESDIR}/Makefile.OpenBSD ${WRKSRC}/Makefile
HTML_DOCS= browser.htm cache.htm config.htm encoding.htm \
enhancements.htm extern.gif firewalls.htm index.htm \
links.htm mod_gzip_logo.gif status.htm valid-css.png \
valid-xhtml11.png versions.htm
post-build:
@sed 's,!!PREFIX!!,${PREFIX},' \
do-build:
cd ${WRKSRC} && /usr/sbin/apxs -Wc,"${CFLAGS}" -c mod_gzip.c \
mod_gzip_debug.c mod_gzip_compress.c -o ${WRKBUILD}/mod_gzip.so
sed 's,!!PREFIX!!,${PREFIX},' \
< ${FILESDIR}/mod_gzip-enable > ${WRKBUILD}/mod_gzip-enable
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_gzip
${INSTALL_DATA} ${WRKBUILD}/mod_gzip.so ${PREFIX}/lib
${INSTALL_SCRIPT} ${WRKBUILD}/mod_gzip-enable ${PREFIX}/sbin
${INSTALL_DATA} ${FILESDIR}/mod_gzip.conf.sample ${PREFIX}/share/examples/mod_gzip
${INSTALL_DATA} ${WRKSRC}/docs/mod_gzip.conf.sample \
${PREFIX}/share/examples/mod_gzip
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_gzip
.for i in ${HTML_DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/manual/english/${i} \
${PREFIX}/share/doc/mod_gzip
.endfor
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (mod_gzip.c.gz) = 4213af3e9a6cf208fa29b04512ce7c75
RMD160 (mod_gzip.c.gz) = 73d02ad1dd49858c4a9fa1d995651fc237b239fc
SHA1 (mod_gzip.c.gz) = 5b1e7add6ddee17806ff9801f196797b80831989
MD5 (mod_gzip-1.3.26.1a.tgz) = 080ccc5d789ed5efa0c0a7625e4fa02d
RMD160 (mod_gzip-1.3.26.1a.tgz) = 60499f6189c9b4e25657b27c272caf6243b64262
SHA1 (mod_gzip-1.3.26.1a.tgz) = b430dca7216ccb85c06bde972e508919d112ab1b

View File

@ -1,11 +0,0 @@
# $OpenBSD: Makefile.OpenBSD,v 1.1.1.1 2001/07/15 22:52:45 avsm Exp $
APXS= /usr/sbin/apxs
CC!= $(APXS) -q CC
CFLAGS!= $(APXS) -q CFLAGS
INCLUDES!= $(APXS) -q INCLUDEDIR
all: mod_gzip.so
mod_gzip.so: mod_gzip.c
$(APXS) -c mod_gzip.c

View File

@ -1,97 +0,0 @@
# mod_gzip_on [Yes/No]
#
# Use this command to turn mod_gzip 'on' or 'off'.
# The command can go into the base server configuration
# or be used to control if mod_gzip is active inside
# any particular virtual directory or host section.
#
mod_gzip_on Yes
# mod_gzip_item_include type regular_expression
# mod_gzip_item_exclude type regular_expression
#
# Use 'include' and 'exclude' commands to specify which
# items are eligible for compression.
#
# The valid values for 'type' field are...
#
# file, mime, handler, reqheader, rspheader.
#
# The 3rd parameter must be a valid 'regular expression'
# which will be used to 'match' the requested item(s).
#
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include mime text/.*
# NOTE: The following entry was required to compress negotiated
# home pages in version 1.3.17.1a but is now only needed
# if you would like to compress your directory listings...
#
# mod_gzip_item_include mime httpd/unix-directory
# mod_gzip_dechunk [Yes/No]
#
# If a response is being generated dynamically and
# the response content generator is always using
# 'Transfer-Encoding: chunked' then that response
# cannot normally be 'compressed' since a transport layer
# encoding is already being applied. The "mod_gzip_dechunk Yes"
# option will transparently remove all 'chunked' encoding
# and allow the response to be fully compressed. Certain
# versions of mod_php will need this option set ON for the
# dynamic output to be compressed. Whenever possible just
# make sure this option and the extra step required
# are NOT needed by making sure the response generator is NOT
# using 'Transfer-encoding: chunked'.
#
mod_gzip_dechunk yes
# mod_gzip_min_http [1000/1001/etc...]
#
# Only use this to 'block' browsers that don't support a
# certain minimum level of the HTTP protocol. The option
# uses the same internal 'numeric' value(s) used by Apache
# itself to indicate certain HTTP protocol support level(s).
#
# 1000=HTTP/1.0 1001=HTTP/1.1, etc.
#
# mod_gzip_min_http 1000
# mod_gzip_temp_dir /tmp
#
# Use this option to specify the directory that mod_gzip should
# use for workfiles. Do not add a trailing 'slash' to the name.
#
# Whenever possible ( and for the best performance ) this 'temporary'
# workfile directory should be a valid RAMDISK.
#
# The directory must already exist when Apache starts.
#
# Be sure permissions are set right for whatever directory is
# used as the 'temp_dir'. The User/Group used by the Server during
# runtime ( such as 'www' or 'nobody' ) must have read/write
# access to the directory. If permissions are incorrect then the
# mod_gzip 'result' string will probably be 'RECOVERY' and your
# Apache error_log will contain messages about mod_gzip being
# unable to access work files.
#
# If no 'mod_gzip_temp_dir' is specified then the DEFAULTS are...
#
# /tmp for UNIX
# c:\temp for Win32.
#
# WARNING: do NOT use /tmp for this purpose, as you could open
# yourself up to tmp-race attacks. Instead, create a directory
# with r/w access only for the webserver uid and gid.
mod_gzip_temp_dir /tmp
# mod_gzip_keep_workfiles [Yes/No]
#
# If this option is 'Yes' then mod_gzip will not delete any
# workfiles it may be generating in the 'mod_gzip_temp_dir'
# location. Use this option only for diagnostic purposes.
# The 'default' setting is 'No'.
#
mod_gzip_keep_workfiles No

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-mod_gzip_c,v 1.1.1.1 2001/07/15 22:52:46 avsm Exp $
--- mod_gzip.c.orig Tue Jun 19 22:07:58 2001
+++ mod_gzip.c Tue Jun 19 22:11:22 2001
@@ -7328,6 +7328,19 @@ long content_length
hbytes_out += mod_gzip_send(lbuf,mod_gzip_strlen(lbuf),r);
}
+ sprintf( lbuf, "Vary: Accept-Encoding" );
+
+ #ifdef MOD_GZIP_DEBUG1
+ mod_gzip_printf( "%s: HEADER: ADDING: lbuf=[%s]",cn,npp(lbuf));
+ #endif
+
+ mod_gzip_strcat( lbuf, "\r\n" );
+
+ if ( send_header )
+ {
+ hbytes_out += mod_gzip_send(lbuf,mod_gzip_strlen(lbuf),r);
+ }
+
sprintf( lbuf, "Content-Length: %ld",(long)content_length);
#ifdef MOD_GZIP_DEBUG1

View File

@ -7,7 +7,9 @@
| Also, copy the following file into your Apache config:
| ${PREFIX}/share/examples/mod_gzip/mod_gzip.conf.sample
|
| The manual is found at ${PREFIX}/share/doc/mod_gzip
|
| If you already have Apache running on your machine,
| you should not use "apachectl restart" - instead,
| you should fully stop and then restart the server.
| you should fully stop and then start the server.
+---------------

View File

@ -1,5 +1,20 @@
@comment $OpenBSD: PLIST,v 1.2 2001/08/13 03:27:09 brad Exp $
@comment $OpenBSD: PLIST,v 1.3 2003/05/24 15:37:45 avsm Exp $
lib/mod_gzip.so
sbin/mod_gzip-enable
share/doc/mod_gzip/browser.htm
share/doc/mod_gzip/cache.htm
share/doc/mod_gzip/config.htm
share/doc/mod_gzip/encoding.htm
share/doc/mod_gzip/enhancements.htm
share/doc/mod_gzip/extern.gif
share/doc/mod_gzip/firewalls.htm
share/doc/mod_gzip/index.htm
share/doc/mod_gzip/links.htm
share/doc/mod_gzip/mod_gzip_logo.gif
share/doc/mod_gzip/status.htm
share/doc/mod_gzip/valid-css.png
share/doc/mod_gzip/valid-xhtml11.png
share/doc/mod_gzip/versions.htm
share/examples/mod_gzip/mod_gzip.conf.sample
@dirrm share/examples/mod_gzip
@dirrm share/doc/mod_gzip