homebrew-core/Formula/rancid.rb
2017-01-12 14:03:48 +01:00

32 lines
1.2 KiB
Ruby

class Rancid < Formula
desc "Really Awesome New Cisco confIg Differ"
homepage "http://www.shrubbery.net/rancid/"
url "ftp://ftp.shrubbery.net/pub/rancid/rancid-3.6.2.tar.gz"
mirror "https://mirrors.kernel.org/debian/pool/main/r/rancid/rancid_3.6.2.orig.tar.gz"
sha256 "23751829c9bacdd07f90512271265c0cac279ca2f36ac86be815dd21831c253d"
bottle do
cellar :any_skip_relocation
sha256 "a60d7c30da581df22d0950a56a040ff4b88385bdf411d0d5a215791229e830aa" => :sierra
sha256 "f889063d5ec93094647aad6ef6f0958dc730ce23ec72be6826ac121471bb75d7" => :el_capitan
sha256 "07fb9fed57cbb0c6ee07d9bf12796ceb4588a6990d68648c854047f815693b22" => :yosemite
end
conflicts_with "par", :because => "both install `par` binaries"
def install
system "./configure", "--prefix=#{prefix}", "--exec-prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
end
test do
(testpath/"rancid.conf").write <<-EOS.undent
BASEDIR=#{testpath}; export BASEDIR
CVSROOT=$BASEDIR/CVS; export CVSROOT
LOGDIR=$BASEDIR/logs; export LOGDIR
RCSSYS=git; export RCSSYS
LIST_OF_GROUPS="backbone aggregation switches"
EOS
system "#{bin}/rancid-cvs", "-f", testpath/"rancid.conf"
end
end