sysstat: new formula (Linux-only) (#76062)
* linux-pr-tests.yml: add sysstat * sysstat: add new formulamaster
parent
407de7d8b3
commit
e0449a3423
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue