sysstat: new formula (Linux-only) (#76062)

* linux-pr-tests.yml: add sysstat

* sysstat: add new formula
master
Daniel Nachun 2021-04-29 18:17:10 -07:00 committed by GitHub
parent 407de7d8b3
commit e0449a3423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -32,6 +32,7 @@ on:
- "Formula/numactl.rb"
- "Formula/sshfs.rb"
- "Formula/strace.rb"
- "Formula/sysstat.rb"
- "Formula/systemd.rb"
- "Formula/valgrind.rb"
- "Formula/wayland.rb"

24
Formula/sysstat.rb Normal file
View File

@ -0,0 +1,24 @@
class Sysstat < Formula
desc "Performance monitoring tools for Linux"
homepage "https://github.com/sysstat/sysstat"
url "https://github.com/sysstat/sysstat/archive/v12.4.0.tar.gz"
sha256 "1962ed04832d798f5f7e787b9b4caa8b48fe935e854eef5528586b65f3cdd993"
license "GPL-2.0-or-later"
head "https://github.com/sysstat/sysstat.git"
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