homebrew-core/Formula/libcap.rb

22 lines
724 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"]
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "c32acc483373e3079418a9fd64e7a1826caa82184b51a5294038cb4feed79418"
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