<commit_before>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"
<commit_msg>ipmiutil 2.8.6<commit_after>require 'formula'

class Ipmiutil < Formula
  homepage 'http://ipmiutil.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/ipmiutil/ipmiutil-2.8.6.tar.gz'
  sha1 'fecd5eeb0cc695a30d2669992b1f9986ff4b8b57'

  # 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"

{'fraction_non_alphanumeric': 0.15735137059451762, 'fraction_numerical': 0.0715557137771449, 'mean_word_length': 2.178733031674208, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2533478', 'n_tokens_mistral': 1133, 'n_tokens_neox': 981, 'n_words': 211}