Mercurial > prosody-hg
comparison util/dependencies.lua @ 2156:a6608ccab383
util.dependencies: Add LuaFileSystem as a hard dependency
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 23 Nov 2009 17:31:49 +0000 |
| parents | 841d61be198f |
| children | 7cb0aa497326 |
comparison
equal
deleted
inserted
replaced
| 2090:7810648ea26d | 2156:a6608ccab383 |
|---|---|
| 39 if not socket then | 39 if not socket then |
| 40 missingdep("luasocket", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-socket2"; ["luarocks"] = "luarocks install luasocket"; }); | 40 missingdep("luasocket", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-socket2"; ["luarocks"] = "luarocks install luasocket"; }); |
| 41 fatal = true; | 41 fatal = true; |
| 42 end | 42 end |
| 43 | 43 |
| 44 local lfs, err = softreq "lfs" | |
| 45 if not lfs then | |
| 46 missingdep("luafilesystem", { ["luarocks"] = "luarocks install luafilesystem"; | |
| 47 ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-luafilesystem0"; | |
| 48 ["Source"] = "http://www.keplerproject.org/luafilesystem/"; | |
| 49 }); | |
| 50 fatal = true; | |
| 51 end | |
| 52 | |
| 44 local ssl = softreq "ssl" | 53 local ssl = softreq "ssl" |
| 45 | 54 |
| 46 if not ssl then | 55 if not ssl then |
| 47 if config.get("*", "core", "run_without_ssl") then | 56 if config.get("*", "core", "run_without_ssl") then |
| 48 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); | 57 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); |
