aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-06-19 01:04:25 +0800
committeraaron <aaron@FreeBSD.org>2006-06-19 01:04:25 +0800
commit331b9c6e9c7aae4a8fb3fa08d0cbe284ef2bab33 (patch)
tree4a8d610d67dbdd9c749d5f68236de28a5b5cca52 /www
parentecd0ebf8ad7582688dfd4921dd4361224dacd44b (diff)
downloadfreebsd-ports-gnome-331b9c6e9c7aae4a8fb3fa08d0cbe284ef2bab33.tar.gz
freebsd-ports-gnome-331b9c6e9c7aae4a8fb3fa08d0cbe284ef2bab33.tar.zst
freebsd-ports-gnome-331b9c6e9c7aae4a8fb3fa08d0cbe284ef2bab33.zip
Adding port www/p5-CGI-Untaint-date, validate an incoming date.
Approved by: tobez (implicit)
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-CGI-Untaint-date/Makefile33
-rw-r--r--www/p5-CGI-Untaint-date/distinfo3
-rw-r--r--www/p5-CGI-Untaint-date/pkg-descr13
-rw-r--r--www/p5-CGI-Untaint-date/pkg-plist7
5 files changed, 57 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 9f8d7b96fa71..4f681ea5185f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -505,6 +505,7 @@
SUBDIR += p5-CGI-Simple
SUBDIR += p5-CGI-SpeedyCGI
SUBDIR += p5-CGI-Untaint
+ SUBDIR += p5-CGI-Untaint-date
SUBDIR += p5-CGI-Untaint-email
SUBDIR += p5-CGI-Upload
SUBDIR += p5-CGI-XMLApplication
diff --git a/www/p5-CGI-Untaint-date/Makefile b/www/p5-CGI-Untaint-date/Makefile
new file mode 100644
index 000000000000..31890f279cb9
--- /dev/null
+++ b/www/p5-CGI-Untaint-date/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: p5-CGI-Untaint-date
+# Date created: 18 Jun 2006
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= CGI-Untaint-date
+PORTVERSION= 1.00
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= CGI
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= Validate a date
+
+BUILD_DEPENDS= ${SITE_PERL}/CGI/Untaint.pm:${PORTSDIR}/www/p5-CGI-Untaint \
+ ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
+ ${SITE_PERL}/${PERL_ARCH}/Date/Simple.pm:${PORTSDIR}/devel/p5-Date-Simple
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+MAN3= CGI::Untaint::date.3
+
+PERL_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-CGI-Untaint-date/distinfo b/www/p5-CGI-Untaint-date/distinfo
new file mode 100644
index 000000000000..ee8553ccc2a1
--- /dev/null
+++ b/www/p5-CGI-Untaint-date/distinfo
@@ -0,0 +1,3 @@
+MD5 (CGI-Untaint-date-1.00.tar.gz) = d042ddc051a289514943860e7effb56e
+SHA256 (CGI-Untaint-date-1.00.tar.gz) = e635500cbdd56c7251ce61199c3f4d60508273ac07b3a6752347e65ca765c16c
+SIZE (CGI-Untaint-date-1.00.tar.gz) = 2940
diff --git a/www/p5-CGI-Untaint-date/pkg-descr b/www/p5-CGI-Untaint-date/pkg-descr
new file mode 100644
index 000000000000..32a8bff94687
--- /dev/null
+++ b/www/p5-CGI-Untaint-date/pkg-descr
@@ -0,0 +1,13 @@
+This Input Handler verifies that it is dealing with a reasonable date.
+Reasonably means anything that Date::Manip thinks is sensible, so you
+could use any of (for example): "December 12, 2001" "12th December, 2001"
+"2001-12-12" "next Tuesday" "third Wednesday in March"
+
+See Date::Manip for much more information on what date formats are
+acceptable.
+
+The resulting date will be a Date::Simple object. Date::Simple for more
+information on this.
+
+WWW: http://search.cpan.org/dist/CGI-Untaint-date
+Author: Tony Bowden <kasei@tmtm.com>
diff --git a/www/p5-CGI-Untaint-date/pkg-plist b/www/p5-CGI-Untaint-date/pkg-plist
new file mode 100644
index 000000000000..8cf5445be644
--- /dev/null
+++ b/www/p5-CGI-Untaint-date/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/CGI/Untaint/date.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Untaint/date/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Untaint/date
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Untaint
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI
+@dirrmtry %%SITE_PERL%%/CGI/Untaint
+@dirrmtry %%SITE_PERL%%/CGI