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.65.tar.xz"
|
|
sha256 "73e350020cc31fe15360879d19384ffa3395a825f065fcf6bda3a5cdf965bebd"
|
|
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: "3f2b48dea55ded2460435795a9bc3ea641f292c1193cc35c20fa4b5e93a4335a"
|
|
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
|