homebrew-core/Formula/babeld.rb

29 lines
1 KiB
Ruby
Raw Normal View History

class Babeld < Formula
desc "Loop-avoiding distance-vector routing protocol"
homepage "http://www.pps.univ-paris-diderot.fr/~jch/software/babel/"
url "http://www.pps.univ-paris-diderot.fr/~jch/software/files/babeld-1.6.2.tar.gz"
sha256 "09de0d99684e95466f07be1eb22fa639c8820d8aaaa7a8db2a18a354cb3d0fb7"
head "https://github.com/jech/babeld.git"
2015-01-15 09:48:40 +00:00
bottle do
cellar :any
2015-08-07 19:39:41 +00:00
sha256 "980282deb71194aa092f3e0b706bc4305a8e9224943e0adeeadb4d06278b6af8" => :yosemite
sha256 "b69f241357333d7cfb90d419cc5305c08d92a87110971e8ad164716a92ad3129" => :mavericks
sha256 "e4baaabd8690aa60b4874eb606ce62f5de0d7c378e8c0eccc409724b898fb212" => :mountain_lion
2015-01-15 09:48:40 +00:00
end
def install
system "make", "LDLIBS=''"
system "make", "install", "PREFIX=#{prefix}"
end
test do
shell_output("#{bin}/babeld -I #{testpath}/test.pid -L #{testpath}/test.log", 1)
expected = <<-EOS.undent
Couldn't tweak forwarding knob.: Operation not permitted
kernel_setup failed.
EOS
assert_equal expected, (testpath/"test.log").read
end
end