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