diff options
| author | Jack Nagel | 2014-03-14 23:09:01 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-03-14 23:10:00 -0500 | 
| commit | 8d118686b3c5c169cde3700eb5219604a2c0738f (patch) | |
| tree | 20f3d198c9c3d67ecc26cc258154278d5e6cdc55 | |
| parent | af16f17a322232900b8c1500026d178805b3a7ad (diff) | |
| download | homebrew-8d118686b3c5c169cde3700eb5219604a2c0738f.tar.bz2 | |
stunnel: always use Homebrew openssl
| -rw-r--r-- | Library/Formula/stunnel.rb | 25 | 
1 files changed, 7 insertions, 18 deletions
| diff --git a/Library/Formula/stunnel.rb b/Library/Formula/stunnel.rb index 33d2b61f7..3d94b67a5 100644 --- a/Library/Formula/stunnel.rb +++ b/Library/Formula/stunnel.rb @@ -6,25 +6,9 @@ class Stunnel < Formula    mirror 'http://ftp.nluug.nl/pub/networking/stunnel/archive/4.x/stunnel-4.56.tar.gz'    sha256 '9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293' -  # We need Homebrew OpenSSL for TLSv1.2 support -  option 'with-brewed-openssl', 'Build with Homebrew OpenSSL instead of the system version' - -  depends_on "openssl" if MacOS.version <= :leopard or build.with?('brewed-openssl') +  depends_on "openssl"    def install - -    args = [ -      "--disable-dependency-tracking", -      "--disable-libwrap", -      "--prefix=#{prefix}", -      "--sysconfdir=#{etc}", -      "--mandir=#{man}", -    ] - -    if MacOS.version <= :leopard or build.with?('brewed-openssl') -      args << "--with-ssl-dir=#{Formula["openssl"].opt_prefix}" -    end -      # This causes a bogus .pem to be created in lieu of interactive cert generation.      File.open('tools/stunnel.cnf', 'w') do |f|        f.write <<-EOS @@ -60,7 +44,12 @@ nsCertType                      = server        EOS      end -    system "./configure", *args +    system "./configure", "--disable-dependency-tracking", +                          "--prefix=#{prefix}", +                          "--sysconfdir=#{etc}", +                          "--mandir=#{man}", +                          "--disable-libwrap", +                          "--with-ssl-dir=#{Formula["openssl"].opt_prefix}"      system "make install"    end | 
