From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 2 15:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2766916A469 for ; Wed, 2 Jan 2008 15:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F326B13C45D for ; Wed, 2 Jan 2008 15:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m02FK1HN089135 for ; Wed, 2 Jan 2008 15:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m02FK1Jb089134; Wed, 2 Jan 2008 15:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2008 15:20:01 GMT Resent-Message-Id: <200801021520.m02FK1Jb089134@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tuc Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9162F16A469 for ; Wed, 2 Jan 2008 15:17:31 +0000 (UTC) (envelope-from freebsd-ports@t-b-o-h.net) Received: from vjofn.tucs-beachin-obx-house.com (vjofn-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::5e5]) by mx1.freebsd.org (Postfix) with ESMTP id 63F4413C45B for ; Wed, 2 Jan 2008 15:17:31 +0000 (UTC) (envelope-from freebsd-ports@t-b-o-h.net) Received: from himinbjorg.tucs-beachin-obx-house.com ([208.45.246.58]) (authenticated bits=0) by vjofn.tucs-beachin-obx-house.com (8.12.9/8.12.9) with ESMTP id m02FHU4V095572 for ; Wed, 2 Jan 2008 10:17:30 -0500 (EST) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1]) by himinbjorg.tucs-beachin-obx-house.com (8.13.8/8.13.6) with ESMTP id m02FHTJs024910 for ; Wed, 2 Jan 2008 10:17:30 -0500 (EST) (envelope-from freebsd-ports@t-b-o-h.net) Received: (from tbohnet@localhost) by himinbjorg.tucs-beachin-obx-house.com (8.13.8/8.13.6/Submit) id m02FHTjE024909; Wed, 2 Jan 2008 10:17:29 -0500 (EST) (envelope-from tbohnet) Message-Id: <200801021517.m02FHTjE024909@himinbjorg.tucs-beachin-obx-house.com> Date: Wed, 2 Jan 2008 10:17:29 -0500 (EST) From: Tuc To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/119264: New port: net-mgmt/p5-Data-Validate-IP IP Validation routines X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tuc List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 15:20:02 -0000 >Number: 119264 >Category: ports >Synopsis: New port: net-mgmt/p5-Data-Validate-IP IP 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:20:01 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 ip 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-IP # p5-Data-Validate-IP/Makefile # p5-Data-Validate-IP/distinfo # p5-Data-Validate-IP/pkg-descr # p5-Data-Validate-IP/pkg-plist # echo c - p5-Data-Validate-IP mkdir -p p5-Data-Validate-IP > /dev/null 2>&1 echo x - p5-Data-Validate-IP/Makefile sed 's/^X//' >p5-Data-Validate-IP/Makefile << 'END-of-p5-Data-Validate-IP/Makefile' X# New ports collection makefile for: net-mgmt/p5-Data-Validate-IP X# Date created: 02 January 2008 X# Whom: Tuc X# X# $FreeBSD$ X# X XPORTNAME= Data-Validate-IP XPORTVERSION= 0.08 XCATEGORIES= net-mgmt 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 IPs X XBUILD_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask XRUN_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask X XPERL_CONFIGURE= yes X XMAN3= Data::Validate::IP.3 X X.include END-of-p5-Data-Validate-IP/Makefile echo x - p5-Data-Validate-IP/distinfo sed 's/^X//' >p5-Data-Validate-IP/distinfo << 'END-of-p5-Data-Validate-IP/distinfo' XMD5 (Data-Validate-IP-0.08.tar.gz) = 42c9313f2efe300e940916d440db7510 XSHA256 (Data-Validate-IP-0.08.tar.gz) = c2dafe09ab292b95a9eb2863507eafd7aa52b054d4fbdafd713bcb9bb320b83d XSIZE (Data-Validate-IP-0.08.tar.gz) = 6299 END-of-p5-Data-Validate-IP/distinfo echo x - p5-Data-Validate-IP/pkg-descr sed 's/^X//' >p5-Data-Validate-IP/pkg-descr << 'END-of-p5-Data-Validate-IP/pkg-descr' XThis module collects ip validation routines to make input validation, and Xuntainting 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. (e.g. is_username('0')) X XThe value to test is always the first (and often only) argument. X XWWW: http://search.cpan.org/~neely/Data-Validate-IP-0.08 END-of-p5-Data-Validate-IP/pkg-descr echo x - p5-Data-Validate-IP/pkg-plist sed 's/^X//' >p5-Data-Validate-IP/pkg-plist << 'END-of-p5-Data-Validate-IP/pkg-plist' X%%SITE_PERL%%/Data/Validate/IP.pm X%%SITE_PERL%%/auto/Data/Validate/IP/new.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_private_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_loopback_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_testnet_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_multicast_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_linklocal_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/is_public_ipv4.al X%%SITE_PERL%%/auto/Data/Validate/IP/_mask.al X%%SITE_PERL%%/auto/Data/Validate/IP/autosplit.ix X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/IP/.packlist X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/IP 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/IP X@dirrmtry %%SITE_PERL%%/auto/Data/Validate X@dirrmtry %%SITE_PERL%%/auto/Data X@dirrmtry %%SITE_PERL%%/Data END-of-p5-Data-Validate-IP/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: