From 4837473ccf3e3c665281ccb4d0678ada21e33b43 Mon Sep 17 00:00:00 2001 From: Adrian Ho Date: Thu, 5 Sep 2024 00:59:50 +0800 Subject: [PATCH] krb5: update 1.21.3 bottle. --- Formula/k/krb5.rb | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Formula/k/krb5.rb diff --git a/Formula/k/krb5.rb b/Formula/k/krb5.rb new file mode 100644 index 00000000000..764cd7e56b7 --- /dev/null +++ b/Formula/k/krb5.rb @@ -0,0 +1,42 @@ +class Krb5 < Formula + desc "Network authentication protocol" + homepage "https://web.mit.edu/kerberos/" + url "https://kerberos.org/dist/krb5/1.21/krb5-1.21.3.tar.gz" + sha256 "b7a4cd5ead67fb08b980b21abd150ff7217e85ea320c9ed0c6dadd304840ad35" + license :cannot_represent + + livecheck do + url :homepage + regex(/Current release: .*?>krb5[._-]v?(\d+(?:\.\d+)+) :build + uses_from_macos "libedit" + + def install + cd "src" do + system "./configure", *std_configure_args, + "--disable-nls", + "--disable-silent-rules", + "--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