[SCM] Debian packaging of Net-Ifconfig-Wrapper CPAN distribution branch, master, updated. debian/0.09-1-16-ge1c91b1
gregor herrmann
gregoa at debian.org
Thu Jan 19 19:35:32 UTC 2012
The following commit has been merged in the master branch:
commit 39279a63701be1f4d045ffbafc653b020f8c9195
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Jan 19 20:17:12 2012 +0100
Imported Upstream version 0.11
diff --git a/Changes b/Changes
index b4f432d..21f152f 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,13 @@
Revision history for Perl extension Net::IfConfig::Wrapper.
+0.11 Thu May 21 02:50:00 2009
+ - Bugfix: cygwin prerequesites must be the same as Win32
+
+0.10 Sun Apr 12 15:40:00 2009
+ - Support for 'media' attribute added
+ - Support for CygWin added
+ Thanks to Ben Bullock, and sorry for delay
+
0.09 Wed Jun 17 07:13:00 2005
- SunOS 5.10 (Solaris 10) support added
Thanks to Jesse Millan again
diff --git a/MANIFEST b/MANIFEST
index 93b151e..98d8f3f 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,6 +1,9 @@
-Changes
-Makefile.PL
-MANIFEST
-README
-test.pl
-Wrapper.pm
+Changes
+Makefile.PL
+MANIFEST
+README
+test.pl
+lib/Net/Ifconfig/Wrapper.pm
+contrib/uni-ifconfig.pl
+contrib/Win32-list-ifaces.pl
+META.yml Module meta-data (added by MakeMaker)
diff --git a/META.yml b/META.yml
new file mode 100644
index 0000000..e8b4c48
--- /dev/null
+++ b/META.yml
@@ -0,0 +1,20 @@
+--- #YAML:1.0
+name: Net-Ifconfig-Wrapper
+version: 0.11
+abstract: provides a unified way to configure network interfaces
+author:
+ - Daniel Podolsky <tpaba at cpan.org>
+license: unknown
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+requires:
+ POSIX: 0
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.48
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
diff --git a/Makefile.PL b/Makefile.PL
index e3a70ce..1ffed61 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,33 +1,40 @@
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-
-my %Supported = ('freebsd' => 1,
- 'solaris' => 1,
- 'linux' => 1,
- 'openbsd' => 1,
- 'MSWin32' => 1,
- 'darwin' => 1,
- );
-
-$Supported{$^O}
- or warn "\nWARNING! Your system '$^O' is not supported\b\n\n";
-
-my $PreReq = {'POSIX' => 0,};
-
-if ( $^O eq 'MSWin32' )
- {
- Win32::IsWinNT()
- or warn "\nWARNING! Only WinNT (from Win2K) is supported\b\n\n";
- $PreReq->{'Win32::API'} = 0;
- $PreReq->{'Win32::WinError'} = 0;
- };
-
-WriteMakefile(
- 'NAME' => 'Net::Ifconfig::Wrapper',
- 'VERSION_FROM' => 'Wrapper.pm', # finds $VERSION
- 'PREREQ_PM' => $PreReq, # e.g., Module::Name => 1.1
- ($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT_FROM => 'Wrapper.pm', # retrieve abstract from module
- AUTHOR => 'Daniel Podolsky <tpaba at cpan.org>') : ()),
-);
+use 5.008004;
+use ExtUtils::MakeMaker;
+# See lib/ExtUtils/MakeMaker.pm for details of how to influence
+# the contents of the Makefile that is written.
+my %supported = ('freebsd' => 1,
+ 'solaris' => 1,
+ 'linux' => 1,
+ 'openbsd' => 1,
+ 'MSWin32' => 1,
+ 'darwin' => 1,
+ 'cygwin' => 1,
+ );
+
+$supported{$^O}
+ or warn "\nWARNING! Your system '$^O' is not supported\b\n\n";
+
+my $preReq = {'POSIX' => 0,};
+
+if ( $^O eq 'MSWin32' )
+ {
+ Win32::IsWinNT()
+ or warn "\nWARNING! Only WinNT (from Win2K) is supported\b\n\n";
+ $preReq->{'Win32::API'} = 0;
+ $preReq->{'Win32::WinError'} = 0;
+ };
+
+if ( $^O eq 'cygwin' )
+ {
+ $preReq->{'Win32::API'} = 0;
+ $preReq->{'Win32::WinError'} = 0;
+ };
+
+WriteMakefile(
+ NAME => 'Net::Ifconfig::Wrapper',
+ VERSION_FROM => 'lib/Net/Ifconfig/Wrapper.pm', # finds $VERSION
+ PREREQ_PM => $preReq, # e.g., Module::Name => 1.1
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'lib/Net/Ifconfig/Wrapper.pm', # retrieve abstract from module
+ AUTHOR => 'Daniel Podolsky <tpaba at cpan.org>') : ()),
+);
diff --git a/README b/README
index f2fd8e6..0e58d24 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Net::IfConfig::Wrapper version 0.09
+Net::IfConfig::Wrapper version 0.11
===================
This module could be use to call the ifconfig command on different Unix systems
@@ -7,9 +7,9 @@ and WinNT (from Win2K) systems.
It is providing the unified way to obtain info from ifconfig, create and delete
the IP aliases on interfaces, etc.
-Module was tested on FreeBSD 4.7,4.8,5.3 (Intel), RedHat 6.2,7.3,8.0 (Intel),
-Win2000 Pro (Intel), OpenBSD 3.1 (SPARC), Solaris 7 (SPARC),
-OS X 10.3 (aka Panther), OS X 10.4 (aka Tiger).
+Module was tested on FreeBSD 4.7,4.8,5.3,6.2,7.2 (Intel), RedHat 6.2,7.3,8.0 (Intel),
+Win2000 Pro (Intel), WinXP Pro (Intel), OpenBSD 3.1 (SPARC), Solaris 7 (SPARC),
+OS X 10.3 (aka Panther), OS X 10.4 (aka Tiger), OS X 10.5 (aka Leopard).
INSTALLATION
@@ -25,8 +25,8 @@ DEPENDENCIES
This module requires these other modules:
POSIX
-Win32::API (on Win32)
-Win32::WinError (on Win32)
+Win32::API (on Win32 or cygwin)
+Win32::WinError (on Win32 or cygwin)
COPYRIGHT AND LICENCE
diff --git a/Wrapper.pm b/lib/Net/Ifconfig/Wrapper.pm
similarity index 95%
rename from Wrapper.pm
rename to lib/Net/Ifconfig/Wrapper.pm
index 5ec71fd..95fbe1f 100644
--- a/Wrapper.pm
+++ b/lib/Net/Ifconfig/Wrapper.pm
@@ -21,7 +21,7 @@ foreach (keys(%EXPORT_TAGS))
$EXPORT_TAGS{'all'}
and @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
-$VERSION = '0.09';
+$VERSION = '0.11';
use POSIX;
my ($OsName, $OsVers) = (POSIX::uname())[0,2];
@@ -45,7 +45,7 @@ my $ETHERNET = 'ff:ff:ff:ff:ff:ff';
(`/usr/sbin/arp -a 2>&1` =~ m/(?:\A|\n).+\s+at\s+([a-f\d]{1,2}(?:\:[a-f\d]{1,2}){5})\s+static\s*(?:\n|\Z)/i))
and $ETHERNET = $1;
-if ($^O eq 'MSWin32')
+if (($^O eq 'MSWin32') || ($^O eq 'cygwin'))
{
eval 'use Win32::API;
use Win32::WinError;
@@ -161,9 +161,15 @@ my $SolarisList = sub($$$$)
$Inet2Logic->{$Iface}{$1} = $Logic;
$Logic2Inet->{$Iface}{$Logic} = $1;
}
- elsif (($_ =~ m/\A\s+media\:?\s+ethernet.*\n?\Z/io) && !$Info->{$Iface}{'ether'})
+ elsif (($_ =~ m/\A\s+media\:?\s+(ethernet.*)\s*\n?\Z/io) && !$Info->{$Iface}{'ether'})
{
$Info->{$Iface}{'ether'} = $ETHERNET;
+ if (!$Info->{$Iface}{'media'})
+ {$Info->{$Iface}{'media'} = $1; };
+ }
+ elsif (($_ =~ m/\A\s+supported\s+media\:?\s+(.*)\s*\n?\Z/io) && !$Info->{$Iface}{'media'})
+ {
+ $Info->{$Iface}{'media'} = $1;
}
elsif ($_ =~ m/\A\s+ether\s+([a-f\d]{1,2}(?:\:[a-f\d]{1,2}){5})(?:\s.*)?\n?\Z/io)
{
@@ -459,7 +465,9 @@ $Ifconfig{'list'} = {'solaris' => {'ifconfig' => '/sbin/ifconfig -a',
'function' => $Win32List,},
};
-$Ifconfig{'list'}{'freebsd'} = $Ifconfig{'list'}{'solaris'};
$Ifconfig{'list'}{'darwin'} = $Ifconfig{'list'}{'solaris'};
+$Ifconfig{'list'}{'freebsd'} = $Ifconfig{'list'}{'solaris'};
$Ifconfig{'list'}{'darwin'} = $Ifconfig{'list'}{'solaris'};
+$Ifconfig{'list'}{'cygwin'} = $Ifconfig{'list'}{'MSWin32'};
+
my $UpDown = sub($$$$)
{
@@ -753,7 +761,7 @@ Net::Ifconfig::Wrapper - provides a unified way to configure network interfaces
on FreeBSD, OpenBSD, Solaris, Linux, OS X, and WinNT (from Win2K).
-I<Version 0.09>
+I<Version 0.11>
=head1 SYNOPSIS
--
Debian packaging of Net-Ifconfig-Wrapper CPAN distribution
More information about the Pkg-perl-cvs-commits
mailing list