2014-05-18 17:07:55 +00:00
|
|
|
require "formula"
|
2014-03-03 17:34:12 +00:00
|
|
|
|
|
|
|
class Freeipmi < Formula
|
2014-06-28 02:22:27 +00:00
|
|
|
homepage "https://www.gnu.org/software/freeipmi/"
|
|
|
|
url "http://ftpmirror.gnu.org/freeipmi/freeipmi-1.4.4.tar.gz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/freeipmi/freeipmi-1.4.4.tar.gz"
|
|
|
|
sha1 "343b574ca79038d22827c895ef0ca95ee38137ae"
|
2014-03-03 17:34:12 +00:00
|
|
|
|
2014-03-04 09:07:40 +00:00
|
|
|
bottle do
|
2014-05-18 17:16:48 +00:00
|
|
|
sha1 "1ac5427faba16ce4beafbc447c068d37cf9c3493" => :mavericks
|
|
|
|
sha1 "0503402e0b8ed546db82808852396afbbd29e37b" => :mountain_lion
|
|
|
|
sha1 "94f888c548f17d7a3e06397353a4e768f1b20b8a" => :lion
|
2014-03-04 09:07:40 +00:00
|
|
|
end
|
|
|
|
|
2014-05-18 17:07:55 +00:00
|
|
|
depends_on "argp-standalone"
|
|
|
|
depends_on "libgcrypt"
|
2014-03-03 17:34:12 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-18 17:07:55 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2014-03-03 17:34:12 +00:00
|
|
|
# This is a big hammer to disable building the man pages
|
|
|
|
# It breaks under homebrew's build system and I'm not sure why
|
|
|
|
inreplace "man/Makefile", "install: install-am", "install:"
|
2014-05-18 17:07:55 +00:00
|
|
|
system "make", "install"
|
2014-03-03 17:34:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{sbin}/ipmi-fru", "--version"
|
|
|
|
end
|
|
|
|
end
|