summaryrefslogtreecommitdiff
path: root/devel/p5-Net-Netmask
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-01-09 01:46:19 +0000
committergrant <grant@pkgsrc.org>2004-01-09 01:46:19 +0000
commit3faba126ba3e8c7897b0e167a838579148fa6f5a (patch)
treec5027e99ba888b1c43cd81e33701ef68a32429b8 /devel/p5-Net-Netmask
parent4912c1813db801b7afdf66b60f4eefa810d07070 (diff)
downloadpkgsrc-3faba126ba3e8c7897b0e167a838579148fa6f5a.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/p5-Net-Netmask')
-rw-r--r--devel/p5-Net-Netmask/DESCR13
-rw-r--r--devel/p5-Net-Netmask/Makefile15
-rw-r--r--devel/p5-Net-Netmask/PLIST1
-rw-r--r--devel/p5-Net-Netmask/distinfo4
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