1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Add p5-Class-DBI-FromCGI 0.92

Update Class::DBI data using CGI::Untaint.

PR:		54718
Submitted by:	me
Approved by:	demon (mentor)
This commit is contained in:
Mathieu Arnold 2003-08-20 08:44:36 +00:00
parent 04566439cc
commit 8132a74c0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87348
5 changed files with 54 additions and 0 deletions

View File

@ -83,6 +83,7 @@
SUBDIR += p5-Class-DBI
SUBDIR += p5-Class-DBI-AbstractSearch
SUBDIR += p5-Class-DBI-BaseDSN
SUBDIR += p5-Class-DBI-FromCGI
SUBDIR += p5-Class-DBI-Oracle
SUBDIR += p5-Class-DBI-Pager
SUBDIR += p5-Class-DBI-Pg

View File

@ -0,0 +1,27 @@
# New ports collection makefile for: p5-Class-DBI-FromCGI
# Date created: 21 july 2003
# Whom: mat
#
# $FreeBSD$
#
PORTNAME= Class-DBI-FromCGI
PORTVERSION= 0.92
CATEGORIES= databases www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= mat@FreeBSD.org
COMMENT= Update Class::DBI data using CGI::Untaint
BUILD_DEPENDS= ${RUN_DEPENDS} \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS= ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI \
${SITE_PERL}/CGI/Untaint.pm:${PORTSDIR}/www/p5-CGI-Untaint
PERL_CONFIGURE= yes
MAN3= Class::DBI::FromCGI.3
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Class-DBI-FromCGI-0.92.tar.gz) = 41d84b29490adc5400b0b417b2b799ab

View File

@ -0,0 +1,18 @@
Lots of times, Class::DBI is used in web-based applications. (In fact, coupled
with a templating system that allows you to pass objects, such as
Template::Toolkit, Class::DBI is very much your friend for these.)
And, as we all know, one of the most irritating things about writing web-based
applications is the monotony of writing much of the same stuff over and over
again. And, where there's monotony there's a tendency to skip over stuff that
we all know is really important, but is a pain to write - like Taint Checking
and sensible input validation. (Especially as we can still show a 'working'
application without it!). So, we now have CGI::Untaint to take care of a lot of
that for us.
It so happens that CGI::Untaint also plays well with Class::DBI. All you need
to do is to 'use Class::DBI::FromCGI' in your class (or in your local
Class::DBI subclass that all your other classes inherit from. You do do that,
don't you?).
WWW: http://search.cpan.org/dist/Class-DBI-FromCGI/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/Class/DBI/FromCGI.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/FromCGI/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI/FromCGI
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/DBI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Class/DBI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Class 2>/dev/null || true