diff options
| author | Tojek Anselm | 2010-06-22 10:04:05 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-22 14:08:05 -0700 |
| commit | 7ddb9ed408d49d1786f5b4bb78c6dfbdf83f96af (patch) | |
| tree | cc6f59bd321d8cc098d7227d550bb7cd76e6c73c /Library | |
| parent | 66f7207cbb09c8a8623773d633b422cad23ed961 (diff) | |
| download | homebrew-7ddb9ed408d49d1786f5b4bb78c6dfbdf83f96af.tar.bz2 | |
New formula: stunnel
stunnel is an SSL wrapper daemon for clients or servers that are not SSL-aware.
It is commonly used for inetd-style daemons such as POP3 or IMAP.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Specify etc explicitly and tweak caveats.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/stunnel.rb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Library/Formula/stunnel.rb b/Library/Formula/stunnel.rb new file mode 100644 index 000000000..4adc8cc66 --- /dev/null +++ b/Library/Formula/stunnel.rb @@ -0,0 +1,49 @@ +require 'formula' + +class Stunnel <Formula + url 'http://www.stunnel.org/download/stunnel/src/stunnel-4.33.tar.gz' + homepage 'http://www.stunnel.org/' + md5 '559a864066d8cc4afd8a97682c90d41c' + + def patches + # This patch installs a bogus .pem in lieu of interactive cert generation + DATA + end + + def install + system "./configure", "--disable-dependency-tracking", + "--disable-libwrap", + "--prefix=#{prefix}", + "--sysconfdir=#{etc}" + "--mandir=#{man}" + system "make install" + end + + def caveats + <<-EOS.undent + A bogus SSL server certificate has been installed to: + #{etc}/stunnel/stunnel.pem + + This certificate will be used by default unless a config file says + otherwise! + + In your stunnel configuration, specify a SSL certificate with + the "cert =" option for each service. + EOS + end +end + +__END__ +diff --git a/tools/stunnel.cnf b/tools/stunnel.cnf +index 274f9a0..d5d7cc0 100644 +--- a/tools/stunnel.cnf ++++ b/tools/stunnel.cnf +@@ -7,6 +7,7 @@ default_bits = 1024 + encrypt_key = yes + distinguished_name = req_dn + x509_extensions = cert_type ++prompt = no + + [ req_dn ] + countryName = Country Name (2 letter code) + |
