Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2001 14:00:22 +0200 (CEST)
From:      tobez@tobez.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26876: New port: net/p5-IO-Interface (Perl extension for access to network card configuration information)
Message-ID:  <20010426120022.59C7D546B@heechee.tobez.org>

next in thread | raw e-mail | index | archive | help

>Number:         26876
>Category:       ports
>Synopsis:       New port: net/p5-IO-Interface (Perl extension for access to network card configuration information)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 26 05:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Anton Berezin
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
>Description:

IO::Interface adds object-methods to IO::Socket objects to allow them to
get and set operational characteristics of network interface cards, such
as IP addresses, net masks, and so forth.  It is useful for identifying
runtime characteristics of cards, such as broadcast addresses, and
finding interfaces that satisfy certain criteria, such as the ability to
multicast.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-IO-Interface
#	p5-IO-Interface/pkg-plist
#	p5-IO-Interface/pkg-descr
#	p5-IO-Interface/pkg-comment
#	p5-IO-Interface/files
#	p5-IO-Interface/files/patch-OSIOCGIFCONF
#	p5-IO-Interface/Makefile
#	p5-IO-Interface/distinfo
#
echo c - p5-IO-Interface
mkdir -p p5-IO-Interface > /dev/null 2>&1
echo x - p5-IO-Interface/pkg-plist
sed 's/^X//' >p5-IO-Interface/pkg-plist << 'END-of-p5-IO-Interface/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/IO/Interface.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO/Interface/.packlist
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO/Interface/Interface.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO/Interface/Interface.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO/Interface/autosplit.ix
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO/Interface
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/IO 2>/dev/null || true
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/IO 2>/dev/null || true
END-of-p5-IO-Interface/pkg-plist
echo x - p5-IO-Interface/pkg-descr
sed 's/^X//' >p5-IO-Interface/pkg-descr << 'END-of-p5-IO-Interface/pkg-descr'
XIO::Interface adds object-methods to IO::Socket objects to allow them to
Xget and set operational characteristics of network interface cards, such
Xas IP addresses, net masks, and so forth.  It is useful for identifying
Xruntime characteristics of cards, such as broadcast addresses, and
Xfinding interfaces that satisfy certain criteria, such as the ability to
Xmulticast.
X
X-Anton
X<tobez@tobez.org>
END-of-p5-IO-Interface/pkg-descr
echo x - p5-IO-Interface/pkg-comment
sed 's/^X//' >p5-IO-Interface/pkg-comment << 'END-of-p5-IO-Interface/pkg-comment'
XPerl extension for access to network card configuration information
END-of-p5-IO-Interface/pkg-comment
echo c - p5-IO-Interface/files
mkdir -p p5-IO-Interface/files > /dev/null 2>&1
echo x - p5-IO-Interface/files/patch-OSIOCGIFCONF
sed 's/^X//' >p5-IO-Interface/files/patch-OSIOCGIFCONF << 'END-of-p5-IO-Interface/files/patch-OSIOCGIFCONF'
X--- Interface.xs.orig	Wed Apr 25 15:45:43 2001
X+++ Interface.xs	Wed Apr 25 15:47:13 2001
X@@ -13,6 +13,12 @@
X #include <sys/sockio.h>
X #endif
X 
X+#ifdef OSIOCGIFCONF
X+#define MY_SIOCGIFCONF OSIOCGIFCONF
X+#else
X+#define MY_SIOCGIFCONF SIOCGIFCONF
X+#endif
X+
X #ifdef PerlIO
X typedef PerlIO * InputStream;
X #else
X@@ -581,7 +587,7 @@
X 	   croak("Couldn't malloc buffer for ioctl: %s",strerror(errno));
X 	 ifc.ifc_len = len;
X 	 ifc.ifc_buf = buf;
X-	 if (ioctl(PerlIO_fileno(sock),SIOCGIFCONF,&ifc) < 0) {
X+	 if (ioctl(PerlIO_fileno(sock),MY_SIOCGIFCONF,&ifc) < 0) {
X 	   if (errno != EINVAL || lastlen != 0)
X 	     XSRETURN_EMPTY;
X 	 } else {
END-of-p5-IO-Interface/files/patch-OSIOCGIFCONF
echo x - p5-IO-Interface/Makefile
sed 's/^X//' >p5-IO-Interface/Makefile << 'END-of-p5-IO-Interface/Makefile'
X# New ports collection makefile for:	net/p5-IO-Interface
X# Date created:				26 April 2001
X# Whom:					Anton Berezin <tobez@tobez.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	IO-Interface
XPORTVERSION=	0.94
XCATEGORIES=	net perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	IO
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	tobez@tobez.org
X
XPERL_CONFIGURE=	yes
X
XMAN3=		IO::Interface.3
XMANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
X
X.include <bsd.port.mk>
END-of-p5-IO-Interface/Makefile
echo x - p5-IO-Interface/distinfo
sed 's/^X//' >p5-IO-Interface/distinfo << 'END-of-p5-IO-Interface/distinfo'
XMD5 (IO-Interface-0.94.tar.gz) = 3488c7120239b1f257728793f092d903
END-of-p5-IO-Interface/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010426120022.59C7D546B>