29 lines
881 B
Ruby
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.6.0.tar.gz"
|
|
sha256 "ffbcf991446a4fc67877340696dae28d71087d0d5e1acd3f46ca9cab15286dc7"
|
|
license "GPL-2.0-or-later"
|
|
head "https://github.com/sysstat/sysstat.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 x86_64_linux: "ce10ef2c413f3096c6685f2acbfdde78e55eb6c03deb9563a19716d19b9cc00f"
|
|
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
|