ports/62689: maintainer update: net/p5-IO-INET to version 2.01

Mohacsi Janos mohacsi at niif.hu
Mon Feb 23 18:09:35 UTC 2004


Hi Mathieu,

Here I send the modified diff to the net/p5-IO-INET that makes usable on
perl 5.005_03 also.

Best Regards,
	Janos Mohacsi

>
> Well, until 5-STABLE is branched, we'll have too :)
> the easiest thing is like it's done in mail/p5-Net-Server-Mail/Makefile
> add some EXTRA_PATCHES with a patch in files directory named like I did for
> instance.
>
-------------- next part --------------
diff -ruN p5-IO-INET6.old/Makefile p5-IO-INET6/Makefile
--- p5-IO-INET6.old/Makefile	Fri Oct 24 14:02:57 2003
+++ p5-IO-INET6/Makefile	Mon Feb 23 18:47:47 2004
@@ -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 @@
 
 PERL_CONFIGURE=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+EXTRA_PATCHES=	${PATCHDIR}/5.005_03.diff
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN p5-IO-INET6.old/distinfo p5-IO-INET6/distinfo
--- p5-IO-INET6.old/distinfo	Tue Aug 12 20:37:09 2003
+++ p5-IO-INET6/distinfo	Mon Feb 23 18:45:49 2004
@@ -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 -ruN p5-IO-INET6.old/files/5.005_03.diff p5-IO-INET6/files/5.005_03.diff
--- p5-IO-INET6.old/files/5.005_03.diff	Thu Jan  1 01:00:00 1970
+++ p5-IO-INET6/files/5.005_03.diff	Thu Jul  3 00:17:15 2003
@@ -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 -ruN p5-IO-INET6.old/files/patch-INET6.pm p5-IO-INET6/files/patch-INET6.pm
--- p5-IO-INET6.old/files/patch-INET6.pm	Thu Jul  3 00:17:15 2003
+++ p5-IO-INET6/files/patch-INET6.pm	Thu Jan  1 01:00:00 1970
@@ -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 -ruN p5-IO-INET6.old/pkg-descr p5-IO-INET6/pkg-descr
--- p5-IO-INET6.old/pkg-descr	Thu Jul  3 00:17:15 2003
+++ p5-IO-INET6/pkg-descr	Mon Feb 23 18:45:49 2004
@@ -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


More information about the freebsd-ports-bugs mailing list