From 9bbd52917d860d26da7bb48af6057ca0b9c90def Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Sat, 21 Jun 2003 08:26:58 +0000 Subject: [PATCH] Add p5-CGI-Upload 1.05, cGI class for handling browser file uploads. PR: 53574 Submitted by: Daniel B. Hemmerich --- www/Makefile | 1 + www/p5-CGI-Upload/Makefile | 26 ++++++++++++++++++++++++++ www/p5-CGI-Upload/distinfo | 1 + www/p5-CGI-Upload/pkg-descr | 15 +++++++++++++++ www/p5-CGI-Upload/pkg-plist | 5 +++++ 5 files changed, 48 insertions(+) create mode 100644 www/p5-CGI-Upload/Makefile create mode 100644 www/p5-CGI-Upload/distinfo create mode 100644 www/p5-CGI-Upload/pkg-descr create mode 100644 www/p5-CGI-Upload/pkg-plist diff --git a/www/Makefile b/www/Makefile index be46db3c7565..f64caad32784 100644 --- a/www/Makefile +++ b/www/Makefile @@ -324,6 +324,7 @@ SUBDIR += p5-CGI-Minimal SUBDIR += p5-CGI-Session SUBDIR += p5-CGI-SpeedyCGI + SUBDIR += p5-CGI-Upload SUBDIR += p5-CGI-XMLApplication SUBDIR += p5-CGI-modules SUBDIR += p5-CGI.pm diff --git a/www/p5-CGI-Upload/Makefile b/www/p5-CGI-Upload/Makefile new file mode 100644 index 000000000000..64bcefe24f02 --- /dev/null +++ b/www/p5-CGI-Upload/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: p5-CGI-Upload +# Date created: 21 June 2003 +# Whom: Daniel B. Hemmerich +# +# $FreeBSD$ +# + +PORTNAME= CGI-Upload +PORTVERSION= 1.05 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= CGI +PKGNAMEPREFIX= p5- + +MAINTAINER= ports-freebsd@FreeBSDsecurity.com +COMMENT= CGI class for handling browser file uploads + +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTTP/BrowserDetect.pm:${PORTSDIR}/www/p5-HTTP-BrowserDetect \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic + +PERL_CONFIGURE= yes + +MAN3= CGI::Upload.3 +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include diff --git a/www/p5-CGI-Upload/distinfo b/www/p5-CGI-Upload/distinfo new file mode 100644 index 000000000000..dc6a72308546 --- /dev/null +++ b/www/p5-CGI-Upload/distinfo @@ -0,0 +1 @@ +MD5 (CGI-Upload-1.05.tar.gz) = 30ae6bb548d9806b74ff3e2fde8fcdfc diff --git a/www/p5-CGI-Upload/pkg-descr b/www/p5-CGI-Upload/pkg-descr new file mode 100644 index 000000000000..5ef193dcd0fa --- /dev/null +++ b/www/p5-CGI-Upload/pkg-descr @@ -0,0 +1,15 @@ +This module has been written to provide a simple and secure +manner by which to handle files uploaded in multipart/form-data +requests through a web browser. The primary advantage which this +module offers over existing modules is the single interface +which it provides for the most often required information +regarding files uploaded in this manner. + +This module builds upon primarily the CGI and File::MMagic +modules and offers some tidy and succinct methods for the +handling of files uploaded via multipart/form-data requests. + +WWW: http://search.cpan.org/search?dist=CGI-Upload + +- Daniel B. Hemmerich +ports-freebsd@FreeBSDsecurity.com diff --git a/www/p5-CGI-Upload/pkg-plist b/www/p5-CGI-Upload/pkg-plist new file mode 100644 index 000000000000..c819cef38beb --- /dev/null +++ b/www/p5-CGI-Upload/pkg-plist @@ -0,0 +1,5 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Upload/.packlist +lib/perl5/site_perl/%%PERL_VER%%/CGI/Upload.pm +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Upload +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/CGI 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true