homebrew-core/Formula/ipmitool.rb

25 lines
985 B
Ruby
Raw Normal View History

2009-12-13 05:58:00 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Ipmitool < Formula
2009-12-13 05:58:00 +00:00
homepage 'http://ipmitool.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.13/ipmitool-1.8.13.tar.bz2'
sha1 '22254a2b814c8cd323866a4dd835e390521c1dfa'
2009-12-13 05:58:00 +00:00
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'
2012-06-10 18:04:27 +00:00
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
2009-12-13 05:58:00 +00:00
system "make install"
end
end