18 lines
583 B
Ruby
18 lines
583 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.27.tar.xz"
|
|
sha256 "dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a"
|
|
license all_of: ["BSD-3-Clause", "GPL-2.0-or-later"]
|
|
|
|
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
|