diff options
author | grant <grant> | 2004-01-09 01:46:19 +0000 |
---|---|---|
committer | grant <grant> | 2004-01-09 01:46:19 +0000 |
commit | 45c0c1323afff52cb51f68e46aa43cfd440a3b9c (patch) | |
tree | c5027e99ba888b1c43cd81e33701ef68a32429b8 /devel | |
parent | 74eeed4780c2cb6aacb286cbe4d47bef84e63975 (diff) | |
download | pkgsrc-45c0c1323afff52cb51f68e46aa43cfd440a3b9c.tar.gz |
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.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Net-Netmask/DESCR | 13 | ||||
-rw-r--r-- | devel/p5-Net-Netmask/Makefile | 15 | ||||
-rw-r--r-- | devel/p5-Net-Netmask/PLIST | 1 | ||||
-rw-r--r-- | devel/p5-Net-Netmask/distinfo | 4 |
4 files changed, 33 insertions, 0 deletions
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 |