[arch-commits] Commit in luasec/trunk (PKGBUILD nossl.patch)

Sergej Pupykin spupykin at archlinux.org
Mon Mar 7 13:49:14 UTC 2016


    Date: Monday, March 7, 2016 @ 14:49:13
  Author: spupykin
Revision: 165501

upgpkg: luasec 1:0.6-1

upd

Added:
  luasec/trunk/nossl.patch
Modified:
  luasec/trunk/PKGBUILD

-------------+
 PKGBUILD    |   12 +++++++-----
 nossl.patch |   16 ++++++++++++++++
 2 files changed, 23 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-07 13:43:50 UTC (rev 165500)
+++ PKGBUILD	2016-03-07 13:49:13 UTC (rev 165501)
@@ -14,13 +14,15 @@
 license=('MIT')
 makedepends=('openssl' 'lua' 'lua-socket' 'lua51' 'lua51-socket' 'lua52' 'lua52-socket')
 options=('!buildflags')
-source=("https://github.com/brunoos/luasec/archive/luasec-$pkgver.tar.gz")
-md5sums=('14e1aef6d2aae96bbf98afc6b6634af2')
+source=("https://github.com/brunoos/luasec/archive/luasec-$pkgver.tar.gz"
+	'nossl.patch')
+md5sums=('14e1aef6d2aae96bbf98afc6b6634af2'
+         '4dd73139419f32898d06ade68a1053ab')
 
 prepare() {
-#  cd luasec-luasec-$pkgver
-#  patch -p1 < ../lua53_compat.patch
-#  cd ..
+  cd luasec-luasec-$pkgver
+  patch -p1 < ../nossl.patch
+  cd ..
 
   cp -a luasec-luasec-$pkgver luasec-luasec-$pkgver-51
   cp -a luasec-luasec-$pkgver luasec-luasec-$pkgver-52

Added: nossl.patch
===================================================================
--- nossl.patch	                        (rev 0)
+++ nossl.patch	2016-03-07 13:49:13 UTC (rev 165501)
@@ -0,0 +1,16 @@
+diff -wbBur luasec-luasec-0.6-51/src/context.c luasec-luasec-0.6/src/context.c
+--- luasec-luasec-0.6-51/src/context.c	2016-03-03 22:11:46.000000000 +0300
++++ luasec-luasec-0.6/src/context.c	2016-03-07 16:47:50.328080321 +0300
+@@ -96,11 +96,7 @@
+  */
+ static LSEC_SSL_METHOD* str2method(const char *method)
+ {
+-  if (!strcmp(method, "any"))     return SSLv23_method();
+-  if (!strcmp(method, "sslv23"))  return SSLv23_method();  // deprecated
+-#ifndef OPENSSL_NO_SSL3
+-  if (!strcmp(method, "sslv3"))   return SSLv3_method();
+-#endif
++  if (!strcmp(method, "any"))     return TLSv1_method();
+   if (!strcmp(method, "tlsv1"))   return TLSv1_method();
+ #if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
+   if (!strcmp(method, "tlsv1_1")) return TLSv1_1_method();



More information about the arch-commits mailing list