Software /
code /
prosody
Comparison
util/dependencies.lua @ 2157:7cb0aa497326
util.dependencies: Clearer message, add homepages, etc.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Nov 2009 18:51:54 +0000 |
parent | 2156:a6608ccab383 |
child | 2158:575d5db7f14f |
comparison
equal
deleted
inserted
replaced
2156:a6608ccab383 | 2157:7cb0aa497326 |
---|---|
28 end | 28 end |
29 | 29 |
30 local lxp = softreq "lxp" | 30 local lxp = softreq "lxp" |
31 | 31 |
32 if not lxp then | 32 if not lxp then |
33 missingdep("luaexpat", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-expat0"; ["luarocks"] = "luarocks install luaexpat"; }); | 33 missingdep("luaexpat", { |
34 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-expat0"; | |
35 ["luarocks"] = "luarocks install luaexpat"; | |
36 ["Source"] = "http://www.keplerproject.org/luaexpat/"; | |
37 }); | |
34 fatal = true; | 38 fatal = true; |
35 end | 39 end |
36 | 40 |
37 local socket = softreq "socket" | 41 local socket = softreq "socket" |
38 | 42 |
39 if not socket then | 43 if not socket then |
40 missingdep("luasocket", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-socket2"; ["luarocks"] = "luarocks install luasocket"; }); | 44 missingdep("luasocket", { |
45 ["Ubuntu"] = "sudo apt-get install liblua5.1-socket2"; | |
46 ["luarocks"] = "luarocks install luasocket"; | |
47 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"; | |
48 }); | |
41 fatal = true; | 49 fatal = true; |
42 end | 50 end |
43 | 51 |
44 local lfs, err = softreq "lfs" | 52 local lfs, err = softreq "lfs" |
45 if not lfs then | 53 if not lfs then |
46 missingdep("luafilesystem", { ["luarocks"] = "luarocks install luafilesystem"; | 54 missingdep("luafilesystem", { |
47 ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-luafilesystem0"; | 55 ["luarocks"] = "luarocks install luafilesystem"; |
48 ["Source"] = "http://www.keplerproject.org/luafilesystem/"; | 56 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-luafilesystem0"; |
49 }); | 57 ["Source"] = "http://www.keplerproject.org/luafilesystem/"; |
58 }); | |
50 fatal = true; | 59 fatal = true; |
51 end | 60 end |
52 | 61 |
53 local ssl = softreq "ssl" | 62 local ssl = softreq "ssl" |
54 | 63 |
55 if not ssl then | 64 if not ssl then |
56 if config.get("*", "core", "run_without_ssl") then | 65 if config.get("*", "core", "run_without_ssl") then |
57 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); | 66 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); |
58 else | 67 else |
59 missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available"); | 68 missingdep("LuaSec", { |
69 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; | |
70 ["luarocks"] = "luarocks install luasec"; | |
71 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | |
72 }, "SSL/TLS support will not be available"); | |
60 end | 73 end |
61 end | 74 end |
62 | 75 |
63 local encodings, err = softreq "util.encodings" | 76 local encodings, err = softreq "util.encodings" |
64 if not encodings then | 77 if not encodings then |