[-]
[+]
|
Changed |
rancid.changes
|
|
[-]
[+]
|
Changed |
rancid.spec
^
|
|
[-]
[+]
|
Added |
rancid-3.2.p1
^
|
@@ -0,0 +1,37 @@
+Index: lib/rancid.pm.in
+===================================================================
+--- lib/rancid.pm.in (revision 3066)
++++ lib/rancid.pm.in (revision 3067)
+@@ -366,7 +366,9 @@
+ $l = 128;
+ }
+ $norder = inet_pton(AF_INET6, $a);
+- return unpack("H*", $norder) . unpack("H*", pack("C", $l));
++ if (defined($norder)) {
++ return unpack("H*", $norder) . unpack("H*", pack("C", $l));
++ }
+ } else {
+ my($l);
+ if ($a =~ /\//) {
+@@ -375,7 +377,9 @@
+ $l = 32;
+ }
+ $norder = inet_pton(AF_INET, $a);
+- return(unpack("H*", $norder) . unpack("H*", pack("C", $l)));
++ if (defined($norder)) {
++ return(unpack("H*", $norder) . unpack("H*", pack("C", $l)));
++ }
+ }
+
+ # otherwise return the original key value, so as not to sort on null
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3066)
++++ CHANGES (revision 3067)
+@@ -1,4 +1,6 @@
+ 3.2.99
++ rancid.pm: check result from inet_pton()
++
+ ciscowlc.pm: comment a few config lines that can not be imported
+
+ 3.2
|
[-]
[+]
|
Added |
rancid-3.2.p2
^
|
@@ -0,0 +1,37 @@
+Index: lib/junos.pm.in
+===================================================================
+--- lib/junos.pm.in (revision 3067)
++++ lib/junos.pm.in (revision 3068)
+@@ -439,13 +439,18 @@
+
+ # licenses used changes constantly. distill it to a percentage.
+ if (/^(\s+scale-subscriber)(\s+)(\d+)(\s+\d+)(.*$)/) {
+- my($a, $sp, $used, $avail, $rem) = ($1, $2, $3, $4, $');
++ my($a, $sp, $used, $avail, $rem) = ($1, $2, $3, $4, $5);
+ my($spl, $usedl) = (length($sp), length($used));
+- my($pcnt) = int(($used + 0.0) / ($avail + 0.0) * 100);
++ my($pcnt);
++ if ($avail < 1) {
++ $pcnt = ">100";
++ } else {
++ $pcnt = int(($used + 0.0) / ($avail + 0.0) * 100);
++ }
+ my($pcntl) = length($pcnt) + 1;
+ $spl = $spl + $usedl - $pcntl;
+
+- my($fmt) = "%s%-" . $spl . "s%d%%%s%s";
++ my($fmt) = "%s%-" . $spl . "s%s%%%s%s\n";
+ $_ = sprintf($fmt, $a, "", $pcnt, $avail, $rem);
+ }
+
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3067)
++++ CHANGES (revision 3068)
+@@ -1,4 +1,6 @@
+ 3.2.99
++ junos.pm: fix showsystemlicense for errant licenses w/ 0 available
++
+ rancid.pm: check result from inet_pton()
+
+ ciscowlc.pm: comment a few config lines that can not be imported
|
[-]
[+]
|
Added |
rancid-3.2.p3
^
|
@@ -0,0 +1,81 @@
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 3070)
++++ configure.ac (working copy)
+@@ -275,7 +275,7 @@
+ else
+ $PERLV_PATH -e 'require 5;'
+ if test $? -ne 0 ; then
+- AC_MSG_ERROR([can't locate a suitable perl5.])
++ AC_MSG_ERROR([can't locate a suitable perl5.])
+ exit 1
+ fi
+ fi
+@@ -284,6 +284,14 @@
+ PERLV=`basename $PERLV_PATH`
+ AC_SUBST(PERLV)
+
++# check Socket.pm version
++AC_MSG_CHECKING([Socket.pm version])
++$PERLV_PATH -e 'use 2.006 Socket qw(inet_pton);' 2>&1 >/dev/null
++if test $? -ne 0 ; then
++ AC_MSG_ERROR([Socket.pm is older than 2.006; upgrade from http://metacpan.org/pod/Socket])
++ exit 1
++fi
++
+ AC_PATH_PROG(EXPECT_PATH,expect,no)
+ if test $EXPECT_PATH = no; then
+ AC_MSG_ERROR([can't locate expect.])
+Index: lib/rancid.pm.in
+===================================================================
+--- lib/rancid.pm.in (revision 3070)
++++ lib/rancid.pm.in (working copy)
+@@ -48,7 +48,7 @@
+ use 5.010;
+ use strict 'vars';
+ use warnings;
+-use Socket qw(AF_INET AF_INET6 inet_pton);
++use 2.006 Socket qw(AF_INET AF_INET6 inet_pton);
+ require(Exporter);
+ our @ISA = qw(Exporter);
+
+Index: configure
+===================================================================
+--- configure (revision 3070)
++++ configure (working copy)
+@@ -5307,7 +5307,7 @@
+ else
+ $PERLV_PATH -e 'require 5;'
+ if test $? -ne 0 ; then
+- as_fn_error $? "can't locate a suitable perl5." "$LINENO" 5
++ as_fn_error $? "can't locate a suitable perl5." "$LINENO" 5
+ exit 1
+ fi
+ fi
+@@ -5316,6 +5316,15 @@
+ PERLV=`basename $PERLV_PATH`
+
+
++# check Socket.pm version
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Socket.pm version" >&5
++$as_echo_n "checking Socket.pm version... " >&6; }
++$PERLV_PATH -e 'use 2.006 Socket qw(inet_pton);' 2>&1 >/dev/null
++if test $? -ne 0 ; then
++ as_fn_error $? "Socket.pm is older than 2.006; upgrade from http://metacpan.org/pod/Socket" "$LINENO" 5
++ exit 1
++fi
++
+ # Extract the first word of "expect", so it can be a program name with args.
+ set dummy expect; ac_word=$2
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3071)
++++ CHANGES (working copy)
+@@ -1,4 +1,6 @@
+ 3.2
++ configure, rancid.pm: check minimum revision of Socket.pm
++
+ junos.pm: fix showsystemlicense for errant licenses w/ 0 available
+
+ rancid.pm: check result from inet_pton()
|
[-]
[+]
|
Added |
rancid-3.2.p4
^
|
@@ -0,0 +1,53 @@
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3076)
++++ CHANGES (working copy)
+@@ -1,4 +1,6 @@
+ 3.2
++ rancid.type.base: comment adtran definition to avoid confusion
++
+ configure, rancid.pm: check minimum revision of Socket.pm
+
+ junos.pm: fix showsystemlicense for errant licenses w/ 0 available
+Index: etc/rancid.types.base
+===================================================================
+--- etc/rancid.types.base (revision 3076)
++++ etc/rancid.types.base (working copy)
+@@ -7,22 +7,23 @@
+ #
+ agm;script;agmrancid
+ #
+-adtran;script;rancid -t adtran
+-adtran;module;adtran
+-adtran;inloop;adtran::inloop
+-adtran;login;clogin
++# XXX This was the start of support for adtran, but it is incomplete.
++#adtran;script;rancid -t adtran
++#adtran;module;adtran
++#adtran;inloop;adtran::inloop
++#adtran;login;clogin
+ # TA5000
+-adtran;command;adtran::ShowVersion;show version
+-adtran;command;adtran::ShowSystemInventory;show system inventory
+-adtran;command;adtran::ShowTableInterfaces;show table interfaces
+-adtran;command;adtran::ShowEvc;show evc
+-adtran;command;adtran::ShowEvcmap;show evc-map
+-adtran;command;adtran::ShowEfmgroup;show efm-group 1
+-adtran;command;adtran::ShowInterfacesShdsl;show interfaces shdsl
+-adtran;command;adtran::ShowInterfacesAdsl;show interfaces adsl
++#adtran;command;adtran::ShowVersion;show version
++#adtran;command;adtran::ShowSystemInventory;show system inventory
++#adtran;command;adtran::ShowTableInterfaces;show table interfaces
++#adtran;command;adtran::ShowEvc;show evc
++#adtran;command;adtran::ShowEvcmap;show evc-map
++#adtran;command;adtran::ShowEfmgroup;show efm-group 1
++#adtran;command;adtran::ShowInterfacesShdsl;show interfaces shdsl
++#adtran;command;adtran::ShowInterfacesAdsl;show interfaces adsl
+ # EFM NTU
+-adtran;command;adtran::ShowInterfaces;show interfaces
+-adtran;command;adtran::WriteTerm;show running-config
++#adtran;command;adtran::ShowInterfaces;show interfaces
++#adtran;command;adtran::WriteTerm;show running-config
+ #
+ alteon;script;arancid
+ alteon;login;alogin
|
[-]
[+]
|
Added |
rancid-3.2.p5
^
|
@@ -0,0 +1,21 @@
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3112)
++++ CHANGES (working copy)
+@@ -1,4 +1,6 @@
+ 3.2
++ panos.pm: fix package definition
++
+ rancid.type.base: comment adtran definition to avoid confusion
+
+ configure, rancid.pm: check minimum revision of Socket.pm
+Index: lib/panos.pm.in
+===================================================================
+--- lib/panos.pm.in (revision 3112)
++++ lib/panos.pm.in (working copy)
+@@ -1,4 +1,4 @@
+-package ios;
++package panos;
+ ##
+ ## $Id$
+ ##
|
[-]
[+]
|
Added |
rancid-3.2.p6
^
|
@@ -0,0 +1,53 @@
+Index: bin/control_rancid.in
+===================================================================
+--- bin/control_rancid.in (revision 3116)
++++ bin/control_rancid.in (working copy)
+@@ -206,13 +206,14 @@
+ routers.down
+ routers.up
+ EOF
++ fi
+ if [ ! -f configs/.cvsignore ] ; then
+ rm -rf configs/.cvsignore
+- cat > configs/.cvsignore <<EOF
++ cat > configs/.cvsignore <<EOF2
+ .old
+ *.new
+ *.raw
+-EOF
++EOF2
+ fi
+ if [ $RCSSYS = svn ] ; then
+ svn propset svn:ignore -F .cvsignore .
+@@ -219,7 +220,6 @@
+ svn propset svn:ignore -F configs/.cvsignore configs
+ svn update .
+ svn commit -m 'set svn:ignores' .
+- fi
+ fi
+ ;;
+ esac
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3113)
++++ CHANGES (working copy)
+@@ -1,4 +1,6 @@
+ 3.2
++ control_rancid: fix handling of configs/.cvsignore
++
+ panos.pm: fix package definition
+
+ rancid.type.base: comment adtran definition to avoid confusion
+Index: bin/control_rancid.in
+===================================================================
+--- bin/control_rancid.in (revision 3123)
++++ bin/control_rancid.in (working copy)
+@@ -449,7 +449,7 @@
+ done
+ echo
+ # delete configs from RCS for routers not listed in routers.up.
+-for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .svn -prune -o -name .gitignore -prune \) -o -type f -print | sed -e 's/^.\///'` ; do
++for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .svn -prune -o -name .cvsignore -prune -o -name .gitignore -prune \) -o -type f -print | sed -e 's/^.\///'` ; do
+ grep -i "^$router\;" ../router.db > /dev/null 2>&1
+ if [ $? -eq 1 ] ; then
+ rm -f $router
|
[-]
[+]
|
Added |
rancid-3.2.p7
^
|
@@ -0,0 +1,25 @@
+Index: CHANGES
+===================================================================
+--- CHANGES (revision 3120)
++++ CHANGES (working copy)
+@@ -33,6 +33,8 @@
+ ciscowlc.pm: comment a few config lines that can not be imported
+
+ 3.2
++ control_rancid: fix handling of <group>/rancid.conf in git - Mike Eklund
++
+ control_rancid: fix handling of configs/.cvsignore
+
+ panos.pm: fix package definition - martyMusto
+Index: bin/control_rancid.in
+===================================================================
+--- bin/control_rancid.in (revision 3119)
++++ bin/control_rancid.in (working copy)
+@@ -236,6 +236,7 @@
+ ;;
+ git )
+ git status -s rancid.conf | grep '^?'
++ if [ $? -eq 0 ] ; then LN=1; else LN=0; fi
+ ;;
+ esac
+ if [ $LN -eq 0 ] ; then
|