rancid 3.2
Closes Homebrew/homebrew#39650. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
76942a13dc
commit
94a9a3bab5
1 changed files with 13 additions and 8 deletions
|
@ -1,9 +1,8 @@
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
class Rancid < Formula
|
class Rancid < Formula
|
||||||
homepage 'http://www.shrubbery.net/rancid/'
|
homepage "http://www.shrubbery.net/rancid/"
|
||||||
url 'ftp://ftp.shrubbery.net/pub/rancid/rancid-3.1.tar.gz'
|
url "ftp://ftp.shrubbery.net/pub/rancid/rancid-3.2.tar.gz"
|
||||||
sha1 '5e5bdf84634c958ad4cd413c3e31c348340ebd05'
|
mirror "https://mirrors.kernel.org/debian/pool/main/r/rancid/rancid_3.2.orig.tar.gz"
|
||||||
|
sha256 "e7da7242c1f072700b8d6077314be91c1fabe62528de2bdf91349b7094729e75"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha1 "837224d076cccb23bc1d3891021e3e4fb9dfd791" => :yosemite
|
sha1 "837224d076cccb23bc1d3891021e3e4fb9dfd791" => :yosemite
|
||||||
|
@ -13,11 +12,17 @@ class Rancid < Formula
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}", "--exec-prefix=#{prefix}", "--mandir=#{man}"
|
system "./configure", "--prefix=#{prefix}", "--exec-prefix=#{prefix}", "--mandir=#{man}"
|
||||||
system "make"
|
system "make", "install"
|
||||||
system "make install"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
system "#{bin}/rancid", "-t", "cisco", "localhost"
|
(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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue