homebrew-core/Formula/libcap.rb

27 lines
887 B
Ruby

class Libcap < Formula
desc "User-space interfaces to POSIX 1003.1e capabilities"
homepage "https://sites.google.com/site/fullycapable/"
url "https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.66.tar.xz"
sha256 "15c40ededb3003d70a283fe587a36b7d19c8b3b554e33f86129c059a4bb466b2"
license all_of: ["BSD-3-Clause", "GPL-2.0-or-later"]
livecheck do
url "https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/"
regex(/href=.*?libcap[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "bdd94d141c3ba1d750dd36d56a18cce0b36203fedd07a083fc5073c30915c069"
end
depends_on :linux
def install
system "make", "install", "prefix=#{prefix}", "lib=lib", "RAISE_SETFCAP=no"
end
test do
assert_match "usage", shell_output("#{sbin}/getcap 2>&1", 1)
end
end