www/60196: New port: pear-HTTP_Upload: Easy and secure managment of
files submitted via HTML Forms
Alex Miller
asm at asm.kiev.ua
Fri Dec 12 15:40:34 PST 2003
>Number: 60196
>Category: www
>Synopsis: New port: pear-HTTP_Upload: Easy and secure managment of files submitted via HTML Forms
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 12 15:40:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Alex Miller <asm at asm.kiev.ua>
>Release: FreeBSD 5.1-RELEASE-p10 i386
>Organization:
Home Sweet Home, Inc.
>Environment:
System: FreeBSD 5.1-RELEASE-p10 #5: Sat Oct 4 15:01:03 EEST 2003 asm at piggy.asa.org.ua:PIGGY i386
>Description:
This class provides an advanced file uploader system for file uploads made
from html forms. Features:
* Can handle from one file to multiple files.
* Safe file copying from tmp dir.
* Easy detecting mechanism of valid upload, missing upload or error.
* Gives extensive information about the uploaded file.
* Rename uploaded files in different ways: as it is, safe or unique
* Validate allowed file extensions
* Multiple languages error messages support (es, en, de, fr, nl)
WWW: http://pear.php.net/package-info.php?package=HTTP_Upload
>How-To-Repeat:
>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:
#
# www/pear-HTTP_Upload/
# www/pear-HTTP_Upload/Makefile
# www/pear-HTTP_Upload/distinfo
# www/pear-HTTP_Upload/pkg-descr
# www/pear-HTTP_Upload/pkg-plist
#
echo c - www/pear-HTTP_Upload/
mkdir -p www/pear-HTTP_Upload/ > /dev/null 2>&1
echo x - www/pear-HTTP_Upload/Makefile
sed 's/^X//' >www/pear-HTTP_Upload/Makefile << 'END-of-www/pear-HTTP_Upload/Makefile'
X# Ports collection makefile for: pear-HTTP_Upload
X# Date created: 13 December 2003
X# Whom: Alex Miller (<asm at asm.kiev.ua>)
X#
X# $FreeBSD$
X#
X
XPORTNAME= HTTP_Upload
XPORTVERSION= 0.8.1
XCATEGORIES= devel www pear
X
XMAINTAINER= ports at FreeBSD.org
XCOMMENT= Easy and secure managment of files submitted via HTML Forms
X
XBUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
X.include <bsd.port.pre.mk>
X.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
X
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/docs/upload_example.php ${DOCSDIR}
X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X.endif
X
Xdo-install:
X @${CP} ${WRKSRC}/Upload.php ${PEARDIR}
X @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Upload.php
X
X.include <bsd.port.post.mk>
END-of-www/pear-HTTP_Upload/Makefile
echo x - www/pear-HTTP_Upload/distinfo
sed 's/^X//' >www/pear-HTTP_Upload/distinfo << 'END-of-www/pear-HTTP_Upload/distinfo'
XMD5 (PEAR/HTTP_Upload-0.8.1.tgz) = 142a87c46988276247a425cf41e6302b
END-of-www/pear-HTTP_Upload/distinfo
echo x - www/pear-HTTP_Upload/pkg-descr
sed 's/^X//' >www/pear-HTTP_Upload/pkg-descr << 'END-of-www/pear-HTTP_Upload/pkg-descr'
XThis class provides an advanced file uploader system for file uploads made
Xfrom html forms. Features:
X * Can handle from one file to multiple files.
X * Safe file copying from tmp dir.
X * Easy detecting mechanism of valid upload, missing upload or error.
X * Gives extensive information about the uploaded file.
X * Rename uploaded files in different ways: as it is, safe or unique
X * Validate allowed file extensions
X * Multiple languages error messages support (es, en, de, fr, nl)
X
XWWW: http://pear.php.net/package-info.php?package=HTTP_Upload
END-of-www/pear-HTTP_Upload/pkg-descr
echo x - www/pear-HTTP_Upload/pkg-plist
sed 's/^X//' >www/pear-HTTP_Upload/pkg-plist << 'END-of-www/pear-HTTP_Upload/pkg-plist'
X%%PEARDIR%%/Upload.php
X%%PKGREGDIR%%/package.xml
X%%PORTDOCS%%%%DOCSDIR%%/upload_example.php
X at dirrm %%PEARDIR%%
X at dirrm %%PKGREGDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-www/pear-HTTP_Upload/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list