homebrew-core/Formula/openssl.rb
Carter McKendry 01b39c9c95 openssl: add mirror
Closes Homebrew/homebrew#19844.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-15 20:49:32 -05:00

40 lines
1 KiB
Ruby

require 'formula'
class Openssl < Formula
homepage 'http://openssl.org'
url 'http://openssl.org/source/openssl-1.0.1e.tar.gz'
mirror 'http://mirrors.ibiblio.org/openssl/source/openssl-1.0.1e.tar.gz'
sha256 'f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3'
keg_only :provided_by_osx,
"The OpenSSL provided by OS X is too old for some software."
def install
args = %W[./Configure
--prefix=#{prefix}
--openssldir=#{etc}/openssl
zlib-dynamic
shared
]
if MacOS.prefer_64_bit?
args << "darwin64-x86_64-cc" << "enable-ec_nistp_64_gcc_128"
else
args << "darwin-i386-cc"
end
system "perl", *args
ENV.deparallelize # Parallel compilation fails
system "make"
system "make", "test"
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
end
def caveats; <<-EOS.undent
To install updated CA certs from Mozilla.org:
brew install curl-ca-bundle
EOS
end
end