From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 21 08:40:08 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 995A116A419 for ; Wed, 21 Mar 2007 08:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4BA13C4DD for ; Wed, 21 Mar 2007 08:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2L8e8xF064923 for ; Wed, 21 Mar 2007 08:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2L8e8ta064922; Wed, 21 Mar 2007 08:40:08 GMT (envelope-from gnats) Resent-Date: Wed, 21 Mar 2007 08:40:08 GMT Resent-Message-Id: <200703210840.l2L8e8ta064922@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Janos Mohacsi Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 460D816A40D for ; Wed, 21 Mar 2007 08:34:42 +0000 (UTC) (envelope-from mohacsi@scone.ki.iif.hu) Received: from scone.ki.iif.hu (dhcp-13cc.ietf68.org [130.129.19.204]) by mx1.freebsd.org (Postfix) with ESMTP id 728B213C483 for ; Wed, 21 Mar 2007 08:34:41 +0000 (UTC) (envelope-from mohacsi@scone.ki.iif.hu) Received: (from mohacsi@localhost) by scone.ki.iif.hu (8.13.8/8.13.8) id l2L82vJh001871; Wed, 21 Mar 2007 09:02:57 +0100 (CET) (envelope-from mohacsi) Message-Id: <200703210802.l2L82vJh001871@scone.ki.iif.hu> Date: Wed, 21 Mar 2007 09:02:57 +0100 (CET) From: Janos Mohacsi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/110607: [NEW PORT] net-mgmt/rancid: Really Awesome New Cisco confIg Differ - alpha development version X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 08:40:08 -0000 >Number: 110607 >Category: ports >Synopsis: [NEW PORT] net-mgmt/rancid: Really Awesome New Cisco confIg Differ - alpha development version >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 21 08:40:08 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 6.2-STABLE i386 >Organization: NIIF/HUNGARNET >Environment: System: FreeBSD scone.ki.iif.hu 6.2-STABLE FreeBSD 6.2-STABLE #21: Wed Mar 21 00:15:37 CET 2007 >Description: Develoment version of net-mgmt/rancid - several users asked it, althought it is considered by the authors as alpha release. 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 ( sample) 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/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- rancid-2.3.2a6.shar begins here --- # 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-devel # rancid-devel/files # rancid-devel/files/patch-etc::Makefile.am # rancid-devel/files/patch-etc::Makefile.in # rancid-devel/Makefile # rancid-devel/distinfo # rancid-devel/pkg-descr # rancid-devel/pkg-message # rancid-devel/pkg-plist # echo c - rancid-devel mkdir -p rancid-devel > /dev/null 2>&1 echo c - rancid-devel/files mkdir -p rancid-devel/files > /dev/null 2>&1 echo x - rancid-devel/files/patch-etc::Makefile.am sed 's/^X//' >rancid-devel/files/patch-etc::Makefile.am << 'END-of-rancid-devel/files/patch-etc::Makefile.am' X X$FreeBSD$ X X--- etc/Makefile.am.orig X+++ etc/Makefile.am X@@ -33,26 +33,8 @@ X endif X X install-data-local: all X- @if test "$(DO_CONF_INSTALL)" = "yes"; then \ X- if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \ X- echo ""; \ X- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists. See "; \ X- echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \ X- echo " *** examples."; \ X- echo ""; \ X- else \ X- $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \ X- fi; \ X- if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \ X- echo ""; \ X- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists. See "; \ X- echo " *** $(pkgdatadir)/lg.conf.sample for new"; \ X- echo " *** examples."; \ X- echo ""; \ X- else \ X- $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \ X- fi; \ X- fi X+ $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir) X+ $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir) X X #clean: X # rm -f Makefile rancid.conf $(BIN_DATAS) $(BIN_PROGS) END-of-rancid-devel/files/patch-etc::Makefile.am echo x - rancid-devel/files/patch-etc::Makefile.in sed 's/^X//' >rancid-devel/files/patch-etc::Makefile.in << 'END-of-rancid-devel/files/patch-etc::Makefile.in' X X$FreeBSD$ X X--- etc/Makefile.in.orig X+++ etc/Makefile.in X@@ -375,26 +375,8 @@ X X X install-data-local: all X- @if test "$(DO_CONF_INSTALL)" = "yes"; then \ X- if test -f $(DESTDIR)$(sysconfdir)/rancid.conf ; then \ X- echo ""; \ X- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/rancid.conf exists. See "; \ X- echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \ X- echo " *** examples."; \ X- echo ""; \ X- else \ X- $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir)/rancid.conf; \ X- fi; \ X- if test -f $(DESTDIR)$(sysconfdir)/lg.conf ; then \ X- echo ""; \ X- echo "WARNING: *** $(DESTDIR)$(sysconfdir)/lg.conf exists. See "; \ X- echo " *** $(pkgdatadir)/lg.conf.sample for new"; \ X- echo " *** examples."; \ X- echo ""; \ X- else \ X- $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir)/lg.conf; \ X- fi; \ X- fi X+ $(INSTALL_DATA) rancid.conf.sample $(DESTDIR)$(sysconfdir) X+ $(INSTALL_DATA) lg.conf.sample $(DESTDIR)$(sysconfdir) X X lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in X rm -f lg.conf.sample lg.conf.sample.tmp; \ END-of-rancid-devel/files/patch-etc::Makefile.in echo x - rancid-devel/Makefile sed 's/^X//' >rancid-devel/Makefile << 'END-of-rancid-devel/Makefile' X# New ports collection makefile for: rancid-devel X# Date created: 20 March 2007 (based on net-mgmt/rancid) X# Whom: janos.mohacsi@bsd.hu X# X# $FreeBSD$ X# X XPORTNAME= rancid XPORTVERSION= 2.3.2a6 XCATEGORIES= net-mgmt XMASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/ X XMAINTAINER= janos.mohacsi@bsd.hu XCOMMENT= Really Awesome New Cisco confIg Differ 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 XUSE_PERL5= yes XPKGMESSAGE= ${WRKDIR}/pkg-message XUSE_GMAKE= yes XHAS_CONFIGURE= yes XCONFIGURE_ARGS= \ X --prefix=${PREFIX}/ \ X --localstatedir=${PREFIX}/var/${PORTNAME}/ \ X --bindir=${PREFIX}/libexec/${PORTNAME}/ \ X --sysconfdir=${PREFIX}/etc/${PORTNAME}/ \ X --mandir=${PREFIX}/man X XMAN1= alogin.1 blogin.1 cat5rancid.1 clogin.1 control_rancid.1 \ X cssrancid.1 elogin.1 erancid.1 f10rancid.1 flogin.1 fnrancid.1 \ X francid.1 hlogin.1 hrancid.1 htlogin.1 htrancid.1 jerancid.1 \ X jlogin.1 jrancid.1 lg_intro.1 mrancid.1 nlogin.1 nrancid.1 \ X nslogin.1 nsrancid.1 par.1 prancid.1 rancid-cvs.1 rancid-run.1 \ X rancid.1 rancid_intro.1 rivlogin.1 rivrancid.1 tntlogin.1 \ X tntrancid.1 xrancid.1 zrancid.1 arancid.1 brancid.1 \ X drancid.1 X XMAN5= lg.conf.5 cloginrc.5 rancid.conf.5 router.db.5 X XOLDCONFIG_FILE1= bin/env XOLDCONFIG_FILE2= util/lg/lg.conf XNEWERCONFIG_FILES1= etc/rancid.conf XNEWERCONFIG_FILES2= etc/lg.conf XNEWCONFIG_FILES= rancid.conf lg.conf X Xpre-everything:: X @ ${ECHO} "Make sure your rancid repository is quit before upgrading; disable rancid cron jobs" X Xpost-install: X ${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-cvs ${PREFIX}/bin X ${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-run ${PREFIX}/bin X @ ${SED} -e "s:%%INSTDIR%%:${PREFIX}:g" pkg-message >${PKGMESSAGE} X.if !defined(BATCH) X @ ${ECHO} X @ ${CAT} ${PKGMESSAGE} X @ ${ECHO} X.endif X.for file in ${NEWCONFIG_FILES} X @ if [ -f ${PREFIX}/etc/${PORTNAME}/${file} ] ; then \ X ${ECHO} "WARNING: *** new ${file} file is installed as ${PREFIX}/rancid/${file}.sample"; \ X ${ECHO} " : *** review ${file}.sample for new/deprecated switches or install in place ${file}"; \ X fi X.endfor X @ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} ] ; then \ X ${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE1} has been replaced with "; \ X ${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \ X fi X @ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \ X ${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE2} has been replaced with "; \ X ${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \ X fi X @ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} -o \ X -f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \ X ${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/var/${PORTNAME}/ "; \ X ${ECHO} " : *** Copy the repository if you want to keep the history "; \ X fi X X @ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} ] ; then \ X ${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE1} has been replaced with "; \ X ${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \ X fi X @ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \ X ${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE2} has been replaced with "; \ X ${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \ X fi X @ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} -o \ X -f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \ X ${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/rancid/var "; \ X ${ECHO} " : *** Copy the repository if you want to keep the history "; \ X fi X X.include END-of-rancid-devel/Makefile echo x - rancid-devel/distinfo sed 's/^X//' >rancid-devel/distinfo << 'END-of-rancid-devel/distinfo' XMD5 (rancid-2.3.2a6.tar.gz) = 54a91c7e00c201a8f88ec44b83c0a1e4 XSHA256 (rancid-2.3.2a6.tar.gz) = 2f916ab1ab89215c72e45f8276a54fdb233c8396c6b48f906e1aad308f02c603 XSIZE (rancid-2.3.2a6.tar.gz) = 298821 END-of-rancid-devel/distinfo echo x - rancid-devel/pkg-descr sed 's/^X//' >rancid-devel/pkg-descr << 'END-of-rancid-devel/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, HP procurve switches, Hitachi routers. 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-devel/pkg-descr echo x - rancid-devel/pkg-message sed 's/^X//' >rancid-devel/pkg-message << 'END-of-rancid-devel/pkg-message' XFor further configuration information please look at X%%INSTDIR%%/share/rancid/README. X XIf you are upgrading from the previous version of rancid look at X%%INSTDIR%%/share/rancid/UPGRADING. X XIf you would like to set up Rancid to be browseable from Web, Xyou need to install devel/cvsweb or devel/viewvc. X XFor rancid looking-glass copy the actual CGIs (located at X%%INSTDIR%%/libexec/rancid/{lg.cgi lgform.cgi}) to your cgi-bin. END-of-rancid-devel/pkg-message echo x - rancid-devel/pkg-plist sed 's/^X//' >rancid-devel/pkg-plist << 'END-of-rancid-devel/pkg-plist' X@exec mkdir -p %D/var/rancid X@exec chmod 775 %D/var/rancid X@dirrmtry var Xbin/rancid-cvs Xbin/rancid-run Xlibexec/rancid/alogin Xlibexec/rancid/arancid Xlibexec/rancid/agmrancid Xlibexec/rancid/blogin Xlibexec/rancid/brancid Xlibexec/rancid/cat5rancid Xlibexec/rancid/clogin Xlibexec/rancid/control_rancid Xlibexec/rancid/cssrancid Xlibexec/rancid/elogin Xlibexec/rancid/erancid Xlibexec/rancid/f10rancid Xlibexec/rancid/flogin Xlibexec/rancid/fnrancid Xlibexec/rancid/francid Xlibexec/rancid/hlogin Xlibexec/rancid/hpuifilter Xlibexec/rancid/hrancid Xlibexec/rancid/htlogin Xlibexec/rancid/htrancid Xlibexec/rancid/jerancid Xlibexec/rancid/jlogin Xlibexec/rancid/jrancid Xlibexec/rancid/lg.cgi Xlibexec/rancid/lgform.cgi Xlibexec/rancid/mrancid Xlibexec/rancid/nlogin Xlibexec/rancid/nrancid Xlibexec/rancid/nslogin Xlibexec/rancid/nsrancid Xlibexec/rancid/par Xlibexec/rancid/prancid Xlibexec/rancid/rancid Xlibexec/rancid/rancid-cvs Xlibexec/rancid/rancid-fe Xlibexec/rancid/rancid-run Xlibexec/rancid/rivlogin Xlibexec/rancid/rivrancid Xlibexec/rancid/rrancid Xlibexec/rancid/tntlogin Xlibexec/rancid/tntrancid Xlibexec/rancid/xrancid Xlibexec/rancid/zrancid Xetc/rancid/lg.conf.sample Xetc/rancid/rancid.conf.sample X%%DATADIR%%/CHANGES X%%DATADIR%%/COPYING X%%DATADIR%%/FAQ X%%DATADIR%%/README X%%DATADIR%%/README.lg X%%DATADIR%%/README.misc X%%DATADIR%%/UPGRADING X%%DATADIR%%/cisco-load.exp X%%DATADIR%%/cisco-reload.exp X%%DATADIR%%/cloginrc.sample X%%DATADIR%%/downreport X%%DATADIR%%/getipacctg X%%DATADIR%%/index.html X%%DATADIR%%/lg.conf.sample X%%DATADIR%%/lgnotes.html X%%DATADIR%%/rancid.conf.sample X%%DATADIR%%/rtrfilter X@dirrm %%DATADIR%% X@dirrm var/rancid X@dirrm etc/rancid X@dirrm libexec/rancid END-of-rancid-devel/pkg-plist exit --- rancid-2.3.2a6.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: