2009-12-15 17:20:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Smartmontools < Formula
|
2009-12-15 17:20:50 +00:00
|
|
|
homepage 'http://sourceforge.net/apps/trac/smartmontools/'
|
2012-11-03 18:09:57 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/smartmontools/smartmontools/6.0/smartmontools-6.0.tar.gz'
|
|
|
|
sha1 '752a6c087c09b203c229da3b1506a8c40a5158ad'
|
2009-12-15 17:20:50 +00:00
|
|
|
|
|
|
|
def install
|
2012-07-12 10:29:51 +00:00
|
|
|
(var/'run').mkpath
|
|
|
|
(var/'lib/smartmontools').mkpath
|
2011-10-10 22:40:25 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--localstatedir=#{var}",
|
|
|
|
"--enable-drivedb",
|
|
|
|
"--enable-savestates",
|
|
|
|
"--enable-attributelog"
|
2009-12-15 17:20:50 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|