From 145651f218e6dedbc5bbf7339b721f5355c5f1d8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 19 Mar 2017 20:13:37 +0200 Subject: [PATCH] krb5: import homebrew/dupes into core. --- Formula/krb5.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Formula/krb5.rb diff --git a/Formula/krb5.rb b/Formula/krb5.rb new file mode 100644 index 00000000000..46d774cc1d5 --- /dev/null +++ b/Formula/krb5.rb @@ -0,0 +1,34 @@ +class Krb5 < Formula + desc "Network authentication protocol" + homepage "https://web.mit.edu/kerberos/" + url "https://web.mit.edu/kerberos/dist/krb5/1.14/krb5-1.14.4.tar.gz" + sha256 "03a61a4280c9161771fb39019085dbe6a57aa602080515ff93b43cd6137e0b95" + + bottle do + sha256 "7d96e5c66f9b33d816ad2ef7f593c553f787c389a48d99bb7790354549b70b6b" => :sierra + sha256 "86864f7c528286ef53f173032ca87b0911c71f1b3a04d0fd482faa2985dde301" => :el_capitan + sha256 "1ca8042ea545878c3cc2bd10354b921bbd50c23eb538888e0603134c20eaf7bb" => :yosemite + end + + keg_only :provided_by_osx + + depends_on "openssl" + + def install + cd "src" do + system "./configure", + "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + 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