34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
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.6/conserver-8.2.6.tar.gz"
|
|
sha256 "33b976a909c6bce8a1290810e26e92bfa16c39bca19e1f8e06d5d768ae940734"
|
|
license "BSD-3-Clause"
|
|
|
|
livecheck do
|
|
url "https://github.com/conserver/conserver/releases/latest"
|
|
regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "eaa811a62521fd8f6f33af9837d03f42dedb218021d64390b8e9ece105e928c1" => :catalina
|
|
sha256 "03290cfe6fffbbb28d16b526a9667bc321cf048f32c947fbc9c20787bd67ed7b" => :mojave
|
|
sha256 "71080dd0b8f5cf10c4c2e9aa935d48cf6f458f7bd926c59a7087108129a83ac7" => :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
|