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.63.tar.xz"
|
|
sha256 "0c637b8f44fc7d8627787e9cf57f15ac06c1ddccb53e41feec5496be3466f77f"
|
|
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: "ede60f4406864153311d0a476071a201267ace7ddcaec18d7a7ce26731feb9d6"
|
|
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
|