mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
Add p5-Apache-Compress 1.003, auto-compress web files with Gzip.
PR: 56652 Submitted by: Martin Matuska <martin@tradex.sk>
This commit is contained in:
parent
792230caa4
commit
3a98c19091
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89978
@ -291,6 +291,7 @@
|
||||
SUBDIR += p5-Apache-AutoIndex
|
||||
SUBDIR += p5-Apache-AxKit-Plugin-AddXSLParams-Request
|
||||
SUBDIR += p5-Apache-Clean
|
||||
SUBDIR += p5-Apache-Compress
|
||||
SUBDIR += p5-Apache-ConfigFile
|
||||
SUBDIR += p5-Apache-DBI
|
||||
SUBDIR += p5-Apache-DumpHeaders
|
||||
|
35
www/p5-Apache-Compress/Makefile
Normal file
35
www/p5-Apache-Compress/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: p5-Apache-Compress
|
||||
# Date created: Sep 09 2003
|
||||
# Whom: Martin Matuska <martin@tradex.sk>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Apache-Compress
|
||||
PORTVERSION= 1.003
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Apache/KWILLIAMS
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= martin@tradex.sk
|
||||
COMMENT= Auto-compress web files with Gzip
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Apache.pm:${PORTSDIR}/www/mod_perl \
|
||||
${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
MAN3= Apache::Compress.3
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for docfile in README Changes
|
||||
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/p5-Apache-Compress/distinfo
Normal file
1
www/p5-Apache-Compress/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Apache-Compress-1.003.tar.gz) = 9d1b571995961223bdb5e005f42e1c76
|
21
www/p5-Apache-Compress/files/patch-Makefile.PL
Normal file
21
www/p5-Apache-Compress/files/patch-Makefile.PL
Normal file
@ -0,0 +1,21 @@
|
||||
--- Makefile.PL.orig Tue Sep 9 20:16:44 2003
|
||||
+++ Makefile.PL Tue Sep 9 20:17:08 2003
|
||||
@@ -2,12 +2,12 @@
|
||||
use lib 't/lib'; # distributed here until changes are incorporated into the real version
|
||||
use Apache::test;
|
||||
|
||||
-my %params = Apache::test->get_test_params();
|
||||
-chomp (my $cwd = `pwd`);
|
||||
-Apache::test->write_httpd_conf
|
||||
- (%params,
|
||||
- include => do {local $/; <DATA>});
|
||||
-*MY::test = sub { Apache::test->MM_test(%params) };
|
||||
+#my %params = Apache::test->get_test_params();
|
||||
+#chomp (my $cwd = `pwd`);
|
||||
+#Apache::test->write_httpd_conf
|
||||
+# (%params,
|
||||
+# include => do {local $/; <DATA>});
|
||||
+#*MY::test = sub { Apache::test->MM_test(%params) };
|
||||
|
||||
my $module = 'Apache::Compress';
|
||||
my ($name, $dir);
|
10
www/p5-Apache-Compress/pkg-descr
Normal file
10
www/p5-Apache-Compress/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
This module lets you send the content of an HTTP response as gzip-
|
||||
compressed data. Certain browsers (Netscape, IE) can request content
|
||||
compression via the `Content-Encoding' header. This can speed things up
|
||||
if you're sending large files to your users through slow connections.
|
||||
|
||||
Browsers that don't request gzipped data will receive regular
|
||||
noncompressed data.
|
||||
|
||||
This module is compatibile with Apache::Filter, so you can compress the
|
||||
output of other content-generators.
|
8
www/p5-Apache-Compress/pkg-plist
Normal file
8
www/p5-Apache-Compress/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
%%SITE_PERL%%/Apache/Compress.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/Compress/.packlist
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Changes
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/Compress
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/Apache 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user