pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/p5-SNMP-Info Add the Cisco 2940 family to the SNMP...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aea601769e93
branches:  trunk
changeset: 495402:aea601769e93
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Wed Jun 08 16:17:46 2005 +0000

description:
Add the Cisco 2940 family to the SNMP::Info::Layer2::C2900 class (will
feed back to author). Bump pkgrevision.

diffstat:

 net/p5-SNMP-Info/Makefile         |   5 +++--
 net/p5-SNMP-Info/distinfo         |   3 ++-
 net/p5-SNMP-Info/patches/patch-aa |  32 ++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 3 deletions(-)

diffs (70 lines):

diff -r 084c7f277916 -r aea601769e93 net/p5-SNMP-Info/Makefile
--- a/net/p5-SNMP-Info/Makefile Wed Jun 08 15:57:20 2005 +0000
+++ b/net/p5-SNMP-Info/Makefile Wed Jun 08 16:17:46 2005 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/05/25 16:59:02 bouyer Exp $
+# $NetBSD: Makefile,v 1.2 2005/06/08 16:17:46 bouyer Exp $
 #
 
 DISTNAME=      SNMP-Info-0.9.0
 PKGNAME=       p5-SNMP-Info-0.9
+PKGREVISION=   1
 SVR4_PKGNAME=  p5sni
 CATEGORIES=    net perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=SNMP/}
@@ -13,7 +14,7 @@
 
 DEPENDS+=      net-snmp>=5.1.2:../../net/net-snmp
 
-WRKSRC=                        ${WRKDIR}/${PKGNAME:S/p5-//}
+WRKSRC=                        ${WRKDIR}/${DISTNAME:S/.0//}
 PERL5_PACKLIST=                ${PERL5_SITEARCH}/auto/SNMP/Info/.packlist
 
 .include "../../lang/perl5/module.mk"
diff -r 084c7f277916 -r aea601769e93 net/p5-SNMP-Info/distinfo
--- a/net/p5-SNMP-Info/distinfo Wed Jun 08 15:57:20 2005 +0000
+++ b/net/p5-SNMP-Info/distinfo Wed Jun 08 16:17:46 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/05/25 16:59:02 bouyer Exp $
+$NetBSD: distinfo,v 1.2 2005/06/08 16:17:46 bouyer Exp $
 
 SHA1 (SNMP-Info-0.9.0.tar.gz) = 00492ec7946a029522ef8c15eb22e93c58533bdf
 RMD160 (SNMP-Info-0.9.0.tar.gz) = da752d0436c224d41973db4a7fc4c4a27a2a8ca2
 Size (SNMP-Info-0.9.0.tar.gz) = 112325 bytes
+SHA1 (patch-aa) = 9f9ab4e8850e5dad418a10fc20e53c38c7387bc1
diff -r 084c7f277916 -r aea601769e93 net/p5-SNMP-Info/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-SNMP-Info/patches/patch-aa Wed Jun 08 16:17:46 2005 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-aa,v 1.1 2005/06/08 16:17:46 bouyer Exp $
+
+--- Info.pm.orig       2005-06-08 18:00:15.000000000 +0200
++++ Info.pm    2005-06-08 18:01:54.000000000 +0200
+@@ -384,7 +384,8 @@
+ 
+ =item SNMP::Info::Layer2::C2900
+ 
+-Subclass for Cisco Catalyst 2900, 2950, 3500XL, and 3548 devices running IOS.
++Subclass for Cisco Catalyst 2900, 2940, 2950, 3500XL, and 3548 devices
++running IOS.
+ 
+ =item SNMP::Info::Layer2::Catalyst
+ 
+@@ -714,7 +715,7 @@
+         Elsif Layer2 (no Layer3)           -> SNMP::Info::Layer2
+             Aironet - IOS Devices          -> SNMP::Info::Layer2::Aironet
+             Catalyst 1900                  -> SNMP::Info::Layer2::C1900
+-            Catalyst 2900XL,2950,3500XL    -> SNMP::Info::Layer2::C2900
++            Catalyst 2900XL,2940,2950,3500XL -> SNMP::Info::Layer2::C2900
+             Catalyst 2970                  -> SNMP::Info::Layer3::C6500
+             Catalyst 3550/3548             -> SNMP::Info::Layer3::C3550
+             Catalyst WS-C 2926,5xxx        -> SNMP::Info::Layer2::Catalyst
+@@ -790,7 +791,7 @@
+         $objtype = 'SNMP::Info::Layer2::C1900' if ($desc =~ /catalyst/i and $desc =~ /\D19\d{2}/);
+ 
+         #   Catalyst 2900 and 3500XL (IOS) series override
+-        $objtype = 'SNMP::Info::Layer2::C2900' if ($desc =~ /(C2900XL|C2950|C3500XL)/i );
++        $objtype = 'SNMP::Info::Layer2::C2900' if ($desc =~ /(C2900XL|C2940|C2950|C3500XL)/i );
+ 
+         #   Catalyst WS-C series override 2926,4k,5k,6k in Hybrid
+         $objtype = 'SNMP::Info::Layer2::Catalyst' if ($desc =~ /WS-C\d{4}/);



Home | Main Index | Thread Index | Old Index