diff options
author | pettai <pettai@pkgsrc.org> | 2010-03-12 23:39:16 +0000 |
---|---|---|
committer | pettai <pettai@pkgsrc.org> | 2010-03-12 23:39:16 +0000 |
commit | 94b66c95955a9f479f9995969d3e4126b95fd660 (patch) | |
tree | bc54dd41b33c20cf4ecd54129cb33fee2b0d6725 /net/rancid | |
parent | 63ba5a974c983c517beb4ced2c2516725fec06ea (diff) | |
download | pkgsrc-94b66c95955a9f479f9995969d3e4126b95fd660.tar.gz |
RANCID monitors a router's (or more generally a device's) configuration,
including software and hardware (cards, serial numbers, etc) and uses CVS
(Concurrent Version System) or Subversion to maintain history of changes.
CVE-2008-4979 (getipacctg) is still not fixed by upstream, however,
that script is not part of the core fuction (rather a contrib)
and probably not going to be used by the normal users of this package.
Diffstat (limited to 'net/rancid')
-rw-r--r-- | net/rancid/DESCR | 3 | ||||
-rw-r--r-- | net/rancid/MESSAGE | 19 | ||||
-rw-r--r-- | net/rancid/Makefile | 67 | ||||
-rw-r--r-- | net/rancid/PLIST | 125 | ||||
-rw-r--r-- | net/rancid/distinfo | 6 | ||||
-rw-r--r-- | net/rancid/patches/patch-aa | 13 |
6 files changed, 233 insertions, 0 deletions
diff --git a/net/rancid/DESCR b/net/rancid/DESCR new file mode 100644 index 00000000000..0f1501864a3 --- /dev/null +++ b/net/rancid/DESCR @@ -0,0 +1,3 @@ +RANCID monitors a router's (or more generally a device's) configuration, +including software and hardware (cards, serial numbers, etc) and uses CVS +(Concurrent Version System) or Subversion to maintain history of changes. diff --git a/net/rancid/MESSAGE b/net/rancid/MESSAGE new file mode 100644 index 00000000000..fdd6f6a201e --- /dev/null +++ b/net/rancid/MESSAGE @@ -0,0 +1,19 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $ + +rancid is now installed. + +To get rancid up and running asap, you have to complete these basic steps: + +- Configure LIST_OF_GROUPS in ${PREFIX}/etc/rancid/rancid.conf. +- Configure the LIST_OF_GROUPS users in your mail aliases file. +- As superuser, run the command "su - ${RC_USER} -c rancid-cvs". +- Add the following line to ${RC_USER}'s crontab. + +# Run config differ hourly +1 * * * * ${PREFIX}/bin/rancid-run + +Please read the included README (${PREFIX}/share/doc/rancid/README) file, +for more information about configuring and starting rancid. + +=========================================================================== diff --git a/net/rancid/Makefile b/net/rancid/Makefile new file mode 100644 index 00000000000..79c3903b223 --- /dev/null +++ b/net/rancid/Makefile @@ -0,0 +1,67 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $ +# + +DISTNAME= rancid-2.3.2 +CATEGORIES= net +MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/ + +MAINTAINER= pettai@NetBSD.org +HOMEPAGE= http://www.shrubbery.net/rancid/ +COMMENT= Really Awesome New Cisco confIg Differ +LICENSE= original-bsd + +DEPENDS+= tcl-expect>=5.4:../../lang/tcl-expect + +PKG_DESTDIR_SUPPORT= user-destdir + +BUILD_DEFS+= VARBASE + +GNU_CONFIGURE= yes +USE_TOOLS+= perl:run + +CONFIGURE_ARGS+= --disable-conf-install +CONFIGURE_ARGS+= --localstatedir=${VARBASE}/rancid +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc +CONFIGURE_ENV+= PERLV_PATH=${PERL5:Q} +CONFIGURE_ENV+= DIRNAME=${DIRNAME} +CONFIGURE_ENV+= ID=${ID} + +RC_USER?= rancid +RC_GROUP?= rancid + +PKG_GROUPS= ${RC_GROUP} +PKG_USERS= ${RC_USER}:${RC_GROUP} +PKG_GECOS.${RC_USER}= Really Awesome New Cisco confIg Differ +PKG_HOME.${RC_USER}= ${VARBASE}/rancid +PKG_SHELL.${RC_USER}= ${SH} +PKG_USERS_VARS+= RC_USER +PKG_GROUPS_VARS+= RC_GROUP + +EGDIR= ${PREFIX}/share/examples/rancid +PKG_SYSCONFSUBDIR?= rancid +CONF_FILES_PERMS= ${EGDIR}/lg.conf.sample ${PKG_SYSCONFDIR}/lg.conf \ + ${ROOT_USER} ${ROOT_GROUP} 0644 +CONF_FILES_PERMS+= ${EGDIR}/rancid.conf.sample ${PKG_SYSCONFDIR}/rancid.conf \ + ${ROOT_USER} ${ROOT_GROUP} 0644 + +MESSAGE_SUBST+= PREFIX=${PREFIX} +MESSAGE_SUBST+= RC_USER=${RC_USER} + +SUBST_CLASSES+= paths +SUBST_FILES.paths= ${WRKSRC}/etc/lg.conf.sample.in +SUBST_FILES.paths+= ${WRKSRC}/etc/rancid.conf.sample.in +SUBST_STAGE.paths= post-extract +SUBST_SED.paths= -e 's,@ENV_PATH@,${PREFIX}/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin,' + +OWN_DIRS_PERMS+= ${VARBASE}/rancid ${RC_USER} ${RC_GROUP} 0755 + +INSTALLATION_DIRS= share/examples/rancid +INSTALLATION_DIRS+= share/doc/rancid +INSTALLATION_DIRS+= ${VARBASE}/rancid + +post-install: + ${INSTALL_DATA} ${WRKSRC}/etc/lg.conf.sample ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/etc/rancid.conf.sample ${DESTDIR}${EGDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/net/rancid/PLIST b/net/rancid/PLIST new file mode 100644 index 00000000000..3a3e30cd19c --- /dev/null +++ b/net/rancid/PLIST @@ -0,0 +1,125 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $ +bin/agmrancid +bin/alogin +bin/arancid +bin/avologin +bin/avorancid +bin/blogin +bin/brancid +bin/cat5rancid +bin/clogin +bin/control_rancid +bin/cssrancid +bin/elogin +bin/erancid +bin/f10rancid +bin/f5rancid +bin/flogin +bin/fnrancid +bin/francid +bin/hlogin +bin/hpuifilter +bin/hrancid +bin/htlogin +bin/htrancid +bin/jerancid +bin/jlogin +bin/jrancid +bin/lg.cgi +bin/lgform.cgi +bin/mrancid +bin/mrvlogin +bin/mrvrancid +bin/nlogin +bin/nrancid +bin/nslogin +bin/nsrancid +bin/nxrancid +bin/par +bin/prancid +bin/rancid +bin/rancid-cvs +bin/rancid-fe +bin/rancid-run +bin/rivlogin +bin/rivrancid +bin/rrancid +bin/srancid +bin/tlogin +bin/tntlogin +bin/tntrancid +bin/trancid +bin/xrancid +bin/zrancid +man/man1/agmrancid.1 +man/man1/alogin.1 +man/man1/arancid.1 +man/man1/avologin.1 +man/man1/avorancid.1 +man/man1/blogin.1 +man/man1/brancid.1 +man/man1/cat5rancid.1 +man/man1/clogin.1 +man/man1/control_rancid.1 +man/man1/cssrancid.1 +man/man1/elogin.1 +man/man1/erancid.1 +man/man1/f10rancid.1 +man/man1/f5rancid.1 +man/man1/flogin.1 +man/man1/fnrancid.1 +man/man1/francid.1 +man/man1/hlogin.1 +man/man1/hrancid.1 +man/man1/htlogin.1 +man/man1/htrancid.1 +man/man1/jerancid.1 +man/man1/jlogin.1 +man/man1/jrancid.1 +man/man1/lg_intro.1 +man/man1/mrancid.1 +man/man1/nlogin.1 +man/man1/nrancid.1 +man/man1/nslogin.1 +man/man1/nsrancid.1 +man/man1/nxrancid.1 +man/man1/par.1 +man/man1/prancid.1 +man/man1/rancid-cvs.1 +man/man1/rancid-run.1 +man/man1/rancid.1 +man/man1/rancid_intro.1 +man/man1/rivlogin.1 +man/man1/rivrancid.1 +man/man1/rrancid.1 +man/man1/srancid.1 +man/man1/tlogin.1 +man/man1/tntlogin.1 +man/man1/tntrancid.1 +man/man1/trancid.1 +man/man1/xrancid.1 +man/man1/zrancid.1 +man/man5/cloginrc.5 +man/man5/lg.conf.5 +man/man5/rancid.conf.5 +man/man5/router.db.5 +share/doc/rancid/CHANGES +share/doc/rancid/COPYING +share/doc/rancid/FAQ +share/doc/rancid/README +share/doc/rancid/README.lg +share/doc/rancid/README.misc +share/doc/rancid/UPGRADING +share/doc/rancid/cisco-load.exp +share/doc/rancid/cisco-reload.exp +share/doc/rancid/cloginrc.sample +share/doc/rancid/downreport +share/doc/rancid/getipacctg +share/doc/rancid/index.html +share/doc/rancid/lg.conf.sample +share/doc/rancid/lgnotes.html +share/doc/rancid/rancid.conf.sample +share/doc/rancid/rtrfilter +share/examples/rancid/lg.conf.sample +share/examples/rancid/rancid.conf.sample +@pkgdir etc/rancid diff --git a/net/rancid/distinfo b/net/rancid/distinfo new file mode 100644 index 00000000000..e43f1436b9c --- /dev/null +++ b/net/rancid/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $ + +SHA1 (rancid-2.3.2.tar.gz) = ac4bef83d7eb566457f6a0176160127ae3b7dc7c +RMD160 (rancid-2.3.2.tar.gz) = 9cdb9e248d1ffaf5a0ea9be869353b3728700f7f +Size (rancid-2.3.2.tar.gz) = 341919 bytes +SHA1 (patch-aa) = effca21e1e9ecb39f0c31a8555ac7cca10046a46 diff --git a/net/rancid/patches/patch-aa b/net/rancid/patches/patch-aa new file mode 100644 index 00000000000..6f2194d35b8 --- /dev/null +++ b/net/rancid/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/03/12 23:39:16 pettai Exp $ + +--- configure.orig 2009-12-13 00:37:15.000000000 +0100 ++++ configure 2009-12-13 00:37:29.000000000 +0100 +@@ -6212,7 +6212,7 @@ + # since organized religion; see if -U 4 works. + ${_diff}/diff -U 4 /dev/null /dev/null > /dev/null 2>&1 + if test $? -ne 0; then +- if test "${ADIFF}" == "" ; then ++ if test "${ADIFF}" = "" ; then + ADIFF="${_diff}/diff" + ADIFF_CMD="diff -c -4" + fi |