diff options
-rwxr-xr-x | binary/all_in_one | 5 | ||||
-rw-r--r-- | binary/luasec-1.3.2-1.rockspec (renamed from binary/luasec-1.0.2-1.rockspec) | 31 | ||||
-rw-r--r-- | binary/luasocket-3.1.0-1.rockspec | 135 |
3 files changed, 145 insertions, 26 deletions
diff --git a/binary/all_in_one b/binary/all_in_one index 53e0f13f..784ce1ec 100755 --- a/binary/all_in_one +++ b/binary/all_in_one | |||
@@ -455,6 +455,7 @@ local function main() | |||
455 | LUA_DIR = LUA_DIR, | 455 | LUA_DIR = LUA_DIR, |
456 | LIBFLAG = "-static", | 456 | LIBFLAG = "-static", |
457 | PWD = "pwd", | 457 | PWD = "pwd", |
458 | MKDIR = "mkdir", | ||
458 | }, | 459 | }, |
459 | platforms = if_platform("windows", { "windows", "win32", "mingw32" }), | 460 | platforms = if_platform("windows", { "windows", "win32", "mingw32" }), |
460 | external_deps_dirs = if_platform("windows", { CROSSCOMPILER_SYSROOT, fs.current_dir() .. "/windows-deps-" .. TRIPLET }), | 461 | external_deps_dirs = if_platform("windows", { CROSSCOMPILER_SYSROOT, fs.current_dir() .. "/windows-deps-" .. TRIPLET }), |
@@ -462,11 +463,11 @@ local function main() | |||
462 | 463 | ||
463 | local dependencies = { | 464 | local dependencies = { |
464 | md5 = "md5", | 465 | md5 = "md5", |
465 | luasec = "./binary/luasec-1.0.2-1.rockspec", | 466 | luasec = "./binary/luasec-1.3.2-1.rockspec", |
466 | ["lua-zlib"] = "./binary/lua-zlib-1.2-0.rockspec", | 467 | ["lua-zlib"] = "./binary/lua-zlib-1.2-0.rockspec", |
467 | ["lua-bz2"] = "./binary/lua-bz2-0.2.1-1.rockspec", | 468 | ["lua-bz2"] = "./binary/lua-bz2-0.2.1-1.rockspec", |
468 | luaposix = if_platform("unix", "./binary/luaposix-35.1-1.rockspec"), | 469 | luaposix = if_platform("unix", "./binary/luaposix-35.1-1.rockspec"), |
469 | luasocket = "luasocket", | 470 | luasocket = "./binary/luasocket-3.1.0-1.rockspec", |
470 | luafilesystem = "luafilesystem", | 471 | luafilesystem = "luafilesystem", |
471 | } | 472 | } |
472 | 473 | ||
diff --git a/binary/luasec-1.0.2-1.rockspec b/binary/luasec-1.3.2-1.rockspec index b6741257..81cb31f2 100644 --- a/binary/luasec-1.0.2-1.rockspec +++ b/binary/luasec-1.3.2-1.rockspec | |||
@@ -1,8 +1,8 @@ | |||
1 | package = "LuaSec" | 1 | package = "LuaSec" |
2 | version = "1.0.2-1" | 2 | version = "1.3.2-1" |
3 | source = { | 3 | source = { |
4 | url = "git://github.com/brunoos/luasec", | 4 | url = "git+https://github.com/brunoos/luasec", |
5 | tag = "v1.0.2", | 5 | tag = "v1.3.2", |
6 | } | 6 | } |
7 | description = { | 7 | description = { |
8 | summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", | 8 | summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", |
@@ -89,27 +89,10 @@ build = { | |||
89 | "src/options.c", "src/config.c", "src/ec.c", | 89 | "src/options.c", "src/config.c", "src/ec.c", |
90 | "src/x509.c", "src/context.c", "src/ssl.c", | 90 | "src/x509.c", "src/context.c", "src/ssl.c", |
91 | "src/luasocket/buffer.c", "src/luasocket/io.c", | 91 | "src/luasocket/buffer.c", "src/luasocket/io.c", |
92 | "src/luasocket/wsocket.c", "src/luasocket/timeout.c" | 92 | "src/luasocket/timeout.c", "src/luasocket/wsocket.c" |
93 | } | 93 | }, |
94 | } | 94 | }, |
95 | }, | 95 | }, |
96 | patches = { | 96 | }, |
97 | ["lowercase-winsock-h.diff"] = [[ | ||
98 | diff --git a/src/ssl.c b/src/ssl.c | ||
99 | index 95109c4..e5defa8 100644 | ||
100 | --- a/src/ssl.c | ||
101 | +++ b/src/ssl.c | ||
102 | @@ -11,7 +11,7 @@ | ||
103 | #include <string.h> | ||
104 | |||
105 | #if defined(WIN32) | ||
106 | -#include <Winsock2.h> | ||
107 | +#include <winsock2.h> | ||
108 | #endif | ||
109 | |||
110 | #include <openssl/ssl.h> | ||
111 | ]] | ||
112 | } | ||
113 | } | ||
114 | } | 97 | } |
115 | } | 98 | } |
diff --git a/binary/luasocket-3.1.0-1.rockspec b/binary/luasocket-3.1.0-1.rockspec new file mode 100644 index 00000000..dd9e6364 --- /dev/null +++ b/binary/luasocket-3.1.0-1.rockspec | |||
@@ -0,0 +1,135 @@ | |||
1 | package = "LuaSocket" | ||
2 | version = "3.1.0-1" | ||
3 | source = { | ||
4 | url = "git+https://github.com/lunarmodules/luasocket.git", | ||
5 | tag = "v3.1.0" | ||
6 | } | ||
7 | description = { | ||
8 | summary = "Network support for the Lua language", | ||
9 | detailed = [[ | ||
10 | LuaSocket is a Lua extension library composed of two parts: a set of C | ||
11 | modules that provide support for the TCP and UDP transport layers, and a | ||
12 | set of Lua modules that provide functions commonly needed by applications | ||
13 | that deal with the Internet. | ||
14 | ]], | ||
15 | homepage = "https://github.com/lunarmodules/luasocket", | ||
16 | license = "MIT" | ||
17 | } | ||
18 | dependencies = { | ||
19 | "lua >= 5.1" | ||
20 | } | ||
21 | |||
22 | local function make_plat(plat) | ||
23 | local defines = { | ||
24 | unix = { | ||
25 | "LUASOCKET_DEBUG" | ||
26 | }, | ||
27 | macosx = { | ||
28 | "LUASOCKET_DEBUG", | ||
29 | "UNIX_HAS_SUN_LEN" | ||
30 | }, | ||
31 | win32 = { | ||
32 | "LUASOCKET_DEBUG", | ||
33 | "NDEBUG" | ||
34 | }, | ||
35 | mingw32 = { | ||
36 | "LUASOCKET_DEBUG", | ||
37 | "LUASOCKET_INET_PTON", | ||
38 | "WINVER=0x0501" | ||
39 | } | ||
40 | } | ||
41 | local modules = { | ||
42 | ["socket.core"] = { | ||
43 | sources = { | ||
44 | "src/luasocket.c" | ||
45 | , "src/timeout.c" | ||
46 | , "src/buffer.c" | ||
47 | , "src/io.c" | ||
48 | , "src/auxiliar.c" | ||
49 | , "src/options.c" | ||
50 | , "src/inet.c" | ||
51 | , "src/except.c" | ||
52 | , "src/select.c" | ||
53 | , "src/tcp.c" | ||
54 | , "src/udp.c" | ||
55 | , "src/compat.c" }, | ||
56 | defines = defines[plat], | ||
57 | incdir = "/src" | ||
58 | }, | ||
59 | ["mime.core"] = { | ||
60 | sources = { "src/mime.c", "src/compat.c" }, | ||
61 | defines = defines[plat], | ||
62 | incdir = "/src" | ||
63 | }, | ||
64 | ["socket.http"] = "src/http.lua", | ||
65 | ["socket.url"] = "src/url.lua", | ||
66 | ["socket.tp"] = "src/tp.lua", | ||
67 | ["socket.ftp"] = "src/ftp.lua", | ||
68 | ["socket.headers"] = "src/headers.lua", | ||
69 | ["socket.smtp"] = "src/smtp.lua", | ||
70 | ltn12 = "src/ltn12.lua", | ||
71 | socket = "src/socket.lua", | ||
72 | mime = "src/mime.lua" | ||
73 | } | ||
74 | if plat == "unix" | ||
75 | or plat == "macosx" | ||
76 | or plat == "haiku" | ||
77 | then | ||
78 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c" | ||
79 | if plat == "haiku" then | ||
80 | modules["socket.core"].libraries = {"network"} | ||
81 | end | ||
82 | modules["socket.unix"] = { | ||
83 | sources = { | ||
84 | "src/buffer.c" | ||
85 | , "src/compat.c" | ||
86 | , "src/auxiliar.c" | ||
87 | , "src/options.c" | ||
88 | , "src/timeout.c" | ||
89 | , "src/io.c" | ||
90 | , "src/usocket.c" | ||
91 | , "src/unix.c" | ||
92 | , "src/unixdgram.c" | ||
93 | , "src/unixstream.c" }, | ||
94 | defines = defines[plat], | ||
95 | incdir = "/src" | ||
96 | } | ||
97 | modules["socket.serial"] = { | ||
98 | sources = { | ||
99 | "src/buffer.c" | ||
100 | , "src/compat.c" | ||
101 | , "src/auxiliar.c" | ||
102 | , "src/options.c" | ||
103 | , "src/timeout.c" | ||
104 | , "src/io.c" | ||
105 | , "src/usocket.c" | ||
106 | , "src/serial.c" }, | ||
107 | defines = defines[plat], | ||
108 | incdir = "/src" | ||
109 | } | ||
110 | end | ||
111 | if plat == "win32" | ||
112 | or plat == "mingw32" | ||
113 | then | ||
114 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c" | ||
115 | modules["socket.core"].libraries = { "ws2_32" } | ||
116 | modules["socket.core"].libdirs = {} | ||
117 | end | ||
118 | return { modules = modules } | ||
119 | end | ||
120 | |||
121 | build = { | ||
122 | type = "builtin", | ||
123 | platforms = { | ||
124 | unix = make_plat("unix"), | ||
125 | macosx = make_plat("macosx"), | ||
126 | haiku = make_plat("haiku"), | ||
127 | win32 = make_plat("win32"), | ||
128 | mingw32 = make_plat("mingw32") | ||
129 | }, | ||
130 | copy_directories = { | ||
131 | "docs" | ||
132 | , "samples" | ||
133 | , "etc" | ||
134 | , "test" } | ||
135 | } | ||