1a46e59ef1
and untainting easier and more readable. All functions return an untainted value if the test passes, and undef if it fails. This means that you should always check for a defined status explicitly. Don't assume the return will be true. The value to test is always the first (and often only) argument. There are a number of other URI validation modules out there as well. This one focuses on being fast, lightweight, and relatively 'real-world'. i.e. it's good if you want to check user input, and don't need to parse out the URI/URL into chunks. Right now the module focuses on HTTP URIs, since they're arguably the most common. WWW: http://search.cpan.org/dist/Data-Validate-URI PR: ports/119264 Submitted by: Tuc <freebsd-ports at t-b-o-h.net>
27 lines
790 B
Makefile
27 lines
790 B
Makefile
# New ports collection makefile for: www/p5-Data-Validate-URI
|
|
# Date created: 02 January 2008
|
|
# Whom: Tuc <freebsd-ports@t-b-o-h.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Data-Validate-URI
|
|
PORTVERSION= 0.04
|
|
CATEGORIES= www perl5
|
|
MASTER_SITES= CPAN
|
|
MASTER_SITE_SUBDIR= Data
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= freebsd-ports@t-b-o-h.net
|
|
COMMENT= Common data validation methods for URIs
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
|
|
${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
|
|
RUN_DEPENDS= ${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
|
|
${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= Data::Validate::URI.3
|
|
|
|
.include <bsd.port.mk>
|