2009-12-15 17:20:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Smartmontools < Formula
|
2011-06-27 02:11:40 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/smartmontools/smartmontools/5.41/smartmontools-5.41.tar.gz'
|
2009-12-15 17:20:50 +00:00
|
|
|
homepage 'http://sourceforge.net/apps/trac/smartmontools/'
|
2011-06-27 02:11:40 +00:00
|
|
|
md5 '4577886bea79d4ff12bd9a7d323ce692'
|
2009-12-15 17:20:50 +00:00
|
|
|
|
|
|
|
def install
|
2011-10-10 22:40:25 +00:00
|
|
|
(var+'run').mkpath
|
|
|
|
(var+'lib/smartmontools').mkpath
|
|
|
|
|
|
|
|
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
|