Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2000 13:29:20 -0500 (EST)
From:      Mikhail Teterin <mi@monsta.privatelabs.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23530: new port: www/mod_gzip
Message-ID:  <200012131829.eBDITKR08665@monsta.privatelabs.com>
Resent-Message-ID: <200012131830.eBDIU1R01708@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23530
>Category:       ports
>Synopsis:       new port: www/mod_gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 10:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

This apache's module detects the browsers capable of decompressing
the objects on the fly and applies compression to pages, etc. sent
to those browsers. This includes dynamicly generated content too.

Due to browsers' bugs or for other reasons (gzip-ing a typical JPEG
file is silly, for example) you may wish to disable compression of
some MIME-types and mod_gzip allows you to do that.

WWW: http://www.remotecommunications.com/apache/mod_gzip/

>How-To-Repeat:

>Fix:

Yes, I don't like the MASTER_SITE either, but that's what the
web-page refers to -- IP address only...

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile
#	distinfo
#	pkg-comment
#	pkg-descr
#	pkg-plist
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# New ports collection makefile for:	mod_gzip Apache module
X# Date created:		Dec 13 2000
X# Whom:			Mikhail Teterin <mi@aldan.algebra.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_gzip
XPORTVERSION=	1.3.14.6e
XCATEGORIES=	www
XMASTER_SITES=	http://12.17.228.52/mod_gzip/src/${PORTVERSION}/
XDISTFILES=	${PORTNAME}.c.gz
XEXTRACT_ONLY=	${DISTFILES:M*.gz}
X
XMAINTAINER=	mi@aldan.algebra.com
X
XBUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
X
XNO_WRKSUBDIR=	YES
X
XDIST_SUBDIR=	${PORTNAME}
XEXTRACT_AFTER_ARGS=	> ${PORTNAME}.c
X
Xdo-build:
X	cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -c ${PORTNAME}.c
X
Xdo-install:
X	cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -A -i ${PORTNAME}.so
X
X.if !defined(NOPORTDOCS)
XDISTFILES+=	readme.txt
XPLIST_SUB+=	DOC=''
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
X	@${INSTALL_DATA} ${_DISTDIR}/${DISTFILES:N*gz} \
X		${PREFIX}/share/doc/${PORTNAME}
X
X.else
XPLIST_SUB+=	DOC='@comment '
X.endif
X
X.include <bsd.port.mk>
END-of-Makefile
echo x - distinfo
sed 's/^X//' >distinfo << 'END-of-distinfo'
XMD5 (mod_gzip/mod_gzip.c.gz) = 3b588205c6db5b26e86ef4f5421dc2dd
XMD5 (mod_gzip/readme.txt) = 3a9decb840fcd71cf3bf98c1219f0837
END-of-distinfo
echo x - pkg-comment
sed 's/^X//' >pkg-comment << 'END-of-pkg-comment'
XAn Apache module that provides on-the fly gzipping for capable browsers
END-of-pkg-comment
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
XThis apache's module detects the browsers capable of decompressing
Xthe objects on the fly and applies compression to pages, etc. sent
Xto those browsers. This includes dynamicly generated content too.
X
XDue to browsers' bugs or for other reasons (gzip-ing a typical JPEG
Xfile is silly, for example) you may wish to disable compression of
Xsome MIME-types and mod_gzip allows you to do that.
X
XWWW: http://www.remotecommunications.com/apache/mod_gzip/
END-of-pkg-descr
echo x - pkg-plist
sed 's/^X//' >pkg-plist << 'END-of-pkg-plist'
Xlibexec/apache/mod_gzip.so
X%%DOC%%share/doc/mod_gzip/readme.txt
X%%DOC%%@dirrm share/doc/mod_gzip
X@exec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so; echo "	enable the mod_gzip in Apache's config manually"
X@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so || echo "	remove the mod_gzip from Apache's config manually"
END-of-pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012131829.eBDITKR08665>