2011-03-10 05:11:03 +00:00
|
|
|
class Fio < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "I/O benchmark and stress test"
|
2014-07-19 14:41:55 +00:00
|
|
|
homepage "http://freecode.com/projects/fio"
|
2015-05-07 20:02:36 +00:00
|
|
|
url "http://brick.kernel.dk/snaps/fio-2.2.7.tar.bz2"
|
|
|
|
sha256 "6e3cd5bda0747e61cbfd42c7b3cfe044ea8981d8d3a486f0a2f2fafdb954296f"
|
|
|
|
head "git://git.kernel.dk/fio.git"
|
2010-02-26 16:11:12 +00:00
|
|
|
|
2015-02-16 11:31:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-05-07 20:35:21 +00:00
|
|
|
sha256 "9627e56c1f5b74afc9af0e2c636f7001f678fb3f891c65a7460380445f62e8d0" => :yosemite
|
|
|
|
sha256 "366b0622ac63192a2482e77a04840d2e795223a5bf0d0d2e6fbab46ac6d6fb39" => :mavericks
|
|
|
|
sha256 "12c9075cadd1fb68ce4ff23560da9d1a1aa0f357602df9a0973d5edfd3a041a0" => :mountain_lion
|
2015-02-16 11:31:03 +00:00
|
|
|
end
|
|
|
|
|
2010-02-26 16:11:12 +00:00
|
|
|
def install
|
2013-04-24 07:41:24 +00:00
|
|
|
system "./configure"
|
|
|
|
# fio's CFLAGS passes vital stuff around, and crushing it will break the build
|
2012-02-10 05:26:32 +00:00
|
|
|
system "make", "prefix=#{prefix}",
|
|
|
|
"mandir=#{man}",
|
2014-07-19 14:41:55 +00:00
|
|
|
"sharedir=#{share}",
|
2012-02-10 05:26:32 +00:00
|
|
|
"CC=#{ENV.cc}",
|
2013-04-24 07:41:24 +00:00
|
|
|
"V=true", # get normal verbose output from fio's makefile
|
2012-02-10 05:26:32 +00:00
|
|
|
"install"
|
2010-02-26 16:11:12 +00:00
|
|
|
end
|
2015-02-16 11:11:34 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fio", "--parse-only"
|
|
|
|
end
|
2010-02-26 16:11:12 +00:00
|
|
|
end
|