2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openssl < Formula
|
2012-04-23 08:09:56 +00:00
|
|
|
homepage 'http://openssl.org'
|
2013-02-11 21:34:57 +00:00
|
|
|
url 'http://openssl.org/source/openssl-1.0.1e.tar.gz'
|
2013-05-15 18:11:37 +00:00
|
|
|
mirror 'http://mirrors.ibiblio.org/openssl/source/openssl-1.0.1e.tar.gz'
|
2013-02-11 21:34:57 +00:00
|
|
|
sha256 'f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3'
|
2010-02-16 07:19:53 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
2012-04-17 09:08:58 +00:00
|
|
|
"The OpenSSL provided by OS X is too old for some software."
|
2010-10-17 15:52:14 +00:00
|
|
|
|
2010-02-16 07:19:53 +00:00
|
|
|
def install
|
2012-04-18 17:00:17 +00:00
|
|
|
args = %W[./Configure
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--openssldir=#{etc}/openssl
|
|
|
|
zlib-dynamic
|
|
|
|
shared
|
|
|
|
]
|
2012-04-17 08:34:14 +00:00
|
|
|
|
2013-04-08 22:04:11 +00:00
|
|
|
if MacOS.prefer_64_bit?
|
|
|
|
args << "darwin64-x86_64-cc" << "enable-ec_nistp_64_gcc_128"
|
|
|
|
else
|
|
|
|
args << "darwin-i386-cc"
|
|
|
|
end
|
2012-04-17 08:34:14 +00:00
|
|
|
|
|
|
|
system "perl", *args
|
2011-07-22 00:09:26 +00:00
|
|
|
|
2012-01-05 05:37:36 +00:00
|
|
|
ENV.deparallelize # Parallel compilation fails
|
2010-02-16 07:19:53 +00:00
|
|
|
system "make"
|
2012-04-17 09:08:58 +00:00
|
|
|
system "make", "test"
|
|
|
|
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
|
2010-02-16 07:19:53 +00:00
|
|
|
end
|
2013-02-17 18:29:09 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To install updated CA certs from Mozilla.org:
|
|
|
|
|
|
|
|
brew install curl-ca-bundle
|
|
|
|
EOS
|
|
|
|
end
|
2010-02-16 07:19:53 +00:00
|
|
|
end
|