Date: Tuesday, April 26, 2016 @ 16:50:39 Author: andyrtr Revision: 266163
upgpkg: libetpan 1.7-1 upstream update 1.7 Modified: libetpan/trunk/PKGBUILD Deleted: libetpan/trunk/fix_STARTTLS_negotiation.diff -------------------------------+ PKGBUILD | 30 +++++++-------------- fix_STARTTLS_negotiation.diff | 55 ---------------------------------------- 2 files changed, 10 insertions(+), 75 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-04-26 10:26:30 UTC (rev 266162) +++ PKGBUILD 2016-04-26 14:50:39 UTC (rev 266163) @@ -2,38 +2,28 @@ # Maintainer: Andreas Radke <[email protected]> pkgname=libetpan -pkgver=1.6 -pkgrel=4 +pkgver=1.7 +pkgrel=1 pkgdesc="A portable middleware for email access" arch=('i686' 'x86_64') url="http://www.etpan.org/libetpan.html" license=("custom:etpan") depends=('libsasl' 'curl' 'expat') -source=($pkgname-$pkgver.tar.gz::https://github.com/dinhviethoa/${pkgname}/archive/${pkgver}.tar.gz - fix_STARTTLS_negotiation.diff) -md5sums=('1158c4ce291876c2b7bb003cd4b3566e' - '63c65052f6cd82a23ba9e15b14c85e24') +source=($pkgname-$pkgver.tar.gz::https://github.com/dinhviethoa/${pkgname}/archive/${pkgver}.tar.gz) +md5sums=('8336a6752c814d83366d9e3f193f5099') prepare() { cd ${pkgname}-${pkgver} - # FS#48531 - https://github.com/dinhviethoa/libetpan/commit/7f1f97f4d59d5724af97f4d32424c2841715561c - patch -Np1 -i ${srcdir}/fix_STARTTLS_negotiation.diff + libtoolize --force --copy + aclocal -I m4 + autoheader + autoconf + automake --add-missing --foreign --force --copy } build() { cd ${pkgname}-${pkgver} - - # generate automake files that are not included in the tarball -# libtoolize --force --copy -# aclocal -I m4 -# autoheader -# autoconf -# automake --add-missing --foreign --force --copy - #autoreconf -vfi - - #./configure --prefix=/usr \ - - ./autogen.sh --prefix=/usr \ + ./configure --prefix=/usr \ --disable-static \ --disable-db make Deleted: fix_STARTTLS_negotiation.diff =================================================================== --- fix_STARTTLS_negotiation.diff 2016-04-26 10:26:30 UTC (rev 266162) +++ fix_STARTTLS_negotiation.diff 2016-04-26 14:50:39 UTC (rev 266163) @@ -1,55 +0,0 @@ -diff --git a/src/data-types/mailstream_ssl.c b/src/data-types/mailstream_ssl.c -index 9ed676d..05a035b 100644 ---- a/src/data-types/mailstream_ssl.c -+++ b/src/data-types/mailstream_ssl.c -@@ -495,13 +495,19 @@ static struct mailstream_ssl_data * ssl_data_new_full(int fd, time_t timeout, - static struct mailstream_ssl_data * ssl_data_new(int fd, time_t timeout, - void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data) - { -- return ssl_data_new_full(fd, timeout, SSLv23_client_method(), callback, cb_data); --} -- --static struct mailstream_ssl_data * tls_data_new(int fd, time_t timeout, -- void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data) --{ -- return ssl_data_new_full(fd, timeout, TLSv1_client_method(), callback, cb_data); -+ return ssl_data_new_full(fd, timeout, -+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) -+ TLS_client_method(), -+#else -+ /* Despite their name the SSLv23_*method() functions have nothing to do -+ * with the availability of SSLv2 or SSLv3. What these functions do is -+ * negotiate with the peer the highest available SSL/TLS protocol version -+ * available. The name is as it is for historic reasons. This is a very -+ * common confusion and is the main reason why these names have been -+ * deprecated in the latest dev version of OpenSSL. */ -+ SSLv23_client_method(), -+#endif -+ callback, cb_data); - } - - #else -@@ -635,11 +641,6 @@ static struct mailstream_ssl_data * ssl_data_new(int fd, time_t timeout, - err: - return NULL; - } --static struct mailstream_ssl_data * tls_data_new(int fd, time_t timeout, -- void (* callback)(struct mailstream_ssl_context * ssl_context, void * cb_data), void * cb_data) --{ -- return ssl_data_new(fd, timeout, callback, cb_data); --} - #endif - - static void ssl_data_free(struct mailstream_ssl_data * ssl_data) -@@ -691,10 +692,7 @@ static mailstream_low * mailstream_low_ssl_open_full(int fd, int starttls, time_ - mailstream_low * s; - struct mailstream_ssl_data * ssl_data; - -- if (starttls) -- ssl_data = tls_data_new(fd, timeout, callback, cb_data); -- else -- ssl_data = ssl_data_new(fd, timeout, callback, cb_data); -+ ssl_data = ssl_data_new(fd, timeout, callback, cb_data); - - if (ssl_data == NULL) - goto err;
