aboutsummaryrefslogtreecommitdiff
path: root/binary/luasec-0.7alpha-2.rockspec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-08-28 13:45:54 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-08-28 13:45:54 -0300
commit8a46d50ea40f97b0f50bba06d8c0bf3b8721b013 (patch)
tree1fe895f6ef01adac720fbae192b95a0233f2007c /binary/luasec-0.7alpha-2.rockspec
parenta2a3d1595c628111fcbcac8571a7513a8b15e405 (diff)
downloadluarocks-8a46d50ea40f97b0f50bba06d8c0bf3b8721b013.tar.gz
luarocks-8a46d50ea40f97b0f50bba06d8c0bf3b8721b013.tar.bz2
luarocks-8a46d50ea40f97b0f50bba06d8c0bf3b8721b013.zip
binary: update luasec to 0.8.1
Diffstat (limited to 'binary/luasec-0.7alpha-2.rockspec')
-rw-r--r--binary/luasec-0.7alpha-2.rockspec124
1 files changed, 0 insertions, 124 deletions
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 @@
1package = "LuaSec"
2version = "0.7alpha-2"
3source = {
4 url = "https://github.com/brunoos/luasec/archive/luasec-0.7alpha.tar.gz",
5 dir = "luasec-luasec-0.7alpha"
6}
7description = {
8 summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.",
9 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.",
10 homepage = "https://github.com/brunoos/luasec/wiki",
11 license = "MIT"
12}
13dependencies = {
14 "lua >= 5.1", "luasocket"
15}
16external_dependencies = {
17 platforms = {
18 unix = {
19 OPENSSL = {
20 header = "openssl/ssl.h",
21 library = "ssl"
22 }
23 },
24 windows = {
25 OPENSSL = {
26 header = "openssl/ssl.h",
27 }
28 },
29 mingw32 = {
30 OPENSSL = {
31 library = "ssl",
32 }
33 },
34 }
35}
36build = {
37 type = "builtin",
38 copy_directories = {
39 "samples"
40 },
41 platforms = {
42 unix = {
43 modules = {
44 ['ssl.https'] = "src/https.lua",
45 ['ssl.init'] = "src/ssl.lua",
46 ssl = {
47 defines = {
48 "WITH_LUASOCKET", "LUASOCKET_DEBUG",
49 },
50 incdirs = {
51 "$(OPENSSL_INCDIR)", "src/", "src/luasocket",
52 },
53 libdirs = {
54 "$(OPENSSL_LIBDIR)"
55 },
56 libraries = {
57 "ssl", "crypto"
58 },
59 sources = {
60 "src/config.c", "src/ec.c",
61 "src/x509.c", "src/context.c", "src/ssl.c",
62 "src/luasocket/buffer.c", "src/luasocket/io.c",
63 "src/luasocket/timeout.c", "src/luasocket/usocket.c"
64 }
65 }
66 }
67 },
68 mingw32 = {
69 modules = {
70 ssl = {
71 libraries = {
72 "ssl", "crypto", "ws2_32", "gdi32"
73 }
74 }
75 }
76 },
77 windows = {
78 modules = {
79 ['ssl.https'] = "src/https.lua",
80 ['ssl.init'] = "src/ssl.lua",
81 ssl = {
82 defines = {
83 "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)",
84 "WITH_LUASOCKET", "LUASOCKET_DEBUG",
85 "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300"
86 },
87 libdirs = {
88 "$(OPENSSL_LIBDIR)",
89 "$(OPENSSL_BINDIR)",
90 },
91 libraries = {
92 "libssl32MD", "libcrypto32MD", "ws2_32"
93 },
94 incdirs = {
95 "$(OPENSSL_INCDIR)", "src/", "src/luasocket"
96 },
97 sources = {
98 "src/config.c", "src/ec.c",
99 "src/x509.c", "src/context.c", "src/ssl.c",
100 "src/luasocket/buffer.c", "src/luasocket/io.c",
101 "src/luasocket/timeout.c", "src/luasocket/wsocket.c"
102 }
103 }
104 },
105 patches = {
106["lowercase-winsock-h.diff"] = [[
107diff --git a/src/ssl.c b/src/ssl.c
108index 95109c4..e5defa8 100644
109--- a/src/ssl.c
110+++ b/src/ssl.c
111@@ -11,7 +11,7 @@
112 #include <string.h>
113
114 #if defined(WIN32)
115-#include <Winsock2.h>
116+#include <winsock2.h>
117 #endif
118
119 #include <openssl/ssl.h>
120]]
121 }
122 }
123 }
124}