From nobody@FreeBSD.org  Thu Oct  6 13:42:09 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 40F71106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Oct 2011 13:42:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 3060D8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Oct 2011 13:42:09 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p96Dg82W050266
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Oct 2011 13:42:08 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p96Dg8w9050265;
	Thu, 6 Oct 2011 13:42:08 GMT
	(envelope-from nobody)
Message-Id: <201110061342.p96Dg8w9050265@red.freebsd.org>
Date: Thu, 6 Oct 2011 13:42:08 GMT
From: Henk van Oers <hvo.pm@xs4all.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161335
>Category:       ports
>Synopsis:       [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 06 13:50:06 UTC 2011
>Closed-Date:    Wed Oct 26 11:08:15 UTC 2011
>Last-Modified:  Wed Oct 26 11:08:15 UTC 2011
>Originator:     Henk van Oers
>Release:        FreeBSD 8.2-RELEASE
>Organization:
www.sppn.nl
>Environment:
FreeBSD uni.trlang.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This is a simple but fast pure Perl module for determining whether a given
IP address is in a given set of IP subnets. It's iterative, and it doesn't
use any fancy tries, but because it uses simple bitwise operations on
strings it's still very fast.
All documented functions are exported by default.
Subnets have to be given in "address/mask" or "address/length" (CIDR)
format. The Socket and Socket6 modules are used to normalise addresses,
which means that any of the address formats supported by inet_aton and
inet_pton can be used with Net::Subnet.

WWW: https://metacpan.org/release/Net-Subnet

>How-To-Repeat:
Note:

net/p5-Net-Subnets (plural) has disappeared from CPAN.
                 ^

>Fix:


Patch attached with submission follows:

# 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-Net-Subnet
#	p5-Net-Subnet/Makefile
#	p5-Net-Subnet/pkg-plist
#	p5-Net-Subnet/distinfo
#	p5-Net-Subnet/pkg-descr
#
echo c - p5-Net-Subnet
mkdir -p p5-Net-Subnet > /dev/null 2>&1
echo x - p5-Net-Subnet/Makefile
sed 's/^X//' >p5-Net-Subnet/Makefile << 'e515ea9faba2718ab13d752cb9cfb901'
X# New ports collection makefile for:	p5-Net-Subnet
X# Date created:		2011-10-06
X# Whom:			Henk van Oers <hvo.pm@xs4all.nl>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Net-Subnet
XPORTVERSION=	1.02
XCATEGORIES=	net perl5
XMASTER_SITES=	CPAN
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	perl@FreeBSD.org
XCOMMENT=	Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
X
XLICENSE=	ART10
X
XRUN_DEPENDS=	p5-Socket6>=0.23:${PORTSDIR}/net/p5-Socket6
X
XPERL_CONFIGURE=	yes
X
XMAN3=		Net::Subnet.3
X
X.include <bsd.port.mk>
e515ea9faba2718ab13d752cb9cfb901
echo x - p5-Net-Subnet/pkg-plist
sed 's/^X//' >p5-Net-Subnet/pkg-plist << 'f37d9785d35290105936dd74dbe5fc19'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Subnet/.packlist
X%%SITE_PERL%%/Net/Subnet.pm
X@dirrmtry %%SITE_PERL%%/Net
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Subnet
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
f37d9785d35290105936dd74dbe5fc19
echo x - p5-Net-Subnet/distinfo
sed 's/^X//' >p5-Net-Subnet/distinfo << '6cddbf30636719c984025d28c52edc11'
XSHA256 (Net-Subnet-1.02.tar.gz) = 1ba32e2b33160eddfe3c210298a201a2d54d3e9a1d0095d5f173ece795db98f0
XSIZE (Net-Subnet-1.02.tar.gz) = 4103
6cddbf30636719c984025d28c52edc11
echo x - p5-Net-Subnet/pkg-descr
sed 's/^X//' >p5-Net-Subnet/pkg-descr << '43ad15d287328e3d6cc17d9fd65afbc6'
XThis is a simple but fast pure Perl module for determining whether a given
XIP address is in a given set of IP subnets. It's iterative, and it doesn't
Xuse any fancy tries, but because it uses simple bitwise operations on
Xstrings it's still very fast.
XAll documented functions are exported by default.
XSubnets have to be given in "address/mask" or "address/length" (CIDR)
Xformat. The Socket and Socket6 modules are used to normalise addresses,
Xwhich means that any of the address formats supported by inet_aton and
Xinet_pton can be used with Net::Subnet.
X
XWWW: https://metacpan.org/release/Net-Subnet
43ad15d287328e3d6cc17d9fd65afbc6
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Oct 6 13:50:17 UTC 2011 
Responsible-Changed-Why:  
perl@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161335 
Responsible-Changed-From-To: perl->sunpoet 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Tue Oct 25 17:38:57 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161335 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Wed Oct 26 11:08:14 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161335 
>Unformatted:
