52 lines
1.7 KiB
Ruby
52 lines
1.7 KiB
Ruby
class Krb5 < Formula
|
|
desc "Network authentication protocol"
|
|
homepage "https://web.mit.edu/kerberos/"
|
|
url "https://kerberos.org/dist/krb5/1.19/krb5-1.19.2.tar.gz"
|
|
sha256 "10453fee4e3a8f8ce6129059e5c050b8a65dab1c257df68b99b3112eaa0cdf6a"
|
|
license :cannot_represent
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/Current release: .*?>krb5[._-]v?(\d+(?:\.\d+)+)</i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 arm64_monterey: "0dd1072480422dc447c27e560e6e09afc095d93f5edb0ca2b46183a972f8cab0"
|
|
sha256 arm64_big_sur: "62a2882f4193d6871d9c8116b897a8d33d6a4fedb954646a0eefdc4bfe623110"
|
|
sha256 monterey: "449d685b80fcb828f738a3b6b8002b885201feb38dd2da0390010d56545e4609"
|
|
sha256 big_sur: "6ae8cffb08f9cba4842a21fc92618e22403a474fbd6d05820c3755401d55688d"
|
|
sha256 catalina: "5d0157ff13610f06bc262350978ef1f754e2b7ed0721ba27c431cfd5b5b16639"
|
|
sha256 mojave: "9dd6fca906e634be1c1b05a99fa8f28735a969e3eb4d939048e89f322c3a4278"
|
|
sha256 x86_64_linux: "2626ed3b8a8e5448aabeac56f6fe91b199fe896a5fd84394d5475213fde1a139"
|
|
end
|
|
|
|
keg_only :provided_by_macos
|
|
|
|
depends_on "openssl@1.1"
|
|
|
|
uses_from_macos "bison"
|
|
|
|
on_linux do
|
|
depends_on "gettext"
|
|
end
|
|
|
|
def install
|
|
cd "src" do
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--without-system-verto",
|
|
"--without-keyutils"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/krb5-config", "--version"
|
|
assert_match include.to_s,
|
|
shell_output("#{bin}/krb5-config --cflags")
|
|
end
|
|
end
|