ports/161335: [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask

Henk van Oers hvo.pm at xs4all.nl
Thu Oct 6 13:50:07 UTC 2011


>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:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 06 13:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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 at xs4all.nl>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Net-Subnet
XPORTVERSION=	1.02
XCATEGORIES=	net perl5
XMASTER_SITES=	CPAN
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	perl at 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 at dirrmtry %%SITE_PERL%%/Net
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Subnet
X at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list