Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 15:32:51 +0100 (BST)
From:      Janos Mohacsi <janos.mohacsi@dante.org.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38856: New port : rancid 2.2.1 (router configuration manager)
Message-ID:  <200206031432.g53EWpLu043110@budapest.dante.org.uk>

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

>Number:         38856
>Category:       ports
>Synopsis:       New port : rancid 2.2.1 (router configuration manager)
>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:   Mon Jun 03 07:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Janos Mohacsi
>Release:        FreeBSD 4.6-RC i386
>Organization:
DANTE
>Environment:
System: FreeBSD budapest.dante.org.uk 4.6-RC FreeBSD 4.6-RC #2: Mon Jun 3 09:47:22 BST 2002 janos@budapest.dante.org.uk:/usr/src/sys/compile/BUDAPEST i386

>Description:

New port: rancid version 2.2.1. 

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, and HP procurve switches. 

It also has a looking-glass, that supports cisco, juniper, and foundry 
and uses the login scripts that come with rancid;
>How-To-Repeat:

Apply this shar.

>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:
#
#	rancid
#	rancid/pkg-plist
#	rancid/pkg-descr
#	rancid/pkg-comment
#	rancid/distinfo
#	rancid/Makefile
#	rancid/pkg-message
#	rancid/files
#	rancid/files/patch-Makefile.am
#	rancid/files/patch-Makefile.in
#	rancid/files/patch-util::lg::Makefile.in
#	rancid/files/patch-util::Makefile.in
#
echo c - rancid
mkdir -p rancid > /dev/null 2>&1
echo x - rancid/pkg-plist
sed 's/^X//' >rancid/pkg-plist << 'END-of-rancid/pkg-plist'
Xrancid/util/lg/lg.cgi
Xrancid/util/lg/lgform.cgi
Xrancid/util/lg/lg.conf
Xrancid/util/lg/README
Xrancid/util/lg/index.html
Xrancid/util/lg/lgnotes.html
Xrancid/util/README
Xrancid/util/rtrfilter
Xrancid/util/rtrfilter.README
Xrancid/util/cisco-load.exp
Xrancid/util/cisco-reload.exp
Xrancid/util/downreport
Xrancid/bin/hpfilter
Xrancid/bin/cat5rancid
Xrancid/bin/control_rancid
Xrancid/bin/alogin
Xrancid/bin/arancid
Xrancid/bin/clogin
Xrancid/bin/create_cvs
Xrancid/bin/blogin
Xrancid/bin/brancid
Xrancid/bin/do-diffs
Xrancid/bin/elogin
Xrancid/bin/erancid
Xrancid/bin/f10rancid
Xrancid/bin/flogin
Xrancid/bin/francid
Xrancid/bin/jlogin
Xrancid/bin/jrancid
Xrancid/bin/hlogin
Xrancid/bin/hrancid
Xrancid/bin/mrancid
Xrancid/bin/par
Xrancid/bin/rancid-fe
Xrancid/bin/rancid
Xrancid/bin/rename
Xrancid/bin/rrancid
Xrancid/bin/xrancid
Xrancid/bin/env
Xrancid/CHANGES
Xrancid/README
Xrancid/FAQ
Xrancid/cloginrc.sample
X@dirrm rancid/util/lg
X@dirrm rancid/util
X@dirrm rancid/bin
X@dirrm rancid/man/man1
X@dirrm rancid/man/man5
X@dirrm rancid/man
X@dirrm rancid
END-of-rancid/pkg-plist
echo x - rancid/pkg-descr
sed 's/^X//' >rancid/pkg-descr << 'END-of-rancid/pkg-descr'
XRancid monitors a router's (or device's) configuration, including software 
Xand hardware (cards, serial numbers, etc), using CVS. Rancid currently 
Xsupports Bay routers, Cisco routers, Juniper routers, Catalyst switches, 
XFoundry switches, Redback NASs, ADC EZT3 muxes, MRTd (and thus likely IRRd), 
XAlteon switches, and HP procurve switches. 
X
XRancid logs into each of the devices in a router table file, runs various 
Xcommands, chomps the output, and emails any differences ( sample) from 
Xthe previous collection to a mail list. 
X
XA looking glass is also included with rancid, based on Ed Kern's in use on 
Xhttp://nitrous.digex.net/. Rancid  version has added functions, supports cisco,
X juniper, and foundry and uses the login scripts that come with rancid; 
Xso it can use rsh, telnet, or ssh to connect to your router(s). 
X
XWWW: http://www.shrubbery.net/rancid/
END-of-rancid/pkg-descr
echo x - rancid/pkg-comment
sed 's/^X//' >rancid/pkg-comment << 'END-of-rancid/pkg-comment'
XRANCID - Really Awesome New Cisco confIg Differ
END-of-rancid/pkg-comment
echo x - rancid/distinfo
sed 's/^X//' >rancid/distinfo << 'END-of-rancid/distinfo'
XMD5 (rancid-2.2.1.tar.gz) = 1158549913d5bbcef308247cac993be4
END-of-rancid/distinfo
echo x - rancid/Makefile
sed 's/^X//' >rancid/Makefile << 'END-of-rancid/Makefile'
X# New ports collection makefile for:	rancid
X# Date created:		3 June 2002
X# Whom:			Janos.Mohacsi@bsd.hu
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rancid
XPORTVERSION=	2.2.1
XCATEGORIES=	net
XMASTER_SITES=	ftp://ftp.shrubbery.net/pub/rancid/
X
XMAINTAINER=	janos.mohacsi@bsd.hu
X
XBUILD_DEPENDS=	expect:${PORTSDIR}/lang/expect
XRUN_DEPENDS=	expect:${PORTSDIR}/lang/expect \
X		${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
X		${SITE_PERL}/LockFile/Simple.pm:${PORTSDIR}/devel/p5-LockFile-Simple
X
XSITE_PERL=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
XUSE_PERL5=	yes
XPKGMESSAGE=	${WRKDIR}/pkg-message
XUSE_GMAKE=	yes
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=			\
X		--prefix=${PREFIX}/rancid
X
XMANPREFIX=      ${PREFIX}/rancid
X
XMAN1=           lg_intro.1 par.1 do-diffs.1 alogin.1 blogin.1 clogin.1 \
X		control_rancid.1 create_cvs.1 rancid.1 rancid_intro.1 \
X		elogin.1 f10rancid.1 flogin.1 hlogin.1 hrancid.1 jlogin.1 \
X		jrancid.1 francid.1 cat5rancid.1 erancid.1 mrancid.1 xrancid.1
X
XMAN5=		env.5 lg.conf.5 cloginrc.5 router.db.5
X
Xpost-install:
X	@ ${SED} -e "s:%%INSTDIR%%:${PREFIX}/rancid:g" pkg-message >${PKGMESSAGE}
X.if !defined(BATCH)
X	@ ${ECHO}
X	@ ${CAT} ${PKGMESSAGE}
X	@ ${ECHO}
X.endif
X
X.include <bsd.port.mk>
END-of-rancid/Makefile
echo x - rancid/pkg-message
sed 's/^X//' >rancid/pkg-message << 'END-of-rancid/pkg-message'
XFor further configuration information please look at 
X%%INSTDIR%%/README. 
X
XIf you would like to set up Rancid to be browseable from Web, 
Xyou need to install devel/cvsweb or devel/viewcvs.
X
XFor rancid looking-glass copy the actual CGIs (located at
X%%INSTDIR%%/util/lg/{lg.cgi lgform.cgi}) to your cgi-bin.
END-of-rancid/pkg-message
echo c - rancid/files
mkdir -p rancid/files > /dev/null 2>&1
echo x - rancid/files/patch-Makefile.am
sed 's/^X//' >rancid/files/patch-Makefile.am << 'END-of-rancid/files/patch-Makefile.am'
X*** Makefile.am.orig	Mon Jun  3 14:01:32 2002
X--- Makefile.am	Mon Jun  3 14:02:03 2002
X***************
X*** 22,28 ****
X  	$(mkinstalldirs) $(prefix)/util $(prefix)/util/lg
X  
X  install:
X! 	for file in CHANGES README cloginrc.sample ; do \
X  	    $(INSTALL_DATA) $$file $(prefix); \
X  	done
X  
X--- 22,28 ----
X  	$(mkinstalldirs) $(prefix)/util $(prefix)/util/lg
X  
X  install:
X! 	for file in CHANGES FAQ README cloginrc.sample ; do \
X  	    $(INSTALL_DATA) $$file $(prefix); \
X  	done
X  
END-of-rancid/files/patch-Makefile.am
echo x - rancid/files/patch-Makefile.in
sed 's/^X//' >rancid/files/patch-Makefile.in << 'END-of-rancid/files/patch-Makefile.in'
X*** Makefile.in.orig	Mon Jun  3 14:01:40 2002
X--- Makefile.in	Mon Jun  3 14:02:40 2002
X***************
X*** 354,360 ****
X  	$(mkinstalldirs) $(prefix)/util $(prefix)/util/lg
X  
X  install:
X! 	for file in CHANGES README cloginrc.sample ; do \
X  	    $(INSTALL_DATA) $$file $(prefix); \
X  	done
X  
X--- 354,360 ----
X  	$(mkinstalldirs) $(prefix)/util $(prefix)/util/lg
X  
X  install:
X! 	for file in CHANGES FAQ README cloginrc.sample ; do \
X  	    $(INSTALL_DATA) $$file $(prefix); \
X  	done
X  
END-of-rancid/files/patch-Makefile.in
echo x - rancid/files/patch-util::lg::Makefile.in
sed 's/^X//' >rancid/files/patch-util::lg::Makefile.in << 'END-of-rancid/files/patch-util::lg::Makefile.in'
X*** util/lg/Makefile.in.orig	Mon Jun  3 14:14:33 2002
X--- util/lg/Makefile.in	Mon Jun  3 14:14:51 2002
X***************
X*** 1,6 ****
X  PREFIX = @prefix@
X  
X! INSTALL = @INSTALL@
X  INSTALL_DATA = @INSTALL_DATA@
X  
X  UTIL_LG_PROGS = @RD_UTIL_LG_PROGS@
X--- 1,6 ----
X  PREFIX = @prefix@
X  
X! INSTALL = @INSTALL_SCRIPT@
X  INSTALL_DATA = @INSTALL_DATA@
X  
X  UTIL_LG_PROGS = @RD_UTIL_LG_PROGS@
END-of-rancid/files/patch-util::lg::Makefile.in
echo x - rancid/files/patch-util::Makefile.in
sed 's/^X//' >rancid/files/patch-util::Makefile.in << 'END-of-rancid/files/patch-util::Makefile.in'
X*** util/Makefile.in.orig	Mon Jun  3 14:21:54 2002
X--- util/Makefile.in	Mon Jun  3 14:23:55 2002
X***************
X*** 1,6 ****
X  PREFIX = @prefix@
X  
X! INSTALL = @INSTALL@
X  INSTALL_DATA = @INSTALL_DATA@
X  
X  UTIL_PROGS = @RD_UTIL_PROGS@
X--- 1,6 ----
X  PREFIX = @prefix@
X  
X! INSTALL = @INSTALL_SCRIPT@
X  INSTALL_DATA = @INSTALL_DATA@
X  
X  UTIL_PROGS = @RD_UTIL_PROGS@
END-of-rancid/files/patch-util::Makefile.in
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?200206031432.g53EWpLu043110>