Software /
code /
prosody
Comparison
util/dependencies.lua @ 2562:f321211978f6
util.dependencies: Don't query the config (it isn't really necessary)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Feb 2010 13:52:01 +0000 |
parent | 2513:a8aa7616b154 |
child | 2925:692b3c6c5bd2 |
comparison
equal
deleted
inserted
replaced
2561:e7bec4072c61 | 2562:f321211978f6 |
---|---|
71 end | 71 end |
72 | 72 |
73 local ssl = softreq "ssl" | 73 local ssl = softreq "ssl" |
74 | 74 |
75 if not ssl then | 75 if not ssl then |
76 if config.get("*", "core", "run_without_ssl") then | 76 missingdep("LuaSec", { |
77 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); | 77 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
78 else | 78 ["luarocks"] = "luarocks install luasec"; |
79 missingdep("LuaSec", { | 79 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
80 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; | 80 }, "SSL/TLS support will not be available"); |
81 ["luarocks"] = "luarocks install luasec"; | |
82 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | |
83 }, "SSL/TLS support will not be available"); | |
84 end | |
85 else | 81 else |
86 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); | 82 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
87 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then | 83 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |
88 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); | 84 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); |
89 end | 85 end |