95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
22 lines
900 B
Ruby
22 lines
900 B
Ruby
class Ipmitool < Formula
|
|
desc "Utility for IPMI control with kernel driver or LAN interface"
|
|
homepage "http://ipmitool.sourceforge.net/"
|
|
url "https://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.15/ipmitool-1.8.15.tar.bz2"
|
|
sha256 "4acd2df5f8740fef5c032cebee0113ec4d3bbef04a6f4dbfaf7fcc7f3eb08c40"
|
|
|
|
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
|