homebrew-core/Formula/conmon.rb

27 lines
771 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.0.29.tar.gz"
sha256 "eb4d5e157671a61b88786e44094775194e30e1d0ad0b9d50035532ece78dbc28"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "fefd7bbd590a91c392a4a2b30d058adec7ffcebcfe024647e11292c20009ca27"
end
depends_on "go" => :build
depends_on "pkg-config" => :build
depends_on "glib"
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