From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 6 13:50:07 2011 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 46F57106564A for ; Thu, 6 Oct 2011 13:50:07 +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 235998FC0C for ; Thu, 6 Oct 2011 13:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p96Do6Hx049446 for ; Thu, 6 Oct 2011 13:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p96Do6Kw049445; Thu, 6 Oct 2011 13:50:06 GMT (envelope-from gnats) Resent-Date: Thu, 6 Oct 2011 13:50:06 GMT Resent-Message-Id: <201110061350.p96Do6Kw049445@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, Henk van Oers Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40F71106566B for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161335: [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 13:50:07 -0000 >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@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 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 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: >Unformatted: