summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-12-28 08:56:37 +0000
committeredwin <edwin@FreeBSD.org>2003-12-28 08:56:37 +0000
commit7cc07272755834d36574a5c78c6b05858e222bee (patch)
treeccc1c7f49ea690c94353ab6c726217250561d05e
parentfd8e7c4005674211cd048d3fd401859717bfd17d (diff)
downloadFreeBSD-ports-7cc07272755834d36574a5c78c6b05858e222bee.zip
FreeBSD-ports-7cc07272755834d36574a5c78c6b05858e222bee.tar.gz
New port: pear-HTTP_Upload: Easy and secure managment of files submitted via HTML Forms
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 PR: ports/60196 Submitted by: Alex Miller <asm@asm.kiev.ua>
-rw-r--r--www/Makefile1
-rw-r--r--www/pear-HTTP_Upload/Makefile31
-rw-r--r--www/pear-HTTP_Upload/distinfo1
-rw-r--r--www/pear-HTTP_Upload/pkg-descr11
-rw-r--r--www/pear-HTTP_Upload/pkg-plist5
5 files changed, 49 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 4d75361..7829c84 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -445,6 +445,7 @@
SUBDIR += pear-HTTP
SUBDIR += pear-HTTP_Header
SUBDIR += pear-HTTP_Session
+ SUBDIR += pear-HTTP_Upload
SUBDIR += pgdriver
SUBDIR += pglogd
SUBDIR += photo_gallery
diff --git a/www/pear-HTTP_Upload/Makefile b/www/pear-HTTP_Upload/Makefile
new file mode 100644
index 0000000..bb76d45
--- /dev/null
+++ b/www/pear-HTTP_Upload/Makefile
@@ -0,0 +1,31 @@
+# Ports collection makefile for: pear-HTTP_Upload
+# Date created: 13 December 2003
+# Whom: Alex Miller (<asm@asm.kiev.ua>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= HTTP_Upload
+PORTVERSION= 0.8.1
+CATEGORIES= www devel pear
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Easy and secure managment of files submitted via HTML Forms
+
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
+
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/docs/upload_example.php ${DOCSDIR}
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+do-install:
+ @${CP} ${WRKSRC}/Upload.php ${PEARDIR}
+ @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Upload.php
+
+.include <bsd.port.post.mk>
diff --git a/www/pear-HTTP_Upload/distinfo b/www/pear-HTTP_Upload/distinfo
new file mode 100644
index 0000000..7ccf613
--- /dev/null
+++ b/www/pear-HTTP_Upload/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/HTTP_Upload-0.8.1.tgz) = 142a87c46988276247a425cf41e6302b
diff --git a/www/pear-HTTP_Upload/pkg-descr b/www/pear-HTTP_Upload/pkg-descr
new file mode 100644
index 0000000..6ce8f3d
--- /dev/null
+++ b/www/pear-HTTP_Upload/pkg-descr
@@ -0,0 +1,11 @@
+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
diff --git a/www/pear-HTTP_Upload/pkg-plist b/www/pear-HTTP_Upload/pkg-plist
new file mode 100644
index 0000000..eb5a7bc
--- /dev/null
+++ b/www/pear-HTTP_Upload/pkg-plist
@@ -0,0 +1,5 @@
+%%PEARDIR%%/Upload.php
+%%PKGREGDIR%%/package.xml
+%%PORTDOCS%%%%DOCSDIR%%/upload_example.php
+@dirrm %%PKGREGDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud