From c1911e88071082b8cf5bdd20fe9d52f8be5d58d5 Mon Sep 17 00:00:00 2001 From: jeh Date: Wed, 13 Dec 2000 21:44:33 +0000 Subject: New Port: An Apache module that provides on-the fly gzipping for capable browsers PR: 23530 Submitted by: Mikhail Teterin --- www/mod_gzip/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ www/mod_gzip/distinfo | 2 ++ www/mod_gzip/pkg-comment | 1 + www/mod_gzip/pkg-descr | 9 +++++++++ www/mod_gzip/pkg-plist | 5 +++++ 5 files changed, 61 insertions(+) create mode 100644 www/mod_gzip/Makefile create mode 100644 www/mod_gzip/distinfo create mode 100644 www/mod_gzip/pkg-comment create mode 100644 www/mod_gzip/pkg-descr create mode 100644 www/mod_gzip/pkg-plist (limited to 'www/mod_gzip') diff --git a/www/mod_gzip/Makefile b/www/mod_gzip/Makefile new file mode 100644 index 0000000..2233bc2 --- /dev/null +++ b/www/mod_gzip/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: mod_gzip Apache module +# Date created: Dec 13 2000 +# Whom: Mikhail Teterin +# +# $FreeBSD$ +# + +PORTNAME= mod_gzip +PORTVERSION= 1.3.14.6e +CATEGORIES= www +MASTER_SITES= http://12.17.228.52/mod_gzip/src/${PORTVERSION}/ +DISTFILES= ${PORTNAME}.c.gz +EXTRACT_ONLY= ${DISTFILES:M*.gz} + +MAINTAINER= mi@aldan.algebra.com + +BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 + +NO_WRKSUBDIR= YES + +DIST_SUBDIR= ${PORTNAME} +EXTRACT_AFTER_ARGS= > ${PORTNAME}.c + +do-build: + cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -c ${PORTNAME}.c + +do-install: + cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -A -i ${PORTNAME}.so + +.if !defined(NOPORTDOCS) +DISTFILES+= readme.txt +PLIST_SUB+= DOC='' + +post-install: + @${MKDIR} ${PREFIX}/share/doc/${PORTNAME} + @${INSTALL_DATA} ${_DISTDIR}/${DISTFILES:N*gz} \ + ${PREFIX}/share/doc/${PORTNAME} + +.else +PLIST_SUB+= DOC='@comment ' +.endif + +.include diff --git a/www/mod_gzip/distinfo b/www/mod_gzip/distinfo new file mode 100644 index 0000000..d9c3940 --- /dev/null +++ b/www/mod_gzip/distinfo @@ -0,0 +1,2 @@ +MD5 (mod_gzip/mod_gzip.c.gz) = 3b588205c6db5b26e86ef4f5421dc2dd +MD5 (mod_gzip/readme.txt) = 3a9decb840fcd71cf3bf98c1219f0837 diff --git a/www/mod_gzip/pkg-comment b/www/mod_gzip/pkg-comment new file mode 100644 index 0000000..e7e1598 --- /dev/null +++ b/www/mod_gzip/pkg-comment @@ -0,0 +1 @@ +An Apache module that provides on-the fly gzipping for capable browsers diff --git a/www/mod_gzip/pkg-descr b/www/mod_gzip/pkg-descr new file mode 100644 index 0000000..4472b21 --- /dev/null +++ b/www/mod_gzip/pkg-descr @@ -0,0 +1,9 @@ +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/ diff --git a/www/mod_gzip/pkg-plist b/www/mod_gzip/pkg-plist new file mode 100644 index 0000000..b84062d --- /dev/null +++ b/www/mod_gzip/pkg-plist @@ -0,0 +1,5 @@ +libexec/apache/mod_gzip.so +%%DOC%%share/doc/mod_gzip/readme.txt +%%DOC%%@dirrm share/doc/mod_gzip +@exec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so; echo " enable the mod_gzip in Apache's config manually" +@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so || echo " remove the mod_gzip from Apache's config manually" -- cgit v1.1