41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
class Powerman < Formula
|
|
desc "Control (remotely and in parallel) switched power distribution units"
|
|
homepage "https://code.google.com/p/powerman/"
|
|
url "https://github.com/chaos/powerman/releases/download/2.3.26/powerman-2.3.26.tar.gz"
|
|
sha256 "19e213127f468b835165b8e2082ff2dfff62d6832f3332160f2c6ba8b2d286ad"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 "aaa93f0be2fa1d4092c2d06cec0b7fbcc00d4817ff2d6dc4601301a8cb3917fc" => :catalina
|
|
sha256 "a2d26575a0a9816dc1f8b0b212531c8ea455a6c8322a42d5fb2630e3a2f85b1b" => :mojave
|
|
sha256 "9dd898b2222ba55a6c2aeb4e4414d6eb68d9c9e19794da533b4d1bd6970e6469" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/chaos/powerman.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "curl"
|
|
|
|
def install
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--localstatedir=#{var}",
|
|
"--with-httppower",
|
|
"--with-ncurses",
|
|
"--without-genders",
|
|
"--without-snmppower",
|
|
"--without-tcp-wrappers"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{sbin}/powermand", "-h"
|
|
end
|
|
end
|