From 3faba126ba3e8c7897b0e167a838579148fa6f5a Mon Sep 17 00:00:00 2001 From: grant Date: Fri, 9 Jan 2004 01:46:19 +0000 Subject: import p5-Net-Netmask from pkgsrc-wip, initially by Charlie Allom, wich some cleanup by me. Net::Netmask parses and understands IPv4 CIDR blocks. It's built with an object-oriented interface. Nearly all functions are methods that operate on a Net::Netmask object. There are methods that provide the nearly all bits of information about a network block that you might want. There are also functions to put a network block into a table and then later lookup network blocks by IP address in that table. There are functions to turn a IP address range into a list of CIDR blocks. There are functions to turn a list of CIDR blocks into a list of IP addresses. There is a function for sorting by text IP address. --- devel/p5-Net-Netmask/DESCR | 13 +++++++++++++ devel/p5-Net-Netmask/Makefile | 15 +++++++++++++++ devel/p5-Net-Netmask/PLIST | 1 + devel/p5-Net-Netmask/distinfo | 4 ++++ 4 files changed, 33 insertions(+) create mode 100644 devel/p5-Net-Netmask/DESCR create mode 100644 devel/p5-Net-Netmask/Makefile create mode 100644 devel/p5-Net-Netmask/PLIST create mode 100644 devel/p5-Net-Netmask/distinfo diff --git a/devel/p5-Net-Netmask/DESCR b/devel/p5-Net-Netmask/DESCR new file mode 100644 index 00000000000..965278aa665 --- /dev/null +++ b/devel/p5-Net-Netmask/DESCR @@ -0,0 +1,13 @@ +Net::Netmask parses and understands IPv4 CIDR blocks. It's built with an +object-oriented interface. Nearly all functions are methods that operate +on a Net::Netmask object. + +There are methods that provide the nearly all bits of information about +a network block that you might want. + +There are also functions to put a network block into a table and then +later lookup network blocks by IP address in that table. There are +functions to turn a IP address range into a list of CIDR blocks. There +are functions to turn a list of CIDR blocks into a list of IP addresses. + +There is a function for sorting by text IP address. diff --git a/devel/p5-Net-Netmask/Makefile b/devel/p5-Net-Netmask/Makefile new file mode 100644 index 00000000000..7a5a2460464 --- /dev/null +++ b/devel/p5-Net-Netmask/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/01/09 01:46:19 grant Exp $ + +DISTNAME= Net-Netmask-1.9007 +PKGNAME= p5-${DISTNAME} +CATEGORIES= net perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/} + +MAINTAINER= charlie@rubberduck.com +COMMENT= Perl5 module to parse and manipulate IP network blocks + +USE_BUILDLINK2= YES +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Net/Netmask/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Net-Netmask/PLIST b/devel/p5-Net-Netmask/PLIST new file mode 100644 index 00000000000..2feabc7bf14 --- /dev/null +++ b/devel/p5-Net-Netmask/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/09 01:46:19 grant Exp $ diff --git a/devel/p5-Net-Netmask/distinfo b/devel/p5-Net-Netmask/distinfo new file mode 100644 index 00000000000..879ff4a7d5d --- /dev/null +++ b/devel/p5-Net-Netmask/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/01/09 01:46:19 grant Exp $ + +SHA1 (Net-Netmask-1.9007.tar.gz) = 3ad37139c3a77e27952b2d14cd0273e2801e4814 +Size (Net-Netmask-1.9007.tar.gz) = 17140 bytes -- cgit v1.2.3