aboutsummaryrefslogtreecommitdiff
path: root/binary/luasec-0.7alpha-2.rockspec
diff options
context:
space:
mode:
Diffstat (limited to 'binary/luasec-0.7alpha-2.rockspec')
-rw-r--r--binary/luasec-0.7alpha-2.rockspec119
1 files changed, 119 insertions, 0 deletions
diff --git a/binary/luasec-0.7alpha-2.rockspec b/binary/luasec-0.7alpha-2.rockspec
new file mode 100644
index 00000000..2736ca15
--- /dev/null
+++ b/binary/luasec-0.7alpha-2.rockspec
@@ -0,0 +1,119 @@
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 }
30}
31build = {
32 type = "builtin",
33 copy_directories = {
34 "samples"
35 },
36 platforms = {
37 unix = {
38 modules = {
39 ['ssl.https'] = "src/https.lua",
40 ['ssl.init'] = "src/ssl.lua",
41 ssl = {
42 defines = {
43 "WITH_LUASOCKET", "LUASOCKET_DEBUG",
44 },
45 incdirs = {
46 "$(OPENSSL_INCDIR)", "src/", "src/luasocket",
47 },
48 libdirs = {
49 "$(OPENSSL_LIBDIR)"
50 },
51 libraries = {
52 "ssl", "crypto"
53 },
54 sources = {
55 "src/config.c", "src/ec.c",
56 "src/x509.c", "src/context.c", "src/ssl.c",
57 "src/luasocket/buffer.c", "src/luasocket/io.c",
58 "src/luasocket/timeout.c", "src/luasocket/usocket.c"
59 }
60 }
61 }
62 },
63 mingw = {
64 modules = {
65 ssl = {
66 libraries = {
67 "ssl", "crypto",
68 }
69 }
70 }
71 },
72 windows = {
73 modules = {
74 ['ssl.https'] = "src/https.lua",
75 ['ssl.init'] = "src/ssl.lua",
76 ssl = {
77 defines = {
78 "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)",
79 "WITH_LUASOCKET", "LUASOCKET_DEBUG",
80 "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300"
81 },
82 libdirs = {
83 "$(OPENSSL_LIBDIR)",
84 "$(OPENSSL_BINDIR)",
85 },
86 libraries = {
87 "libssl32MD", "libcrypto32MD", "ws2_32"
88 },
89 incdirs = {
90 "$(OPENSSL_INCDIR)", "src/", "src/luasocket"
91 },
92 sources = {
93 "src/config.c", "src/ec.c",
94 "src/x509.c", "src/context.c", "src/ssl.c",
95 "src/luasocket/buffer.c", "src/luasocket/io.c",
96 "src/luasocket/timeout.c", "src/luasocket/wsocket.c"
97 }
98 }
99 },
100 patches = {
101["lowercase-winsock-h.diff"] = [[
102diff --git a/src/ssl.c b/src/ssl.c
103index 95109c4..e5defa8 100644
104--- a/src/ssl.c
105+++ b/src/ssl.c
106@@ -11,7 +11,7 @@
107 #include <string.h>
108
109 #if defined(WIN32)
110-#include <Winsock2.h>
111+#include <winsock2.h>
112 #endif
113
114 #include <openssl/ssl.h>
115]]
116 }
117 }
118 }
119}