-
Notifications
You must be signed in to change notification settings - Fork 0
/
conman.rb
37 lines (32 loc) · 1.05 KB
/
conman.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class Conman < Formula
desc "Serial console management program supporting a large number of devices"
homepage "https://github.com/dun/conman"
url "https://github.com/dun/conman/archive/conman-0.3.1.tar.gz"
sha256 "cd47d3d9a72579b470dd73d85cd3fec606fa5659c728ff3c1c57e970f4da72a2"
license "GPL-3.0-only"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "freeipmi" => :optional
def install
system "./bootstrap"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
def caveats
<<~EOS
Before starting the conmand service, configure some consoles in #{etc}/conman.conf.
To use IPMI consoles, be sure to install with --with-freeipmi.
EOS
end
service do
run [opt_sbin/"conmand", "-F", "-c", etc/"conman.conf"]
keep_alive true
end
test do
system bin/"conman", "-V"
system sbin/"conmand", "-V"
end
end