28 lines
796 B
Ruby
28 lines
796 B
Ruby
class Conmon < Formula
|
|
desc "OCI container runtime monitor"
|
|
homepage "https://github.com/containers/conmon"
|
|
url "https://github.com/containers/conmon/archive/refs/tags/v2.1.5.tar.gz"
|
|
sha256 "ee3179ee2b9a9107acec00eb546062cf7deb847f135a3b81503d22b0d226b3ed"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "c3fe2c962a7ff7784a29c8893d5e3a33ce5aa7458b8b47ece3f528d5d16c97ca"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
depends_on "libseccomp"
|
|
depends_on :linux
|
|
depends_on "systemd"
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}", "LIBEXECDIR=#{libexec}"
|
|
end
|
|
|
|
test do
|
|
assert_match "conmon: Container ID not provided. Use --cid", shell_output("conmon 2>&1", 1)
|
|
end
|
|
end
|