[147637] trunk/dports/mail/fetchmail
jeremyhu at macports.org
jeremyhu at macports.org
Mon Apr 11 03:15:20 PDT 2016
Revision: 147637
https://trac.macports.org/changeset/147637
Author: jeremyhu at macports.org
Date: 2016-04-11 03:15:20 -0700 (Mon, 11 Apr 2016)
Log Message:
-----------
fetchmail: Allow use of OpenSSL implementation that doesn't support SSLv3
Modified Paths:
--------------
trunk/dports/mail/fetchmail/Portfile
Added Paths:
-----------
trunk/dports/mail/fetchmail/files/
trunk/dports/mail/fetchmail/files/no-ssl3.patch
Modified: trunk/dports/mail/fetchmail/Portfile
===================================================================
--- trunk/dports/mail/fetchmail/Portfile 2016-04-11 09:39:19 UTC (rev 147636)
+++ trunk/dports/mail/fetchmail/Portfile 2016-04-11 10:15:20 UTC (rev 147637)
@@ -5,6 +5,7 @@
name fetchmail
version 6.3.26
+revision 1
categories mail
platforms darwin
license {GPL-2 OpenSSLException}
@@ -42,6 +43,8 @@
depends_lib port:gettext \
port:kerberos5
+patchfiles no-ssl3.patch
+
configure.args --mandir=${prefix}/share/man \
--with-libiconv-prefix=${prefix} \
--without-ssl --with-kerberos5=${prefix} --with-gssapi
Added: trunk/dports/mail/fetchmail/files/no-ssl3.patch
===================================================================
--- trunk/dports/mail/fetchmail/files/no-ssl3.patch (rev 0)
+++ trunk/dports/mail/fetchmail/files/no-ssl3.patch 2016-04-11 10:15:20 UTC (rev 147637)
@@ -0,0 +1,23 @@
+--- socket.c.orig 2016-04-11 03:09:35.000000000 -0700
++++ socket.c 2016-04-11 03:13:19.000000000 -0700
+@@ -907,14 +907,19 @@ int SSLOpen(int sock, char *mycert, char
+ _ssl_context[sock] = NULL;
+ if(myproto) {
+ if(!strcasecmp("ssl2",myproto)) {
+-#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0
++#ifndef OPENSSL_NO_SSL2
+ _ctx[sock] = SSL_CTX_new(SSLv2_client_method());
+ #else
+ report(stderr, GT_("Your operating system does not support SSLv2.\n"));
+ return -1;
+ #endif
+ } else if(!strcasecmp("ssl3",myproto)) {
++#ifndef OPENSSL_NO_SSL3
+ _ctx[sock] = SSL_CTX_new(SSLv3_client_method());
++#else
++ report(stderr, GT_("Your operating system does not support SSLv3.\n"));
++ return -1;
++#endif
+ } else if(!strcasecmp("tls1",myproto)) {
+ _ctx[sock] = SSL_CTX_new(TLSv1_client_method());
+ } else if (!strcasecmp("ssl23",myproto)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160411/897b0ada/attachment.html>
More information about the macports-changes
mailing list