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.5.6.tar.gz"
sha256 "91e45312e7909d3d65aecd4dfeb16c923dc0f50addeaacdbd47bf624e4723c59"
license "GPL-2.0-or-later"
head "https://github.com/sysstat/sysstat.git", branch: "master"
bottle do
sha256 x86_64_linux: "b61d9b7819d1bcde6e90f1c9045f556d387e2d6511913f528c4c2c46b5b8a865"
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