Add p5-CGI-Application-Plugin-Stream 2.05, plugin that adds file

streaming support to CGI::Application.

PR:		ports/103387
Submitted by:	George Hartzell <hartzell at alerce.com>
This commit is contained in:
Cheng-Lung Sung 2006-12-07 10:18:15 +00:00
parent b7e78ef9b8
commit dad55a4d43
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179103
5 changed files with 56 additions and 0 deletions

View file

@ -521,6 +521,7 @@
SUBDIR += p5-CGI-Application-Plugin-HTMLPrototype SUBDIR += p5-CGI-Application-Plugin-HTMLPrototype
SUBDIR += p5-CGI-Application-Plugin-HtmlTidy SUBDIR += p5-CGI-Application-Plugin-HtmlTidy
SUBDIR += p5-CGI-Application-Plugin-Redirect SUBDIR += p5-CGI-Application-Plugin-Redirect
SUBDIR += p5-CGI-Application-Plugin-Stream
SUBDIR += p5-CGI-Application-Plugin-ValidateRM SUBDIR += p5-CGI-Application-Plugin-ValidateRM
SUBDIR += p5-CGI-Application-Server SUBDIR += p5-CGI-Application-Server
SUBDIR += p5-CGI-ArgChecker SUBDIR += p5-CGI-ArgChecker

View file

@ -0,0 +1,31 @@
# New ports collection makefile for: www/p5-CGI-Application-Plugin-Stream
# Date created: 14 September 2005
# Whom: George Hartzell <hartzell@alerce.com>
#
# $FreeBSD$
#
PORTNAME= CGI-Application-Plugin-Stream
PORTVERSION= 2.05
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
PKGNAMEPREFIX= p5-
MAINTAINER= hartzell@alerce.com
COMMENT= Plugin that adds file streaming support to CGI::Application
BUILD_DEPENDS= ${SITE_PERL}/CGI/Application.pm:${PORTSDIR}/www/p5-CGI-Application \
${SITE_PERL}/CGI/Application/Plugin/AutoRunmode.pm:${PORTSDIR}/www/p5-CGI-Application-Plugin-AutoRunmode \
${SITE_PERL}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_MODBUILD= yes
MAN3= CGI::Application::Plugin::Stream.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
IGNORE= requires Perl 5.8 or newer. Install lang/perl5.8, and try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (CGI-Application-Plugin-Stream-2.05.tar.gz) = 687a6be94eada6f499b3842596935231
SHA256 (CGI-Application-Plugin-Stream-2.05.tar.gz) = 9c3554ea4df4d78bb28c263ef35fb1213a3cb33181c025e9f481eb9a7fc661a1
SIZE (CGI-Application-Plugin-Stream-2.05.tar.gz) = 5523

View file

@ -0,0 +1,17 @@
This plugin provides a way to stream a file back to the user.
This is useful if you are creating a PDF or Spreadsheet document
dynamically to deliver to the user.
The file is read and printed in small chunks to keep memory
consumption down.
This plugin is a consumer, as in your runmode shouldn't try to do any
output or anything afterwards. This plugin affects the HTTP response
headers, so anything you do afterwards will probably not work. If you
pass along a filehandle, we'll make sure to close it for you.
It's recommended that you increment $| (or set it to 1), which will
autoflush the buffer as your application is streaming out the file.
WWW: http://search.cpan.org/dist/CGI-Application-Plugin-Stream/

View file

@ -0,0 +1,4 @@
%%SITE_PERL%%/CGI/Application/Plugin/Stream.pm
@dirrmtry %%SITE_PERL%%/CGI/Application/Plugin
@dirrmtry %%SITE_PERL%%/CGI/Application
@dirrmtry %%SITE_PERL%%/CGI