homebrew-core/Formula/ipmitool.rb
Gaurav Jain 88342b33c6 ipmitool 1.8.15
- 1.8.15 resolves annoying ProcessSOLUserInput messages when using
  Serial-Over-Lan
- Fixed compilation errors caused by IUCLC & TCFLSH replacements
- Replace s6_addr16 with s6_addr since s6_addr16 is not available on Mac
- Add openssl dependency

Closes Homebrew/homebrew#36198.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2015-04-25 10:21:30 -07:00

23 lines
820 B
Ruby

require 'formula'
class Ipmitool < Formula
homepage 'http://ipmitool.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.15/ipmitool-1.8.15.tar.bz2'
sha1 '2c9c5d7c5a285586df508ad933577f275684353a'
depends_on "openssl"
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'
# s6_addr16 is not available in Mac OS X
inreplace 'src/plugins/ipmi_intf.c', 's6_addr16', 's6_addr'
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
end