homebrew-core/Formula/sysstat.rb

29 lines
881 B
Ruby

class Sysstat < Formula
desc "Performance monitoring tools for Linux"
homepage "https://github.com/sysstat/sysstat"
url "https://github.com/sysstat/sysstat/archive/v12.7.1.tar.gz"
sha256 "d53698c7a15c307a3debb84607891c2be21e3bcfcb31f0fdab78394b689b2bdf"
license "GPL-2.0-or-later"
head "https://github.com/sysstat/sysstat.git", branch: "master"
bottle do
sha256 x86_64_linux: "53f7af2480a924cd85ef62988a6da1955abf69c9b724a24674ae008590d4be04"
end
depends_on :linux
def install
system "./configure",
"--disable-file-attr", # Fix install: cannot change ownership
"--prefix=#{prefix}",
"conf_dir=#{etc}/sysconfig",
"sa_dir=#{var}/log/sa"
system "make", "install"
end
test do
assert_match("PID", shell_output("#{bin}/pidstat"))
assert_match("avg-cpu", shell_output("#{bin}/iostat"))
end
end