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