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.4.tar.gz"
|
|
sha256 "f0441f3d9b00d3130a7746e8d6a6c53a7973c9fd914e92b129726d152c9d60fb"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "41350b796d02e13a535bcfc805941cf60083cb435b6f70400b47c21a55e3f023"
|
|
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
|