homebrew-core/Formula/babeld.rb

29 lines
1 KiB
Ruby
Raw Normal View History

class Babeld < Formula
desc "Loop-avoiding distance-vector routing protocol"
2016-04-17 19:38:12 +00:00
homepage "https://www.irif.univ-paris-diderot.fr/~jch/software/babel/"
url "https://www.irif.univ-paris-diderot.fr/~jch/software/files/babeld-1.7.1.tar.gz"
sha256 "2c955e7d4ad971da1e860e5cedbaf1dd79903468ff6488b3f67102b2a8d087b6"
head "https://github.com/jech/babeld.git"
2015-01-15 09:48:40 +00:00
bottle do
2016-02-23 14:14:56 +00:00
cellar :any_skip_relocation
2016-03-17 16:44:40 +00:00
sha256 "6f563a08d747b49704c8e5199d47a49cec054c47223588bf93813a6308e8a91d" => :el_capitan
sha256 "2e27e11276bff50b27a19dd876ac0a1ec436a0390c37477ce9dd1c6b28b89dcc" => :yosemite
sha256 "60da868795bffd2c11a3aa9b194fc6f5a27e8e09539b67908db9e71cc933b9b6" => :mavericks
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