homebrew-core/Formula/freeipmi.rb

30 lines
902 B
Ruby
Raw Normal View History

2014-05-18 17:07:55 +00:00
require "formula"
class Freeipmi < Formula
homepage "https://www.gnu.org/software/freeipmi/"
2014-08-16 16:58:12 +00:00
url "http://ftpmirror.gnu.org/freeipmi/freeipmi-1.4.5.tar.gz"
mirror "https://ftp.gnu.org/gnu/freeipmi/freeipmi-1.4.5.tar.gz"
sha1 "21f567f452de53545a8880eaf572cad567e5ad30"
2014-03-04 09:07:40 +00:00
bottle do
sha1 "104f68c5dd708695dcfda6d569705230c3c57437" => :mavericks
sha1 "eb04bd6b79908fca5ed724806d7be2a28431eefc" => :mountain_lion
sha1 "e0eb9b03feb21fdb6262c6feb35a45acf79fb022" => :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"
def install
2014-05-18 17:07:55 +00:00
system "./configure", "--prefix=#{prefix}"
# 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"
end
test do
system "#{sbin}/ipmi-fru", "--version"
end
end