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/'
|
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'
|
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
|