diff options
author | clsung <clsung@FreeBSD.org> | 2006-12-07 18:18:15 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-12-07 18:18:15 +0800 |
commit | 81dd54ec2a95c6e35056cd9e106c820aeaca8a45 (patch) | |
tree | 5a87404725b3c5ab3625102557d5a0776e0dbb22 /www/p5-CGI-Application-Plugin-Stream | |
parent | 668b2697876d58c1208e8ba360ed7f7563c9978d (diff) | |
download | freebsd-ports-gnome-81dd54ec2a95c6e35056cd9e106c820aeaca8a45.tar.gz freebsd-ports-gnome-81dd54ec2a95c6e35056cd9e106c820aeaca8a45.tar.zst freebsd-ports-gnome-81dd54ec2a95c6e35056cd9e106c820aeaca8a45.zip |
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>
Diffstat (limited to 'www/p5-CGI-Application-Plugin-Stream')
-rw-r--r-- | www/p5-CGI-Application-Plugin-Stream/Makefile | 31 | ||||
-rw-r--r-- | www/p5-CGI-Application-Plugin-Stream/distinfo | 3 | ||||
-rw-r--r-- | www/p5-CGI-Application-Plugin-Stream/pkg-descr | 17 | ||||
-rw-r--r-- | www/p5-CGI-Application-Plugin-Stream/pkg-plist | 4 |
4 files changed, 55 insertions, 0 deletions
diff --git a/www/p5-CGI-Application-Plugin-Stream/Makefile b/www/p5-CGI-Application-Plugin-Stream/Makefile new file mode 100644 index 000000000000..ea85a8226efe --- /dev/null +++ b/www/p5-CGI-Application-Plugin-Stream/Makefile @@ -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> diff --git a/www/p5-CGI-Application-Plugin-Stream/distinfo b/www/p5-CGI-Application-Plugin-Stream/distinfo new file mode 100644 index 000000000000..3efc31cab876 --- /dev/null +++ b/www/p5-CGI-Application-Plugin-Stream/distinfo @@ -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 diff --git a/www/p5-CGI-Application-Plugin-Stream/pkg-descr b/www/p5-CGI-Application-Plugin-Stream/pkg-descr new file mode 100644 index 000000000000..428d61a958dd --- /dev/null +++ b/www/p5-CGI-Application-Plugin-Stream/pkg-descr @@ -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/ diff --git a/www/p5-CGI-Application-Plugin-Stream/pkg-plist b/www/p5-CGI-Application-Plugin-Stream/pkg-plist new file mode 100644 index 000000000000..ecae73f21e3d --- /dev/null +++ b/www/p5-CGI-Application-Plugin-Stream/pkg-plist @@ -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 |