diff options
author | jeh <jeh@FreeBSD.org> | 2000-12-13 21:44:33 +0000 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2000-12-13 21:44:33 +0000 |
commit | c1911e88071082b8cf5bdd20fe9d52f8be5d58d5 (patch) | |
tree | 6cb07a6d68fbc5c21246ea9fa27b824bc64a31d0 /www | |
parent | 880b9a28c9615188fb55335cb98a194ad0857201 (diff) | |
download | FreeBSD-ports-c1911e88071082b8cf5bdd20fe9d52f8be5d58d5.zip FreeBSD-ports-c1911e88071082b8cf5bdd20fe9d52f8be5d58d5.tar.gz |
New Port: An Apache module that provides on-the fly gzipping for capable browsers
PR: 23530
Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_gzip/Makefile | 44 | ||||
-rw-r--r-- | www/mod_gzip/distinfo | 2 | ||||
-rw-r--r-- | www/mod_gzip/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_gzip/pkg-descr | 9 | ||||
-rw-r--r-- | www/mod_gzip/pkg-plist | 5 | ||||
-rw-r--r-- | www/mod_gzip2/Makefile | 44 | ||||
-rw-r--r-- | www/mod_gzip2/distinfo | 2 | ||||
-rw-r--r-- | www/mod_gzip2/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_gzip2/pkg-descr | 9 | ||||
-rw-r--r-- | www/mod_gzip2/pkg-plist | 5 |
11 files changed, 123 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index b949c79..b4fe913 100644 --- a/www/Makefile +++ b/www/Makefile @@ -101,6 +101,7 @@ SUBDIR += mod_dav SUBDIR += mod_dtcl SUBDIR += mod_fastcgi + SUBDIR += mod_gzip SUBDIR += mod_perl SUBDIR += mod_php3 SUBDIR += mod_php4 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 <mi@aldan.algebra.com> +# +# $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 <bsd.port.mk> 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" diff --git a/www/mod_gzip2/Makefile b/www/mod_gzip2/Makefile new file mode 100644 index 0000000..2233bc2 --- /dev/null +++ b/www/mod_gzip2/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: mod_gzip Apache module +# Date created: Dec 13 2000 +# Whom: Mikhail Teterin <mi@aldan.algebra.com> +# +# $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 <bsd.port.mk> diff --git a/www/mod_gzip2/distinfo b/www/mod_gzip2/distinfo new file mode 100644 index 0000000..d9c3940 --- /dev/null +++ b/www/mod_gzip2/distinfo @@ -0,0 +1,2 @@ +MD5 (mod_gzip/mod_gzip.c.gz) = 3b588205c6db5b26e86ef4f5421dc2dd +MD5 (mod_gzip/readme.txt) = 3a9decb840fcd71cf3bf98c1219f0837 diff --git a/www/mod_gzip2/pkg-comment b/www/mod_gzip2/pkg-comment new file mode 100644 index 0000000..e7e1598 --- /dev/null +++ b/www/mod_gzip2/pkg-comment @@ -0,0 +1 @@ +An Apache module that provides on-the fly gzipping for capable browsers diff --git a/www/mod_gzip2/pkg-descr b/www/mod_gzip2/pkg-descr new file mode 100644 index 0000000..4472b21 --- /dev/null +++ b/www/mod_gzip2/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_gzip2/pkg-plist b/www/mod_gzip2/pkg-plist new file mode 100644 index 0000000..b84062d --- /dev/null +++ b/www/mod_gzip2/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" |