homebrew-core/Formula/smartmontools.rb

22 lines
731 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Smartmontools < Formula
homepage 'http://sourceforge.net/apps/trac/smartmontools/'
2013-03-25 22:18:36 +00:00
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