diff options
| author | Raymond Tau | 2012-09-22 17:59:08 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-31 09:20:11 -0700 |
| commit | d3e4b08b93f4d59d4c1ea87788d61eb4b0aceb1e (patch) | |
| tree | 65709cc5aa86fffcef392e284ba5df83e8351073 /Library/Formula | |
| parent | a5158fc50fba012ab23d3bba579f8a523e60bcb4 (diff) | |
| download | homebrew-d3e4b08b93f4d59d4c1ea87788d61eb4b0aceb1e.tar.bz2 | |
ipmiutil 2.8.5
Closes #15049.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ipmiutil.rb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/ipmiutil.rb b/Library/Formula/ipmiutil.rb new file mode 100644 index 000000000..fb7844df6 --- /dev/null +++ b/Library/Formula/ipmiutil.rb @@ -0,0 +1,46 @@ +require 'formula' + +class Ipmiutil < Formula + homepage 'http://ipmiutil.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/ipmiutil/ipmiutil-2.8.5.tar.gz' + sha1 'b79dfddf09d685fb92fba08dd8d1fb8f84adcea9' + + # Make ipmiutil treat Darwin as BSD + def patches + DATA + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--enable-sha256", + "--enable-gpl" + + system "make", "TMPDIR=#{ENV['TMPDIR']}" + # DESTDIR is needed to make everything go where we want it. + system "make", "prefix=/", + "DESTDIR=#{prefix}", + "varto=#{var}/lib/#{name}", + "initto=#{etc}/init.d", + "sysdto=#{prefix}/#{name}", + "install" + end + + def test + system "#{bin}/ipmiutil delloem help" + end +end + +__END__ +diff -u ./configure.bak ./configure +--- ./configure.bak 2012-09-18 23:19:11.000000000 +0800 ++++ ./configure 2012-09-18 23:21:04.000000000 +0800 +@@ -20983,7 +20983,7 @@ + OS_CFLAGS="-DLINUX $MD2_CFLAGS $cfwarn" + else + # usually "x$sysname" = "xFreeBSD", but allow NetBSD +- echo $sysname | grep BSD >/dev/null 2>&1 ++ echo $sysname | grep 'BSD\|Darwin' >/dev/null 2>&1 + if test $? -eq 0; then + os=bsd + OS_CFLAGS="-DBSD" |
