From 8a46d50ea40f97b0f50bba06d8c0bf3b8721b013 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 28 Aug 2019 13:45:54 -0300 Subject: binary: update luasec to 0.8.1 --- binary/all_in_one | 2 +- binary/luasec-0.7alpha-2.rockspec | 124 -------------------------------------- binary/luasec-0.8.1-2.rockspec | 124 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 125 deletions(-) delete mode 100644 binary/luasec-0.7alpha-2.rockspec create mode 100644 binary/luasec-0.8.1-2.rockspec diff --git a/binary/all_in_one b/binary/all_in_one index 4b674365..afc5f8dc 100755 --- a/binary/all_in_one +++ b/binary/all_in_one @@ -457,7 +457,7 @@ local function main() local dependencies = { md5 = "md5", - luasec = "./binary/luasec-0.7alpha-2.rockspec", + luasec = "./binary/luasec-0.8.1-2.rockspec", luaposix = if_platform("unix", "./binary/luaposix-34.0.4-1.rockspec"), luasocket = "luasocket", ["lua-zlib"] = "./binary/lua-zlib-1.2-0.rockspec", diff --git a/binary/luasec-0.7alpha-2.rockspec b/binary/luasec-0.7alpha-2.rockspec deleted file mode 100644 index 89d516b5..00000000 --- a/binary/luasec-0.7alpha-2.rockspec +++ /dev/null @@ -1,124 +0,0 @@ -package = "LuaSec" -version = "0.7alpha-2" -source = { - url = "https://github.com/brunoos/luasec/archive/luasec-0.7alpha.tar.gz", - dir = "luasec-luasec-0.7alpha" -} -description = { - summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", - detailed = "This version delegates to LuaSocket the TCP connection establishment between the client and server. Then LuaSec uses this connection to start a secure TLS/SSL session.", - homepage = "https://github.com/brunoos/luasec/wiki", - license = "MIT" -} -dependencies = { - "lua >= 5.1", "luasocket" -} -external_dependencies = { - platforms = { - unix = { - OPENSSL = { - header = "openssl/ssl.h", - library = "ssl" - } - }, - windows = { - OPENSSL = { - header = "openssl/ssl.h", - } - }, - mingw32 = { - OPENSSL = { - library = "ssl", - } - }, - } -} -build = { - type = "builtin", - copy_directories = { - "samples" - }, - platforms = { - unix = { - modules = { - ['ssl.https'] = "src/https.lua", - ['ssl.init'] = "src/ssl.lua", - ssl = { - defines = { - "WITH_LUASOCKET", "LUASOCKET_DEBUG", - }, - incdirs = { - "$(OPENSSL_INCDIR)", "src/", "src/luasocket", - }, - libdirs = { - "$(OPENSSL_LIBDIR)" - }, - libraries = { - "ssl", "crypto" - }, - sources = { - "src/config.c", "src/ec.c", - "src/x509.c", "src/context.c", "src/ssl.c", - "src/luasocket/buffer.c", "src/luasocket/io.c", - "src/luasocket/timeout.c", "src/luasocket/usocket.c" - } - } - } - }, - mingw32 = { - modules = { - ssl = { - libraries = { - "ssl", "crypto", "ws2_32", "gdi32" - } - } - } - }, - windows = { - modules = { - ['ssl.https'] = "src/https.lua", - ['ssl.init'] = "src/ssl.lua", - ssl = { - defines = { - "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)", - "WITH_LUASOCKET", "LUASOCKET_DEBUG", - "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300" - }, - libdirs = { - "$(OPENSSL_LIBDIR)", - "$(OPENSSL_BINDIR)", - }, - libraries = { - "libssl32MD", "libcrypto32MD", "ws2_32" - }, - incdirs = { - "$(OPENSSL_INCDIR)", "src/", "src/luasocket" - }, - sources = { - "src/config.c", "src/ec.c", - "src/x509.c", "src/context.c", "src/ssl.c", - "src/luasocket/buffer.c", "src/luasocket/io.c", - "src/luasocket/timeout.c", "src/luasocket/wsocket.c" - } - } - }, - patches = { -["lowercase-winsock-h.diff"] = [[ -diff --git a/src/ssl.c b/src/ssl.c -index 95109c4..e5defa8 100644 ---- a/src/ssl.c -+++ b/src/ssl.c -@@ -11,7 +11,7 @@ - #include - - #if defined(WIN32) --#include -+#include - #endif - - #include -]] - } - } - } -} diff --git a/binary/luasec-0.8.1-2.rockspec b/binary/luasec-0.8.1-2.rockspec new file mode 100644 index 00000000..510e88ef --- /dev/null +++ b/binary/luasec-0.8.1-2.rockspec @@ -0,0 +1,124 @@ +package = "LuaSec" +version = "0.8.1-2" +source = { + url = "https://github.com/brunoos/luasec/archive/luasec-0.8.1.tar.gz", + dir = "luasec-luasec-0.8.1" +} +description = { + summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", + detailed = "This version delegates to LuaSocket the TCP connection establishment between the client and server. Then LuaSec uses this connection to start a secure TLS/SSL session.", + homepage = "https://github.com/brunoos/luasec/wiki", + license = "MIT" +} +dependencies = { + "lua >= 5.1", "luasocket" +} +external_dependencies = { + platforms = { + unix = { + OPENSSL = { + header = "openssl/ssl.h", + library = "ssl" + } + }, + windows = { + OPENSSL = { + header = "openssl/ssl.h", + } + }, + mingw32 = { + OPENSSL = { + library = "ssl", + } + }, + } +} +build = { + type = "builtin", + copy_directories = { + "samples" + }, + platforms = { + unix = { + modules = { + ['ssl.https'] = "src/https.lua", + ['ssl.init'] = "src/ssl.lua", + ssl = { + defines = { + "WITH_LUASOCKET", "LUASOCKET_DEBUG", + }, + incdirs = { + "$(OPENSSL_INCDIR)", "src/", "src/luasocket", + }, + libdirs = { + "$(OPENSSL_LIBDIR)" + }, + libraries = { + "ssl", "crypto" + }, + sources = { + "src/config.c", "src/ec.c", + "src/x509.c", "src/context.c", "src/ssl.c", + "src/luasocket/buffer.c", "src/luasocket/io.c", + "src/luasocket/timeout.c", "src/luasocket/usocket.c" + } + } + } + }, + mingw32 = { + modules = { + ssl = { + libraries = { + "ssl", "crypto", "ws2_32", "gdi32" + } + } + } + }, + windows = { + modules = { + ['ssl.https'] = "src/https.lua", + ['ssl.init'] = "src/ssl.lua", + ssl = { + defines = { + "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)", + "WITH_LUASOCKET", "LUASOCKET_DEBUG", + "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300" + }, + libdirs = { + "$(OPENSSL_LIBDIR)", + "$(OPENSSL_BINDIR)", + }, + libraries = { + "libssl32MD", "libcrypto32MD", "ws2_32" + }, + incdirs = { + "$(OPENSSL_INCDIR)", "src/", "src/luasocket" + }, + sources = { + "src/config.c", "src/ec.c", + "src/x509.c", "src/context.c", "src/ssl.c", + "src/luasocket/buffer.c", "src/luasocket/io.c", + "src/luasocket/timeout.c", "src/luasocket/wsocket.c" + } + } + }, + patches = { +["lowercase-winsock-h.diff"] = [[ +diff --git a/src/ssl.c b/src/ssl.c +index 95109c4..e5defa8 100644 +--- a/src/ssl.c ++++ b/src/ssl.c +@@ -11,7 +11,7 @@ + #include + + #if defined(WIN32) +-#include ++#include + #endif + + #include +]] + } + } + } +} -- cgit v1.2.3-55-g6feb