1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

This module collects ip validation routines to make input validation, 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. (e.g. is_username('0'))

The value to test is always the first (and often only) argument.

WWW: http://search.cpan.org/dist/Data-Validate-IP/

PR:		ports/119264
Submitted by:	Tuc <freebsd-ports at t-b-o-h.net>
This commit is contained in:
Martin Wilke 2008-01-14 11:15:31 +00:00
parent 5d69836676
commit 25e7a0db9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205635
5 changed files with 59 additions and 0 deletions

View File

@ -155,6 +155,7 @@
SUBDIR += p5-Altoids
SUBDIR += p5-Cflow
SUBDIR += p5-Cisco-Reconfig
SUBDIR += p5-Data-Validate-IP
SUBDIR += p5-Mon
SUBDIR += p5-NSNMP
SUBDIR += p5-Nagios-Plugin

View File

@ -0,0 +1,25 @@
# New ports collection makefile for: net-mgmt/p5-Data-Validate-IP
# Date created: 02 January 2008
# Whom: Tuc <freebsd-ports@t-b-o-h.net>
#
# $FreeBSD$
#
PORTNAME= Data-Validate-IP
PORTVERSION= 0.08
CATEGORIES= net-mgmt perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= Data
PKGNAMEPREFIX= p5-
MAINTAINER= freebsd-ports@t-b-o-h.net
COMMENT= Common data validation methods for IPs
BUILD_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask
RUN_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask
PERL_CONFIGURE= yes
MAN3= Data::Validate::IP.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Data-Validate-IP-0.08.tar.gz) = 42c9313f2efe300e940916d440db7510
SHA256 (Data-Validate-IP-0.08.tar.gz) = c2dafe09ab292b95a9eb2863507eafd7aa52b054d4fbdafd713bcb9bb320b83d
SIZE (Data-Validate-IP-0.08.tar.gz) = 6299

View File

@ -0,0 +1,10 @@
This module collects ip validation routines to make input validation, 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. (e.g. is_username('0'))
The value to test is always the first (and often only) argument.
WWW: http://search.cpan.org/dist/Data-Validate-IP/

View File

@ -0,0 +1,20 @@
%%SITE_PERL%%/Data/Validate/IP.pm
%%SITE_PERL%%/auto/Data/Validate/IP/_mask.al
%%SITE_PERL%%/auto/Data/Validate/IP/autosplit.ix
%%SITE_PERL%%/auto/Data/Validate/IP/is_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_linklocal_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_loopback_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_multicast_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_private_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_public_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/is_testnet_ipv4.al
%%SITE_PERL%%/auto/Data/Validate/IP/new.al
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/IP/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/IP
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
@dirrmtry %%SITE_PERL%%/auto/Data/Validate/IP
@dirrmtry %%SITE_PERL%%/auto/Data/Validate
@dirrmtry %%SITE_PERL%%/auto/Data
@dirrmtry %%SITE_PERL%%/Data/Validate
@dirrmtry %%SITE_PERL%%/Data