mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
New Port: An Apache module that provides on-the fly gzipping for capable browsers
PR: 23530 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
This commit is contained in:
parent
c31a5e5669
commit
1777c580eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35963
@ -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
|
||||
|
44
www/mod_gzip/Makefile
Normal file
44
www/mod_gzip/Makefile
Normal file
@ -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>
|
2
www/mod_gzip/distinfo
Normal file
2
www/mod_gzip/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (mod_gzip/mod_gzip.c.gz) = 3b588205c6db5b26e86ef4f5421dc2dd
|
||||
MD5 (mod_gzip/readme.txt) = 3a9decb840fcd71cf3bf98c1219f0837
|
1
www/mod_gzip/pkg-comment
Normal file
1
www/mod_gzip/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An Apache module that provides on-the fly gzipping for capable browsers
|
9
www/mod_gzip/pkg-descr
Normal file
9
www/mod_gzip/pkg-descr
Normal file
@ -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/
|
5
www/mod_gzip/pkg-plist
Normal file
5
www/mod_gzip/pkg-plist
Normal file
@ -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"
|
44
www/mod_gzip2/Makefile
Normal file
44
www/mod_gzip2/Makefile
Normal file
@ -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>
|
2
www/mod_gzip2/distinfo
Normal file
2
www/mod_gzip2/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (mod_gzip/mod_gzip.c.gz) = 3b588205c6db5b26e86ef4f5421dc2dd
|
||||
MD5 (mod_gzip/readme.txt) = 3a9decb840fcd71cf3bf98c1219f0837
|
1
www/mod_gzip2/pkg-comment
Normal file
1
www/mod_gzip2/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An Apache module that provides on-the fly gzipping for capable browsers
|
9
www/mod_gzip2/pkg-descr
Normal file
9
www/mod_gzip2/pkg-descr
Normal file
@ -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/
|
5
www/mod_gzip2/pkg-plist
Normal file
5
www/mod_gzip2/pkg-plist
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user