summaryrefslogtreecommitdiff
path: root/www/mod_gzip
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-12-13 21:44:33 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-12-13 21:44:33 +0000
commit1777c580eb9cf55cc08d55ee0a31f68e11381f14 (patch)
treef3094ef2b33bf9ed0d6fcc2db78422433dadf0e1 /www/mod_gzip
parentChase checksum. (diff)
New Port: An Apache module that provides on-the fly gzipping for capable browsers
PR: 23530 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=35963
Diffstat (limited to 'www/mod_gzip')
-rw-r--r--www/mod_gzip/Makefile44
-rw-r--r--www/mod_gzip/distinfo2
-rw-r--r--www/mod_gzip/pkg-comment1
-rw-r--r--www/mod_gzip/pkg-descr9
-rw-r--r--www/mod_gzip/pkg-plist5
5 files changed, 61 insertions, 0 deletions
diff --git a/www/mod_gzip/Makefile b/www/mod_gzip/Makefile
new file mode 100644
index 000000000000..2233bc240d97
--- /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 000000000000..d9c3940f401c
--- /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 000000000000..e7e1598847a6
--- /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 000000000000..4472b21fe2b7
--- /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 000000000000..b84062ddf639
--- /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"