From e43be00264249cdca5ed7e7f9a4220fa5d090d13 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 25 Feb 2004 12:20:41 +0000 Subject: Update to 2.01 PR: 62689 Submitted by: maintainer --- net/p5-IO-INET6/Makefile | 10 ++++++++-- net/p5-IO-INET6/distinfo | 3 ++- net/p5-IO-INET6/files/5.005_03.diff | 29 +++++++++++++++++++++++++++++ net/p5-IO-INET6/files/patch-INET6.pm | 29 ----------------------------- net/p5-IO-INET6/pkg-descr | 4 +++- 5 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 net/p5-IO-INET6/files/5.005_03.diff delete mode 100644 net/p5-IO-INET6/files/patch-INET6.pm (limited to 'net/p5-IO-INET6') diff --git a/net/p5-IO-INET6/Makefile b/net/p5-IO-INET6/Makefile index fa80567..f13351c 100644 --- a/net/p5-IO-INET6/Makefile +++ b/net/p5-IO-INET6/Makefile @@ -6,7 +6,7 @@ # PORTNAME= INET6 -PORTVERSION= 1.28 +PORTVERSION= 2.01 CATEGORIES= net perl5 ipv6 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= IO @@ -22,4 +22,10 @@ MAN3= IO::Socket::INET6.3 PERL_CONFIGURE= yes -.include +.include + +.if ${PERL_LEVEL} < 500600 +EXTRA_PATCHES= ${PATCHDIR}/5.005_03.diff +.endif + +.include diff --git a/net/p5-IO-INET6/distinfo b/net/p5-IO-INET6/distinfo index 19d1046..845a6f7 100644 --- a/net/p5-IO-INET6/distinfo +++ b/net/p5-IO-INET6/distinfo @@ -1 +1,2 @@ -MD5 (INET6-1.28.tar.gz) = 799199206d8d8641e11b33c0748a313e +MD5 (INET6-2.01.tar.gz) = 032a6e50c8c16e400836a9565cdb2f0b +SIZE (INET6-2.01.tar.gz) = 8628 diff --git a/net/p5-IO-INET6/files/5.005_03.diff b/net/p5-IO-INET6/files/5.005_03.diff new file mode 100644 index 0000000..03f3cc9 --- /dev/null +++ b/net/p5-IO-INET6/files/5.005_03.diff @@ -0,0 +1,29 @@ +--- INET6.pm.orig Tue Jun 24 14:14:26 2003 ++++ INET6.pm Wed Jul 2 21:33:28 2003 +@@ -10,7 +10,7 @@ + package IO::Socket::INET6; + + use strict; +-our(@ISA, $VERSION); ++use vars qw(@ISA $VERSION); + use IO::Socket; + use Socket6; + use Carp; +@@ -20,7 +20,7 @@ + @ISA = qw(IO::Socket); + $VERSION = "1.27"; + +-my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1; ++my $EINVAL = defined(&Errno::EINVAL) ? Errno::EINVAL() : 1; + + IO::Socket::INET6->register_domain( AF_INET6 ); + +@@ -183,7 +183,7 @@ + } + + if ($arg->{ReusePort}) { +- $sock->sockopt(SO_REUSEPORT,1) or ++ $sock->sockopt(0x0200,1) or + return _error($sock, $!, "$!"); + } + diff --git a/net/p5-IO-INET6/files/patch-INET6.pm b/net/p5-IO-INET6/files/patch-INET6.pm deleted file mode 100644 index 03f3cc9..0000000 --- a/net/p5-IO-INET6/files/patch-INET6.pm +++ /dev/null @@ -1,29 +0,0 @@ ---- INET6.pm.orig Tue Jun 24 14:14:26 2003 -+++ INET6.pm Wed Jul 2 21:33:28 2003 -@@ -10,7 +10,7 @@ - package IO::Socket::INET6; - - use strict; --our(@ISA, $VERSION); -+use vars qw(@ISA $VERSION); - use IO::Socket; - use Socket6; - use Carp; -@@ -20,7 +20,7 @@ - @ISA = qw(IO::Socket); - $VERSION = "1.27"; - --my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1; -+my $EINVAL = defined(&Errno::EINVAL) ? Errno::EINVAL() : 1; - - IO::Socket::INET6->register_domain( AF_INET6 ); - -@@ -183,7 +183,7 @@ - } - - if ($arg->{ReusePort}) { -- $sock->sockopt(SO_REUSEPORT,1) or -+ $sock->sockopt(0x0200,1) or - return _error($sock, $!, "$!"); - } - diff --git a/net/p5-IO-INET6/pkg-descr b/net/p5-IO-INET6/pkg-descr index e2b4327..d39177b 100644 --- a/net/p5-IO-INET6/pkg-descr +++ b/net/p5-IO-INET6/pkg-descr @@ -1,5 +1,7 @@ IO::Socket::INET6 provides an object interface to creating and using sockets in the AF_INET6 domain. It is built upon the IO::Socket interface and -inherits all the methods defined by IO::Socket. +inherits all the methods defined by IO::Socket. As a consequence, this module +is protocol independent, it can run both IPv6 & IPv4, when DNS names are +passed. WWW: http://search.cpan.org/search?dist=IO-INET6 -- cgit v1.1