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.64.tar.xz"
|
|
sha256 "c8465e1f0b068d5fc06199231135ccac7adb56d662b1de93589252e8cd071e13"
|
|
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: "32e75e7191b49fa6a99bead2a655915a69ffd5e7f8cc3133a43735ad7ecff062"
|
|
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
|