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/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.13/ipmitool-1.8.13.tar.bz2'
|
2013-09-28 03:20:43 +00:00
|
|
|
sha1 '22254a2b814c8cd323866a4dd835e390521c1dfa'
|
2013-02-01 16:02:12 +00:00
|
|
|
|
2009-12-13 05:58:00 +00:00
|
|
|
def install
|
2013-09-30 14:49:47 +00:00
|
|
|
# tracking upstream: http://sourceforge.net/p/ipmitool/feature-requests/47/
|
2013-09-28 03:20:43 +00:00
|
|
|
# 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
|