homebrew-core/Formula/ipmitool.rb
Brett Koonce 82e07a6f47 ipmitool: track upstream ticket
Closes Homebrew/homebrew#22937.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-09-30 10:25:36 -05:00

24 lines
984 B
Ruby

require 'formula'
class Ipmitool < Formula
homepage 'http://ipmitool.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.13/ipmitool-1.8.13.tar.bz2'
sha1 '22254a2b814c8cd323866a4dd835e390521c1dfa'
def install
# tracking upstream: http://sourceforge.net/p/ipmitool/feature-requests/47/
# fix build errors w/ clang
inreplace 'include/ipmitool/ipmi_user.h', 'HAVE_PRAGMA_PACK', 'DISABLE_PRAGMA_PACK'
# undefined non-posix symbols
inreplace 'src/plugins/serial/serial_basic.c', 'IUCLC', '0'
inreplace 'src/plugins/serial/serial_basic.c', 'TCFLSH', '0'
inreplace 'src/plugins/serial/serial_terminal.c', 'IUCLC', '0'
inreplace 'src/plugins/serial/serial_terminal.c', 'TCFLSH', '0'
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
end