- Add Develoment version of net-mgmt/rancid
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/
PR: 110607
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Repocopy by: marcus
2007-03-26 09:06:53 +00:00
|
|
|
# New ports collection makefile for: rancid-devel
|
|
|
|
# Date created: 20 March 2007 (based on net-mgmt/rancid)
|
|
|
|
# Whom: janos.mohacsi@bsd.hu
|
2002-06-23 08:17:32 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rancid
|
2007-10-07 13:01:47 +00:00
|
|
|
PORTVERSION= 2.3.2a7
|
2007-12-31 14:28:08 +00:00
|
|
|
PORTREVISION= 1
|
2004-02-23 04:42:13 +00:00
|
|
|
CATEGORIES= net-mgmt
|
2002-06-23 08:17:32 +00:00
|
|
|
MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/
|
- Add Develoment version of net-mgmt/rancid
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/
PR: 110607
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Repocopy by: marcus
2007-03-26 09:06:53 +00:00
|
|
|
PKGNAMESUFFIX= -devel
|
2002-06-23 08:17:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= janos.mohacsi@bsd.hu
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Really Awesome New Cisco confIg Differ
|
2002-06-23 08:17:32 +00:00
|
|
|
|
2007-12-31 14:28:08 +00:00
|
|
|
BUILD_DEPENDS= expect:${PORTSDIR}/lang/expect-devel
|
|
|
|
RUN_DEPENDS= expect:${PORTSDIR}/lang/expect-devel \
|
2002-06-23 08:17:32 +00:00
|
|
|
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
|
|
|
|
${SITE_PERL}/LockFile/Simple.pm:${PORTSDIR}/devel/p5-LockFile-Simple
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
2007-12-11 20:02:06 +00:00
|
|
|
SUB_FILES= pkg-message
|
2002-06-23 08:17:32 +00:00
|
|
|
USE_GMAKE= yes
|
2007-07-23 09:36:51 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= \
|
2004-05-28 17:13:55 +00:00
|
|
|
--localstatedir=${PREFIX}/var/${PORTNAME}/ \
|
|
|
|
--bindir=${PREFIX}/libexec/${PORTNAME}/ \
|
2007-07-23 09:36:51 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/${PORTNAME}/
|
2002-06-23 08:17:32 +00:00
|
|
|
|
2004-01-19 23:16:29 +00:00
|
|
|
MAN1= alogin.1 blogin.1 cat5rancid.1 clogin.1 control_rancid.1 \
|
|
|
|
cssrancid.1 elogin.1 erancid.1 f10rancid.1 flogin.1 fnrancid.1 \
|
|
|
|
francid.1 hlogin.1 hrancid.1 htlogin.1 htrancid.1 jerancid.1 \
|
|
|
|
jlogin.1 jrancid.1 lg_intro.1 mrancid.1 nlogin.1 nrancid.1 \
|
|
|
|
nslogin.1 nsrancid.1 par.1 prancid.1 rancid-cvs.1 rancid-run.1 \
|
|
|
|
rancid.1 rancid_intro.1 rivlogin.1 rivrancid.1 tntlogin.1 \
|
- Add Develoment version of net-mgmt/rancid
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/
PR: 110607
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Repocopy by: marcus
2007-03-26 09:06:53 +00:00
|
|
|
tntrancid.1 xrancid.1 zrancid.1 arancid.1 brancid.1 \
|
|
|
|
drancid.1
|
2002-06-23 08:17:32 +00:00
|
|
|
|
2004-01-19 23:16:29 +00:00
|
|
|
MAN5= lg.conf.5 cloginrc.5 rancid.conf.5 router.db.5
|
2002-06-23 08:17:32 +00:00
|
|
|
|
2004-01-19 23:16:29 +00:00
|
|
|
OLDCONFIG_FILE1= bin/env
|
|
|
|
OLDCONFIG_FILE2= util/lg/lg.conf
|
2004-05-28 17:13:55 +00:00
|
|
|
NEWERCONFIG_FILES1= etc/rancid.conf
|
|
|
|
NEWERCONFIG_FILES2= etc/lg.conf
|
|
|
|
NEWCONFIG_FILES= rancid.conf lg.conf
|
2004-01-19 23:16:29 +00:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@ ${ECHO} "Make sure your rancid repository is quit before upgrading; disable rancid cron jobs"
|
2002-09-10 03:06:30 +00:00
|
|
|
|
2002-06-23 08:17:32 +00:00
|
|
|
post-install:
|
2004-05-28 17:13:55 +00:00
|
|
|
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-cvs ${PREFIX}/bin
|
|
|
|
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-run ${PREFIX}/bin
|
2002-06-23 08:17:32 +00:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
@ ${ECHO}
|
|
|
|
.endif
|
2004-01-19 23:16:29 +00:00
|
|
|
.for file in ${NEWCONFIG_FILES}
|
2004-05-28 17:13:55 +00:00
|
|
|
@ if [ -f ${PREFIX}/etc/${PORTNAME}/${file} ] ; then \
|
2004-01-19 23:16:29 +00:00
|
|
|
${ECHO} "WARNING: *** new ${file} file is installed as ${PREFIX}/rancid/${file}.sample"; \
|
|
|
|
${ECHO} " : *** review ${file}.sample for new/deprecated switches or install in place ${file}"; \
|
2002-09-10 03:06:30 +00:00
|
|
|
fi
|
|
|
|
.endfor
|
2006-09-07 10:31:54 +00:00
|
|
|
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} ] ; then \
|
2004-05-28 17:13:55 +00:00
|
|
|
${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE1} has been replaced with "; \
|
|
|
|
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \
|
|
|
|
fi
|
|
|
|
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \
|
|
|
|
${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE2} has been replaced with "; \
|
|
|
|
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \
|
|
|
|
fi
|
|
|
|
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} -o \
|
|
|
|
-f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \
|
|
|
|
${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/var/${PORTNAME}/ "; \
|
|
|
|
${ECHO} " : *** Copy the repository if you want to keep the history "; \
|
|
|
|
fi
|
|
|
|
|
2004-01-19 23:16:29 +00:00
|
|
|
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} ] ; then \
|
|
|
|
${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE1} has been replaced with "; \
|
2004-05-28 17:13:55 +00:00
|
|
|
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \
|
2004-01-19 23:16:29 +00:00
|
|
|
fi
|
|
|
|
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \
|
|
|
|
${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE2} has been replaced with "; \
|
2004-05-28 17:13:55 +00:00
|
|
|
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \
|
2004-01-19 23:16:29 +00:00
|
|
|
fi
|
|
|
|
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} -o \
|
|
|
|
-f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \
|
|
|
|
${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/rancid/var "; \
|
|
|
|
${ECHO} " : *** Copy the repository if you want to keep the history "; \
|
|
|
|
fi
|
2002-06-23 08:17:32 +00:00
|
|
|
|
2003-10-15 22:54:23 +00:00
|
|
|
.include <bsd.port.mk>
|