homebrew-core/Formula/smartmontools.rb
2013-03-25 17:18:54 -05:00

21 lines
731 B
Ruby

require 'formula'
class Smartmontools < Formula
homepage 'http://sourceforge.net/apps/trac/smartmontools/'
url 'http://downloads.sourceforge.net/project/smartmontools/smartmontools/6.1/smartmontools-6.1.tar.gz'
sha1 '1511f2a09e4745fed50d15654c7d585fec53929e'
def install
(var/'run').mkpath
(var/'lib/smartmontools').mkpath
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}",
"--enable-drivedb",
"--enable-savestates",
"--enable-attributelog"
system "make install"
end
end