Mercurial > prosody-hg
comparison util/dependencies.lua @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | a7903de619b0 |
| children | 29c1a3bf1d29 |
comparison
equal
deleted
inserted
replaced
| 10410:659b577f280c | 10411:db2a06b9ff98 |
|---|---|
| 88 ["luarocks"] = "luarocks install luasec"; | 88 ["luarocks"] = "luarocks install luasec"; |
| 89 ["Source"] = "https://github.com/brunoos/luasec"; | 89 ["Source"] = "https://github.com/brunoos/luasec"; |
| 90 }, "SSL/TLS support will not be available"); | 90 }, "SSL/TLS support will not be available"); |
| 91 end | 91 end |
| 92 | 92 |
| 93 local bit = _G.bit32 or softreq"bit"; | 93 local bit = softreq"util.bitcompat"; |
| 94 | 94 |
| 95 if not bit then | 95 if not bit then |
| 96 missingdep("lua-bitops", { | 96 missingdep("lua-bitops", { |
| 97 ["Debian/Ubuntu"] = "sudo apt-get install lua-bitop"; | 97 ["Debian/Ubuntu"] = "sudo apt-get install lua-bitop"; |
| 98 ["luarocks"] = "luarocks install luabitop"; | 98 ["luarocks"] = "luarocks install luabitop"; |
| 138 | 138 |
| 139 return not fatal; | 139 return not fatal; |
| 140 end | 140 end |
| 141 | 141 |
| 142 local function log_warnings() | 142 local function log_warnings() |
| 143 if _VERSION > "Lua 5.2" then | 143 if _VERSION > "Lua 5.3" then |
| 144 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); | 144 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); |
| 145 end | 145 end |
| 146 local ssl = softreq"ssl"; | 146 local ssl = softreq"ssl"; |
| 147 if ssl then | 147 if ssl then |
| 148 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); | 148 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
