Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2008 10:44:22 -0500 (EST)
From:      Tuc <freebsd-ports@t-b-o-h.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/119265: New port: www/p5-Data-Validate-URI Collection of URI validation routines
Message-ID:  <200801021544.m02FiMBh028660@himinbjorg.tucs-beachin-obx-house.com>
Resent-Message-ID: <200801021550.m02Fo3a5049927@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119265
>Category:       ports
>Synopsis:       New port: www/p5-Data-Validate-URI Collection of URI validation routines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 02 15:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Tuc
>Release:        FreeBSD 5.5-STABLE i386
>Organization:
T-B-O-H
>Environment:
System: FreeBSD himinbjorg.tucs-beachin-obx-house.com 5.5-STABLE FreeBSD 5.5-STABLE #9: Tue Jan 23 23:44:47 EST 2007 root@himinbjorg.tucs-beachin-obx-house.com:/usr/obj/usr/src/sys/HIMINBJORG53 i386


	
>Description:
This module collects common URI validation routines to make input validation,
and untainting easier and more readable.
>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:
#
#	p5-Data-Validate-URI
#	p5-Data-Validate-URI/Makefile
#	p5-Data-Validate-URI/distinfo
#	p5-Data-Validate-URI/pkg-descr
#	p5-Data-Validate-URI/pkg-plist
#
echo c - p5-Data-Validate-URI
mkdir -p p5-Data-Validate-URI > /dev/null 2>&1
echo x - p5-Data-Validate-URI/Makefile
sed 's/^X//' >p5-Data-Validate-URI/Makefile << 'END-of-p5-Data-Validate-URI/Makefile'
X# New ports collection makefile for:	www/p5-Data-Validate-URI
X# Date created:				02 January 2008
X# Whom:					Tuc <freebsd-ports@t-b-o-h.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Data-Validate-URI
XPORTVERSION=	0.04
XCATEGORIES=	www perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Data
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	freebsd-ports@t-b-o-h.net
XCOMMENT=	Common data validation methods for URIs
X
XBUILD_DEPENDS=	${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
X		${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
XRUN_DEPENDS=	${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
X		${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
X
XPERL_CONFIGURE=	yes
X
XMAN3=	Data::Validate::URI.3
X
X.include <bsd.port.mk>
END-of-p5-Data-Validate-URI/Makefile
echo x - p5-Data-Validate-URI/distinfo
sed 's/^X//' >p5-Data-Validate-URI/distinfo << 'END-of-p5-Data-Validate-URI/distinfo'
XMD5 (Data-Validate-URI-0.04.tar.gz) = 1cbada5653a33e496e07b2c3c70c80ae
XSHA256 (Data-Validate-URI-0.04.tar.gz) = 5b0acd34dd08f7e6db6b5c76c0cdf26cece3729ae06a4ff1da7b86e985b5035a
XSIZE (Data-Validate-URI-0.04.tar.gz) = 10313
END-of-p5-Data-Validate-URI/distinfo
echo x - p5-Data-Validate-URI/pkg-descr
sed 's/^X//' >p5-Data-Validate-URI/pkg-descr << 'END-of-p5-Data-Validate-URI/pkg-descr'
XThis module collects common URI validation routines to make input validation,
Xand untainting easier and more readable.
X
XAll functions return an untainted value if the test passes, and undef if it
Xfails. This means that you should always check for a defined status 
Xexplicitly. Don't assume the return will be true.
X
XThe value to test is always the first (and often only) argument.
X
XThere are a number of other URI validation modules out there as well.
XThis one focuses on being fast, lightweight, and relatively 'real-world'. 
Xi.e. it's good if you want to check user input, and don't need to parse 
Xout the URI/URL into chunks.
X
XRight now the module focuses on HTTP URIs, since they're arguably the most 
Xcommon. 
X
XWWW: http://search.cpan.org/~sonnen/Data-Validate-URI
END-of-p5-Data-Validate-URI/pkg-descr
echo x - p5-Data-Validate-URI/pkg-plist
sed 's/^X//' >p5-Data-Validate-URI/pkg-plist << 'END-of-p5-Data-Validate-URI/pkg-plist'
X%%SITE_PERL%%/Data/Validate/URI.pm
X%%SITE_PERL%%/auto/Data/Validate/URI/new.al
X%%SITE_PERL%%/auto/Data/Validate/URI/is_uri.al
X%%SITE_PERL%%/auto/Data/Validate/URI/is_http_uri.al
X%%SITE_PERL%%/auto/Data/Validate/URI/is_https_uri.al
X%%SITE_PERL%%/auto/Data/Validate/URI/is_web_uri.al
X%%SITE_PERL%%/auto/Data/Validate/URI/_split_uri.al
X%%SITE_PERL%%/auto/Data/Validate/URI/autosplit.ix
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/URI/.packlist
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/URI
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
X@dirrmtry %%SITE_PERL%%/auto/Data/Validate/URI
X@dirrmtry %%SITE_PERL%%/auto/Data/Validate
X@dirrmtry %%SITE_PERL%%/auto/Data
X@dirrmtry %%SITE_PERL%%/Data
END-of-p5-Data-Validate-URI/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801021544.m02FiMBh028660>