2011-10-19 04:14:02 +00:00
|
|
|
class Conserver < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Allows multiple users to watch a serial console at the same time"
|
2015-04-18 19:14:24 +00:00
|
|
|
homepage "http://conserver.com"
|
2015-06-15 11:43:05 +00:00
|
|
|
url "http://conserver.com/conserver-8.2.1.tar.gz"
|
|
|
|
sha256 "251ae01997e8f3ee75106a5b84ec6f2a8eb5ff2f8092438eba34384a615153d0"
|
2011-10-19 04:14:02 +00:00
|
|
|
|
2015-04-19 19:16:00 +00:00
|
|
|
bottle do
|
2015-06-15 14:41:26 +00:00
|
|
|
sha256 "0afc8a0539f05c8226c0d75775558e98f42e597e2e9755988164dc5f2e0f3cf7" => :yosemite
|
|
|
|
sha256 "40af1ae864c47df564f22760f96969c3a6e9575610d9cd1d3348b44d6eef5a9e" => :mavericks
|
|
|
|
sha256 "88887688a6de1d1cb9ed36899477e16ef233b80392854220291fa1a5499ea833" => :mountain_lion
|
2015-04-19 19:16:00 +00:00
|
|
|
end
|
|
|
|
|
2011-10-19 04:14:02 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
2015-04-18 19:14:24 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
console = fork do
|
2015-07-21 06:14:42 +00:00
|
|
|
exec bin/"console", "-n", "-p", "8000", "test"
|
2015-04-18 19:14:24 +00:00
|
|
|
end
|
|
|
|
sleep 1
|
2015-08-03 12:55:31 +00:00
|
|
|
Process.kill("TERM", console)
|
2011-10-19 04:14:02 +00:00
|
|
|
end
|
|
|
|
end
|