23 lines
1,001 B
Ruby
23 lines
1,001 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"
|
|
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/i/ipmitool/ipmitool_1.8.15.orig.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
|