homebrew-core/Formula/smartmontools.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

27 lines
1.1 KiB
Ruby

class Smartmontools < Formula
desc "SMART hard drive monitoring"
homepage "https://www.smartmontools.org/"
url "https://downloads.sourceforge.net/project/smartmontools/smartmontools/6.4/smartmontools-6.4.tar.gz"
sha256 "eab75600c1eda9c34b13097db71138ab376f3dad8a6a4667fb4d1d081feb7a85"
bottle do
sha256 "2a653de9d0f41210a9b139f1e70ae561a72fa87727704f944f32dec6356a0fee" => :yosemite
sha256 "1b74b913314ede83f0597bf6df2b2cb763a1fd03490b07a529892cd36c2720c6" => :mavericks
sha256 "2b6dadf59bf77a6e711c547405d682b9f0e8af37329fe01d9abdefb3ce41fd7e" => :mountain_lion
end
def install
(var/"run").mkpath
(var/"lib/smartmontools").mkpath
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sbindir=#{bin}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}",
"--enable-drivedb",
"--enable-savestates",
"--enable-attributelog"
system "make", "install"
end
end