Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2014 23:37:49 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370617 - in head/net-mgmt: . rancid3 rancid3/files
Message-ID:  <201410102337.s9ANbnUL073121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Fri Oct 10 23:37:48 2014
New Revision: 370617
URL: https://svnweb.freebsd.org/changeset/ports/370617
QAT: https://qat.redports.org/buildarchive/r370617/

Log:
  New port: net-mgmt/rancid3
  
  I'm creating an entirely new port for rancid 3.x as the syntax for the
  router.db file is different and a blind upgrade will cause deletion of
  backed up devices and their configs from the repository if the user
  doesn't stop the cron jobs before updating the syntax.
  
  PR:		193351

Added:
  head/net-mgmt/rancid3/
  head/net-mgmt/rancid3/Makefile
     - copied, changed from r369729, head/net-mgmt/rancid/Makefile
  head/net-mgmt/rancid3/distinfo
     - copied, changed from r369729, head/net-mgmt/rancid/distinfo
  head/net-mgmt/rancid3/files/
     - copied from r369729, head/net-mgmt/rancid/files/
  head/net-mgmt/rancid3/pkg-descr
     - copied unchanged from r369729, head/net-mgmt/rancid/pkg-descr
  head/net-mgmt/rancid3/pkg-plist
     - copied, changed from r369729, head/net-mgmt/rancid/pkg-plist
Modified:
  head/net-mgmt/Makefile
  head/net-mgmt/rancid3/files/patch-etc__Makefile.am
  head/net-mgmt/rancid3/files/patch-etc__Makefile.in

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Fri Oct 10 23:34:59 2014	(r370616)
+++ head/net-mgmt/Makefile	Fri Oct 10 23:37:48 2014	(r370617)
@@ -266,6 +266,7 @@
     SUBDIR += qkismet
     SUBDIR += rackmonkey
     SUBDIR += rancid
+    SUBDIR += rancid3
     SUBDIR += rate
     SUBDIR += rcpd
     SUBDIR += remarp

Copied and modified: head/net-mgmt/rancid3/Makefile (from r369729, head/net-mgmt/rancid/Makefile)
==============================================================================
--- head/net-mgmt/rancid/Makefile	Wed Oct  1 14:47:45 2014	(r369729, copy source)
+++ head/net-mgmt/rancid3/Makefile	Fri Oct 10 23:37:48 2014	(r370617)
@@ -2,12 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	rancid
-PORTVERSION=	2.3.8
-PORTREVISION=	2
+PORTVERSION=	3.1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	ftp://ftp.shrubbery.net/pub/rancid/
+PKGNAMESUFFIX=	3
 
-MAINTAINER=	jmohacsi@bsd.hu
+MAINTAINER=	feld@FreeBSD.org
 COMMENT=	Really Awesome New Cisco confIg Differ
 
 LIB_DEPENDS=	libexpect.so:${PORTSDIR}/lang/expect
@@ -35,6 +35,8 @@ OPTIONS_DEFAULT=
 
 SVN_DESC=		Use Subversion instead of CVS
 
+CONFLICTS=	rancid-[0-9]*
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MSVN}

Copied and modified: head/net-mgmt/rancid3/distinfo (from r369729, head/net-mgmt/rancid/distinfo)
==============================================================================
--- head/net-mgmt/rancid/distinfo	Wed Oct  1 14:47:45 2014	(r369729, copy source)
+++ head/net-mgmt/rancid3/distinfo	Fri Oct 10 23:37:48 2014	(r370617)
@@ -1,2 +1,2 @@
-SHA256 (rancid-2.3.8.tar.gz) = 44e44c87a22968d5229c01d60aa46960da023a24846eef43f9e3c8d70fd5b3fb
-SIZE (rancid-2.3.8.tar.gz) = 379908
+SHA256 (rancid-3.1.tar.gz) = ad5b6814d2ae8ede69b1cd07a5e4406df92cf3d5ba6846daf57c2c1aeb273102
+SIZE (rancid-3.1.tar.gz) = 435045

Modified: head/net-mgmt/rancid3/files/patch-etc__Makefile.am
==============================================================================
--- head/net-mgmt/rancid/files/patch-etc__Makefile.am	Wed Oct  1 14:47:45 2014	(r369729)
+++ head/net-mgmt/rancid3/files/patch-etc__Makefile.am	Fri Oct 10 23:37:48 2014	(r370617)
@@ -1,6 +1,6 @@
---- ./etc/Makefile.am.orig	2010-02-27 09:49:56.000000000 +0100
-+++ ./etc/Makefile.am	2012-04-09 23:03:03.000000000 +0200
-@@ -58,26 +58,8 @@
+--- etc/Makefile.am.orig	2014-09-05 15:59:52 UTC
++++ etc/Makefile.am
+@@ -25,30 +25,10 @@
  endif
  
  install-data-local: all
@@ -14,6 +14,9 @@
 -	else \
 -	    $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
 -	fi; \
+-	if test ! -f $(DESTDIR)$(sysconfdir)/rancid.types.conf ; then \
+-	    $(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)/rancid.types.conf; \
+-	fi; \
 -	if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
 -	    echo ""; \
 -	    echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists.  See "; \
@@ -23,9 +26,12 @@
 -	else \
 -	    $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
 -	fi; \
--	fi
+-	fi; \
+-	$(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)/rancid.types.base
 +	$(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)
++	#$(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)
 +	$(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)
++	$(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)
  
  #clean:
  #	rm -f Makefile rancid.conf $(BIN_DATAS) $(BIN_PROGS)

Modified: head/net-mgmt/rancid3/files/patch-etc__Makefile.in
==============================================================================
--- head/net-mgmt/rancid/files/patch-etc__Makefile.in	Wed Oct  1 14:47:45 2014	(r369729)
+++ head/net-mgmt/rancid3/files/patch-etc__Makefile.in	Fri Oct 10 23:37:48 2014	(r370617)
@@ -1,6 +1,6 @@
---- ./etc/Makefile.in.orig	2011-11-17 22:10:11.000000000 +0100
-+++ ./etc/Makefile.in	2012-04-09 23:03:03.000000000 +0200
-@@ -423,26 +423,8 @@
+--- etc/Makefile.in.orig	2014-09-05 15:59:57 UTC
++++ etc/Makefile.in
+@@ -520,30 +520,10 @@
  
  
  install-data-local: all
@@ -14,6 +14,9 @@
 -	else \
 -	    $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \
 -	fi; \
+-	if test ! -f $(DESTDIR)$(sysconfdir)/rancid.types.conf ; then \
+-	    $(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)/rancid.types.conf; \
+-	fi; \
 -	if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \
 -	    echo ""; \
 -	    echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists.  See "; \
@@ -23,9 +26,12 @@
 -	else \
 -	    $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \
 -	fi; \
--	fi
+-	fi; \
+-	$(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)/rancid.types.base
 +	$(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)
++	#$(INSTALL_DATA) rancid.types.conf $(DESTDIR)$(sysconfdir)
 +	$(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)
++	$(INSTALL_DATA) rancid.types.base $(DESTDIR)$(sysconfdir)
  
  lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in
  	rm -f lg.conf.sample lg.conf.sample.tmp; \

Copied: head/net-mgmt/rancid3/pkg-descr (from r369729, head/net-mgmt/rancid/pkg-descr)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/rancid3/pkg-descr	Fri Oct 10 23:37:48 2014	(r370617, copy of r369729, head/net-mgmt/rancid/pkg-descr)
@@ -0,0 +1,16 @@
+Rancid monitors a router's (or device's) configuration, including software 
+and hardware (cards, serial numbers, etc), using CVS. Rancid currently 
+supports Bay routers, Cisco routers, Juniper routers, Catalyst switches, 
+Foundry switches, Redback NASs, ADC EZT3 muxes, MRTd (and thus likely IRRd), 
+Alteon switches, HP Procurve switches, Hitachi routers. 
+
+Rancid logs into each of the devices in a router table file, runs various 
+commands, chomps the output, and emails any differences from the previous
+collection to a mail list. 
+
+A looking glass is also included with rancid, based on Ed Kern's in use on 
+http://nitrous.digex.net/. Rancid version has added functions, supports Cisco,
+Juniper, and Foundry and uses the login scripts that come with rancid; 
+so it can use rsh, telnet, or ssh to connect to your router(s). 
+
+WWW: http://www.shrubbery.net/rancid/

Copied and modified: head/net-mgmt/rancid3/pkg-plist (from r369729, head/net-mgmt/rancid/pkg-plist)
==============================================================================
--- head/net-mgmt/rancid/pkg-plist	Wed Oct  1 14:47:45 2014	(r369729, copy source)
+++ head/net-mgmt/rancid3/pkg-plist	Fri Oct 10 23:37:48 2014	(r370617)
@@ -1,10 +1,18 @@
-@exec mkdir -p %D/var/rancid
-@exec chmod 775 %D/var/rancid
-@dirrmtry var
 bin/rancid-cvs
 bin/rancid-run
+lib/rancid/arbor.pm
+lib/rancid/dell.pm
+lib/rancid/eos.pm
+lib/rancid/foundry.pm
+lib/rancid/ios.pm
+lib/rancid/iosxr.pm
+lib/rancid/junos.pm
+lib/rancid/mrv.pm
+lib/rancid/rancid.pm
 libexec/rancid/alogin
+libexec/rancid/anlogin
 libexec/rancid/arancid
+libexec/rancid/anrancid
 libexec/rancid/arrancid
 libexec/rancid/avologin
 libexec/rancid/avorancid
@@ -13,8 +21,10 @@ libexec/rancid/blogin
 libexec/rancid/brancid
 libexec/rancid/cat5rancid
 libexec/rancid/clogin
+libexec/rancid/complogin
 libexec/rancid/control_rancid
 libexec/rancid/cssrancid
+libexec/rancid/dllogin
 libexec/rancid/elogin
 libexec/rancid/erancid
 libexec/rancid/f10rancid
@@ -22,7 +32,6 @@ libexec/rancid/f5rancid
 libexec/rancid/flogin
 libexec/rancid/fnrancid
 libexec/rancid/fnlogin
-libexec/rancid/francid
 libexec/rancid/hlogin
 libexec/rancid/hpuifilter
 libexec/rancid/hrancid
@@ -30,12 +39,10 @@ libexec/rancid/htlogin
 libexec/rancid/htrancid
 libexec/rancid/jerancid
 libexec/rancid/jlogin
-libexec/rancid/jrancid
 libexec/rancid/lg.cgi
 libexec/rancid/lgform.cgi
 libexec/rancid/mrancid
 libexec/rancid/mrvlogin
-libexec/rancid/mrvrancid
 libexec/rancid/mtlogin
 libexec/rancid/mtrancid
 libexec/rancid/nlogin
@@ -57,11 +64,14 @@ libexec/rancid/tlogin
 libexec/rancid/trancid
 libexec/rancid/tntlogin
 libexec/rancid/tntrancid
+libexec/rancid/xilogin
+libexec/rancid/xirancid
 libexec/rancid/xrancid
-libexec/rancid/xrrancid
 libexec/rancid/zrancid
 man/man1/agmrancid.1.gz
 man/man1/alogin.1.gz
+man/man1/anlogin.1.gz
+man/man1/anrancid.1.gz
 man/man1/arancid.1.gz
 man/man1/arrancid.1.gz
 man/man1/avologin.1.gz
@@ -70,8 +80,11 @@ man/man1/blogin.1.gz
 man/man1/brancid.1.gz
 man/man1/cat5rancid.1.gz
 man/man1/clogin.1.gz
+man/man1/complogin.1.gz
+man/man1/comprancid.1.gz
 man/man1/control_rancid.1.gz
 man/man1/cssrancid.1.gz
+man/man1/dllogin.1.gz
 man/man1/elogin.1.gz
 man/man1/erancid.1.gz
 man/man1/f10rancid.1.gz
@@ -79,18 +92,15 @@ man/man1/f5rancid.1.gz
 man/man1/flogin.1.gz
 man/man1/fnlogin.1.gz
 man/man1/fnrancid.1.gz
-man/man1/francid.1.gz
 man/man1/hlogin.1.gz
 man/man1/hrancid.1.gz
 man/man1/htlogin.1.gz
 man/man1/htrancid.1.gz
 man/man1/jerancid.1.gz
 man/man1/jlogin.1.gz
-man/man1/jrancid.1.gz
 man/man1/lg_intro.1.gz
 man/man1/mrancid.1.gz
 man/man1/mrvlogin.1.gz
-man/man1/mrvrancid.1.gz
 man/man1/mtlogin.1.gz
 man/man1/mtrancid.1.gz
 man/man1/nlogin.1.gz
@@ -100,8 +110,8 @@ man/man1/nsrancid.1.gz
 man/man1/nxrancid.1.gz
 man/man1/prancid.1.gz
 man/man1/rancid-cvs.1.gz
-man/man1/rancid-run.1.gz
 man/man1/rancid-par.1.gz
+man/man1/rancid-run.1.gz
 man/man1/rancid.1.gz
 man/man1/rancid_intro.1.gz
 man/man1/rivlogin.1.gz
@@ -112,15 +122,20 @@ man/man1/tlogin.1.gz
 man/man1/tntlogin.1.gz
 man/man1/tntrancid.1.gz
 man/man1/trancid.1.gz
+man/man1/xilogin.1.gz
+man/man1/xirancid.1.gz
 man/man1/xrancid.1.gz
-man/man1/xrrancid.1.gz
 man/man1/zrancid.1.gz
+man/man3/rancid.3.gz
 man/man5/cloginrc.5.gz
 man/man5/lg.conf.5.gz
 man/man5/rancid.conf.5.gz
+man/man5/rancid.types.base.5.gz
+man/man5/rancid.types.conf.5.gz
 man/man5/router.db.5.gz
-etc/rancid/lg.conf.sample
-etc/rancid/rancid.conf.sample
+%%ETCDIR%%/rancid.types.base
+@sample %%ETCDIR%%/lg.conf.sample
+@sample %%ETCDIR%%/rancid.conf.sample
 %%DATADIR%%/CHANGES
 %%DATADIR%%/COPYING
 %%DATADIR%%/FAQ
@@ -139,7 +154,4 @@ etc/rancid/rancid.conf.sample
 %%DATADIR%%/rancid-cvspurge
 %%DATADIR%%/rancid.conf.sample
 %%DATADIR%%/rtrfilter
-@dirrm %%DATADIR%%
-@dirrm var/rancid
-@dirrm etc/rancid
-@dirrm libexec/rancid
+@dir(,,755) var/rancid



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