1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Net::IPAddr is a collection of helpful functions used to convert

IP addresses to/from 32-bit integers, applying subnet masks to
IP addresses, validating IP address strings, and splitting a FQDN
into its host and domain parts.

No rocket science here, but I have found these functions to very,
very handy. For example, have you ever tried to sort a list of IP
addresses only to find out that they don't sort the way you expected?
Here is the solution! If you convert the IP addresses to 32-bit integer
addresses, they will sort in correct order.

WWW: http://search.cpan.org/dist/Net-IPAddress/

PR:		ports/179817
Submitted by:	Alexandre Biancalana <ale@biancalanas.net>
This commit is contained in:
Felippe de Meirelles Motta 2013-06-24 18:23:04 +00:00
parent 9db47c1f7c
commit 46faad8acb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321698
5 changed files with 40 additions and 0 deletions

View File

@ -219,6 +219,7 @@
SUBDIR += p5-Net-IP-Match-Regexp
SUBDIR += p5-Net-IP-Match-XS
SUBDIR += p5-Net-IP-Resolver
SUBDIR += p5-Net-IPAddress
SUBDIR += p5-Net-IPv4Addr
SUBDIR += p5-Net-IPv6Addr
SUBDIR += p5-Net-NSCA-Client

View File

@ -0,0 +1,18 @@
# Created by: Alexandre Biancalana <ale@biancalanas.net>
# $FreeBSD$
PORTNAME= Net-IPAddress
PORTVERSION= 1.10
CATEGORIES= net-mgmt perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:SARENNER
PKGNAMEPREFIX= p5-
MAINTAINER= ale@biancalanas.net
COMMENT= Perl functions used to manipulate IP addresses, masks and FQDN's
PERL_CONFIGURE= yes
MAN3= Net::IPAddress.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Net-IPAddress-1.10.tar.gz) = 881308d2db0dc0f94434816d5e23b15e2da43c999283dc24e9ef55eb515b7b5e
SIZE (Net-IPAddress-1.10.tar.gz) = 3024

View File

@ -0,0 +1,12 @@
Net::IPAddr is a collection of helpful functions used to convert
IP addresses to/from 32-bit integers, applying subnet masks to
IP addresses, validating IP address strings, and splitting a FQDN
into its host and domain parts.
No rocket science here, but I have found these functions to very,
very handy. For example, have you ever tried to sort a list of IP
addresses only to find out that they don't sort the way you expected?
Here is the solution! If you convert the IP addresses to 32-bit integer
addresses, they will sort in correct order.
WWW: http://search.cpan.org/dist/Net-IPAddress/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/Net/IPAddress.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/IPAddress/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/IPAddress
@dirrm %%SITE_PERL%%/auto/Net/IPAddress
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
@dirrmtry %%SITE_PERL%%/auto/Net
@dirrmtry %%SITE_PERL%%/Net