ports/53574: New port: perl CGI::Upload for handling browser file uploads

Daniel B. Hemmerich ports-freebsd at FreeBSDsecurity.com
Sat Jun 21 05:20:19 UTC 2003


>Number:         53574
>Category:       ports
>Synopsis:       New port: perl CGI::Upload for handling browser file uploads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 20 22:20:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Daniel B. Hemmerich
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
BSDpro.com / FreeBSDsecurity.com
>Environment:
System: FreeBSD my.host 4.8-RELEASE FreeBSD 4.8-RELEASE #5: Tue May 20 21:51:55 EDT 2003 me at my.host:/usr/obj/usr/src/sys/KERNCONF i386

>Description:
New port...

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. 

>How-To-Repeat:
N/A

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       p5-CGI-Upload
#       p5-CGI-Upload/pkg-plist
#       p5-CGI-Upload/pkg-descr
#       p5-CGI-Upload/distinfo
#       p5-CGI-Upload/Makefile
#
echo c - p5-CGI-Upload
mkdir -p p5-CGI-Upload > /dev/null 2>&1
echo x - p5-CGI-Upload/pkg-plist
sed 's/^X//' >p5-CGI-Upload/pkg-plist << 'END-of-p5-CGI-Upload/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Upload/.packlist
Xlib/perl5/site_perl/%%PERL_VER%%/CGI/Upload.pm
X at dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Upload
X at unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/CGI 2>/dev/null || true
X at unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true
END-of-p5-CGI-Upload/pkg-plist
echo x - p5-CGI-Upload/pkg-descr
sed 's/^X//' >p5-CGI-Upload/pkg-descr << 'END-of-p5-CGI-Upload/pkg-descr'
XThis module has been written to provide a simple and secure
Xmanner by which to handle files uploaded in multipart/form-data
Xrequests through a web browser. The primary advantage which this
Xmodule offers over existing modules is the single interface
Xwhich it provides for the most often required information
Xregarding files uploaded in this manner. 
X
XThis module builds upon primarily the CGI and File::MMagic
Xmodules and offers some tidy and succinct methods for the
Xhandling of files uploaded via multipart/form-data requests. 
X
XWWW: http://search.cpan.org/search?dist=CGI-Upload
X
X- Daniel B. Hemmerich
Xports-freebsd at FreeBSDsecurity.com
END-of-p5-CGI-Upload/pkg-descr
echo x - p5-CGI-Upload/distinfo
sed 's/^X//' >p5-CGI-Upload/distinfo << 'END-of-p5-CGI-Upload/distinfo'
XMD5 (CGI-Upload-1.05.tar.gz) = 30ae6bb548d9806b74ff3e2fde8fcdfc
END-of-p5-CGI-Upload/distinfo
echo x - p5-CGI-Upload/Makefile
sed 's/^X//' >p5-CGI-Upload/Makefile << 'END-of-p5-CGI-Upload/Makefile'
X# New ports collection makefile for:   p5-CGI-Upload
X# Date created:                        21 June 2003
X# Whom:                                Daniel B. Hemmerich
X#
X# $FreeBSD$
X#
X
XPORTNAME=      CGI-Upload
XPORTVERSION=   1.05
XCATEGORIES=    www perl5
XMASTER_SITES=  ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=    CGI
XPKGNAMEPREFIX= p5-
X
XMAINTAINER=    ports-freebsd at FreeBSDsecurity.com
XCOMMENT=       CGI class for handling browser file uploads
X
XBUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTTP/BrowserDetect.pm:${PORTSDIR}/www/p5-HTTP-BrowserDetect \
X               ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic
X
XPERL_CONFIGURE=        yes
X
XMAN3=          CGI::Upload.3
XMANPREFIX=     ${PREFIX}/lib/perl5/${PERL_VERSION}
X
X.include <bsd.port.mk>
END-of-p5-CGI-Upload/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list