summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-04-02 20:02:38 +0000
committerasmodai <asmodai@FreeBSD.org>2001-04-02 20:02:38 +0000
commit27c3259963fdb2c45d532c7f2a817f9169d8c507 (patch)
tree5c5586951acc538b86df1e0262caec464326c39a /net
parentf39f63210ffab40ba533aece2991e391c17e87f8 (diff)
downloadFreeBSD-ports-27c3259963fdb2c45d532c7f2a817f9169d8c507.zip
FreeBSD-ports-27c3259963fdb2c45d532c7f2a817f9169d8c507.tar.gz
Add p5-Tie-NetAddr-IP:
This module overloads hashes so that the key can be a subnet as in NetAddr::IP. When looking values up, an interpretation will be made to find the given key within the subnets specified in the hash. Care must be taken, as only strings that can be parsed as an IP address by NetAddr::IP can be used as keys for this hash.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/p5-Tie-NetAddr-IP/Makefile25
-rw-r--r--net/p5-Tie-NetAddr-IP/distinfo1
-rw-r--r--net/p5-Tie-NetAddr-IP/pkg-comment1
-rw-r--r--net/p5-Tie-NetAddr-IP/pkg-descr9
-rw-r--r--net/p5-Tie-NetAddr-IP/pkg-plist8
6 files changed, 45 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 6272f9b..1a8f85b 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -238,6 +238,7 @@
SUBDIR += p5-SOAP
SUBDIR += p5-Socket6
SUBDIR += p5-Socks
+ SUBDIR += p5-Tie-NetAddr-IP
SUBDIR += p5-URI
SUBDIR += p5-perl-ldap
SUBDIR += pathchar
diff --git a/net/p5-Tie-NetAddr-IP/Makefile b/net/p5-Tie-NetAddr-IP/Makefile
new file mode 100644
index 0000000..f8d9557
--- /dev/null
+++ b/net/p5-Tie-NetAddr-IP/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: net/p5-Tie-NetAddr-IP
+# Date created: 29 March 2001
+# Whom: Anton Berezin <tobez@tobez.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Tie-NetAddr-IP
+PORTVERSION= 1.00
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Tie
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= tobez@tobez.org
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/NetAddr/IP.pm:${PORTSDIR}/net/p5-NetAddr-IP
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Tie::NetAddr::IP.3
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+.include <bsd.port.mk>
diff --git a/net/p5-Tie-NetAddr-IP/distinfo b/net/p5-Tie-NetAddr-IP/distinfo
new file mode 100644
index 0000000..5b81be0
--- /dev/null
+++ b/net/p5-Tie-NetAddr-IP/distinfo
@@ -0,0 +1 @@
+MD5 (Tie-NetAddr-IP-1.00.tar.gz) = dc7ee471241e9b0e4070a49e3cbb2252
diff --git a/net/p5-Tie-NetAddr-IP/pkg-comment b/net/p5-Tie-NetAddr-IP/pkg-comment
new file mode 100644
index 0000000..0b23d26
--- /dev/null
+++ b/net/p5-Tie-NetAddr-IP/pkg-comment
@@ -0,0 +1 @@
+Tie::NetAddr::IP - Implements a Hash where the key is a subnet
diff --git a/net/p5-Tie-NetAddr-IP/pkg-descr b/net/p5-Tie-NetAddr-IP/pkg-descr
new file mode 100644
index 0000000..ab51574
--- /dev/null
+++ b/net/p5-Tie-NetAddr-IP/pkg-descr
@@ -0,0 +1,9 @@
+This module overloads hashes so that the key can be a subnet as in
+NetAddr::IP. When looking values up, an interpretation will be made to
+find the given key within the subnets specified in the hash.
+
+Care must be taken, as only strings that can be parsed as an IP address
+by NetAddr::IP can be used as keys for this hash.
+
+-Anton
+<tobez@tobez.org>
diff --git a/net/p5-Tie-NetAddr-IP/pkg-plist b/net/p5-Tie-NetAddr-IP/pkg-plist
new file mode 100644
index 0000000..c3af0ea
--- /dev/null
+++ b/net/p5-Tie-NetAddr-IP/pkg-plist
@@ -0,0 +1,8 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/NetAddr/IP/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/Tie/NetAddr/sample.pl
+lib/perl5/site_perl/%%PERL_VER%%/Tie/NetAddr/IP.pm
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/NetAddr/IP
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/NetAddr 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Tie/NetAddr 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Tie 2>/dev/null || true
OpenPOWER on IntegriCloud