homebrew-core/Formula/ipmitool.rb

35 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 'http://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.12/ipmitool-1.8.12.tar.bz2'
sha1 'b895564db1196e891b60d2ab4f6d0bf5499c3453'
2009-12-13 05:58:00 +00:00
# Project uses -Wno-unused-result and -Wno-packed-bitfield-compat, which were
# introduced in gcc-4.4 and don't work on Apple gcc or llvm-gcc
def patches; DATA; end
2009-12-13 05:58:00 +00:00
def install
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
__END__
diff --git a/configure b/configure
index bdf6dae..f5b8e8d 100755
--- a/configure
+++ b/configure
@@ -5030,7 +5030,7 @@ fi
done
-CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type -Wno-unused-result -Wno-packed-bitfield-compat"
+CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type"
case `pwd` in
*\ * | *\ *)