# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description Really Awesome New Cisco confIg Differ
long_description Rancid maintains a CVS/SVN/git repository of router and \
device config files. It emails you when changes \
occur and tells you what commands were changed.
homepage http://www.shrubbery.net/rancid
master_sites ftp://ftp.shrubbery.net/pub/rancid/
checksums rmd160 dda06111afbd28fc2ee06780fb1ac451f0d62732 \
sha256 9c6befff78d49d8d0757a2b57b6cfdfef55cadcbc1fa6fbe1ab9424335d51f7b \
depends_lib-append port:perl${perl5.major} \
port:p${perl5.major}-lockfile-simple \
path:lib/libssl.dylib:openssl
patchfiles patch-etc-Makefile.am.diff \
patch-bin-Makefile.in.diff
# Set path for lg.conf.sample so Looking Glass will work
reinplace "s|@prefix@/bin|@prefix@/libexec/rancid:@prefix@/bin|g" \
${worksrcpath}/etc/lg.conf.sample.in
configure.env PERLV_PATH=${perl5.bin}
configure.args --localstatedir=${prefix}/var/${name} \
--bindir=${prefix}/libexec/${name} \
--sysconfdir=${prefix}/etc/${name} \
--mandir=\\\${prefix}/share/man
system "ln -s -f ${prefix}/libexec/${name}/rancid-cvs ${destroot}${prefix}/bin/rancid-cvs"
system "ln -s -f ${prefix}/libexec/${name}/rancid-run ${destroot}${prefix}/bin/rancid-run"
#### To complete the RANCID installation ####
Copy the sample .cloginrc file to the RANCID user's home directory,\
make sure it isn't world readable, and edit it according to your needs.
cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc
sudo chmod 640 ~/.cloginrc
See the README file in ${prefix}/share/rancid for more information.
To use the optional looking glass service to run status check commands\