homebrew-core/Formula/conserver.rb
2015-06-05 14:47:57 +01:00

26 lines
826 B
Ruby

class Conserver < Formula
desc "Allows multiple users to watch a serial console at the same time"
homepage "http://conserver.com"
url "http://conserver.com/conserver-8.2.0.tar.gz"
sha256 "a05beb7b66c0228ece62786c3cfe4b0048c5d508e072fb3631c2bf460cab904f"
bottle do
sha256 "124e2eab8cea657ee17fea2ed6c9bd5592f172fa401b72f63f37299989a36b22" => :yosemite
sha256 "faa174dbcf430a5410654ce87e2cc69bd0ee4382f253dff38ff5ee4f992c259d" => :mavericks
sha256 "81aee0e591a8c878a55cf173c0d9b70e3539bb7cebbd81466ffabd270ee07ce2" => :mountain_lion
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
console = fork do
system bin/"console", "-n", "-p", "8000", "test"
end
sleep 1
Process.kill("TERM",console)
end
end