29 lines
926 B
Ruby
29 lines
926 B
Ruby
class Conserver < Formula
|
|
desc "Allows multiple users to watch a serial console at the same time"
|
|
homepage "https://www.conserver.com/"
|
|
url "https://github.com/conserver/conserver/releases/download/v8.2.5/conserver-8.2.5.tar.gz"
|
|
sha256 "7db192f304126d7e5c15421c4c83cd5c08039f2f2b3c61b2998e71881ae47eea"
|
|
license "BSD-3-Clause"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "ce9d095a9e435480fe4a8eb2e73c0732fe0d7eda89aafc98e0599453eaa8f626" => :catalina
|
|
sha256 "70283393748aaf6397ea4b0bcdda5f7192597da2093e8fe0c21fcbc89cd5e900" => :mojave
|
|
sha256 "e5de5fdc13fd75c8ab4cb11f0a86408b63b2683ac9aacf573d7df0500dc38210" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
console = fork do
|
|
exec bin/"console", "-n", "-p", "8000", "test"
|
|
end
|
|
sleep 1
|
|
Process.kill("TERM", console)
|
|
end
|
|
end
|