27 lines
887 B
Ruby
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.62.tar.xz"
|
|
sha256 "190c5baac9bee06a129eae20d3e827de62f664fe3507f0bf6c50a9a59fbd83a2"
|
|
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: "c04f7e5faad36c54810d3a4c1cdf29d2eb18df8d677d5db9d9a856adedec4343"
|
|
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
|