70 lines
2.1 KiB
Ruby
70 lines
2.1 KiB
Ruby
class Heimdal < Formula
|
|
desc "Free Kerberos 5 implementation"
|
|
homepage "https://www.h5l.org"
|
|
url "https://github.com/heimdal/heimdal/releases/download/heimdal-7.7.0/heimdal-7.7.0.tar.gz"
|
|
sha256 "f02d3314d634cc55eb9cf04a1eae0d96b293e45a1f837de9d894e800161b7d1b"
|
|
license "BSD-3-Clause"
|
|
|
|
livecheck do
|
|
url "https://github.com/heimdal/heimdal/releases/latest"
|
|
regex(%r{href=.*?/tag/heimdal[._-]v?(\d+(?:\.\d+)+)["' >]}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 "339287d54592d68d27ad3420f71c02bd0bf988b901116a4609ac05560fe38ca0" => :catalina
|
|
sha256 "c1d88cd19ae7300789f7423ccbda607a1d08c81881e4eb697686211e9451067a" => :mojave
|
|
sha256 "05b2d973befd459ec885e88876f6ebe9730c684f004eadb8e13bad31ac2dc1cc" => :high_sierra
|
|
end
|
|
|
|
keg_only :shadowed_by_macos, "macOS provides Kerberos"
|
|
|
|
depends_on "bison" => :build
|
|
depends_on "berkeley-db"
|
|
depends_on "flex"
|
|
depends_on "lmdb"
|
|
depends_on "openldap"
|
|
depends_on "openssl@1.1"
|
|
|
|
resource "JSON" do
|
|
url "https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-4.02.tar.gz"
|
|
sha256 "444a88755a89ffa2a5424ab4ed1d11dca61808ebef57e81243424619a9e8627c"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
|
|
|
|
resource("JSON").stage do
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
ENV.append "LDFLAGS", "-L#{Formula["berkeley-db"].opt_lib}"
|
|
ENV.append "LDFLAGS", "-L#{Formula["lmdb"].opt_lib}"
|
|
ENV.append "CFLAGS", "-I#{Formula["lmdb"].opt_include}"
|
|
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--without-x
|
|
--enable-static=no
|
|
--enable-pthread-support
|
|
--disable-afs-support
|
|
--disable-ndbm-db
|
|
--with-openldap=#{Formula["openldap"].opt_prefix}
|
|
--with-openssl=#{Formula["openssl@1.1"].opt_prefix}
|
|
--with-hcrypto-default-backend=ossl
|
|
--with-berkeley-db
|
|
--with-berkeley-db-include=#{Formula["berkeley-db"].opt_include}
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "-L#{lib}", shell_output("#{bin}/krb5-config --libs")
|
|
end
|
|
end
|