Mercurial > prosody-hg
comparison util/dependencies.lua @ 5776:bd0ff8ae98a8
Remove all trailing whitespace
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Fri, 09 Aug 2013 17:48:21 +0200 |
| parents | ee65aa40ef60 |
| children | fb6573e191cf |
comparison
equal
deleted
inserted
replaced
| 5775:a6c2b8933507 | 5776:bd0ff8ae98a8 |
|---|---|
| 1 -- Prosody IM | 1 -- Prosody IM |
| 2 -- Copyright (C) 2008-2010 Matthew Wild | 2 -- Copyright (C) 2008-2010 Matthew Wild |
| 3 -- Copyright (C) 2008-2010 Waqas Hussain | 3 -- Copyright (C) 2008-2010 Waqas Hussain |
| 4 -- | 4 -- |
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | 8 |
| 9 module("dependencies", package.seeall) | 9 module("dependencies", package.seeall) |
| 33 print("More help can be found on our website, at http://prosody.im/doc/depends"); | 33 print("More help can be found on our website, at http://prosody.im/doc/depends"); |
| 34 print("**************************"); | 34 print("**************************"); |
| 35 print(""); | 35 print(""); |
| 36 end | 36 end |
| 37 | 37 |
| 38 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use | 38 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use |
| 39 -- util.ztact, which has been removed from Prosody in 0.8. This | 39 -- util.ztact, which has been removed from Prosody in 0.8. This |
| 40 -- is to log an error for people who still use it, so they can | 40 -- is to log an error for people who still use it, so they can |
| 41 -- update their configs. | 41 -- update their configs. |
| 42 package.preload["util.ztact"] = function () | 42 package.preload["util.ztact"] = function () |
| 43 if not package.loaded["core.loggingmanager"] then | 43 if not package.loaded["core.loggingmanager"] then |
| 48 end | 48 end |
| 49 end; | 49 end; |
| 50 | 50 |
| 51 function check_dependencies() | 51 function check_dependencies() |
| 52 local fatal; | 52 local fatal; |
| 53 | 53 |
| 54 local lxp = softreq "lxp" | 54 local lxp = softreq "lxp" |
| 55 | 55 |
| 56 if not lxp then | 56 if not lxp then |
| 57 missingdep("luaexpat", { | 57 missingdep("luaexpat", { |
| 58 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-expat0"; | 58 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-expat0"; |
| 59 ["luarocks"] = "luarocks install luaexpat"; | 59 ["luarocks"] = "luarocks install luaexpat"; |
| 60 ["Source"] = "http://www.keplerproject.org/luaexpat/"; | 60 ["Source"] = "http://www.keplerproject.org/luaexpat/"; |
| 61 }); | 61 }); |
| 62 fatal = true; | 62 fatal = true; |
| 63 end | 63 end |
| 64 | 64 |
| 65 local socket = softreq "socket" | 65 local socket = softreq "socket" |
| 66 | 66 |
| 67 if not socket then | 67 if not socket then |
| 68 missingdep("luasocket", { | 68 missingdep("luasocket", { |
| 69 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-socket2"; | 69 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-socket2"; |
| 70 ["luarocks"] = "luarocks install luasocket"; | 70 ["luarocks"] = "luarocks install luasocket"; |
| 71 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"; | 71 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"; |
| 72 }); | 72 }); |
| 73 fatal = true; | 73 fatal = true; |
| 74 end | 74 end |
| 75 | 75 |
| 76 local lfs, err = softreq "lfs" | 76 local lfs, err = softreq "lfs" |
| 77 if not lfs then | 77 if not lfs then |
| 78 missingdep("luafilesystem", { | 78 missingdep("luafilesystem", { |
| 79 ["luarocks"] = "luarocks install luafilesystem"; | 79 ["luarocks"] = "luarocks install luafilesystem"; |
| 80 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-filesystem0"; | 80 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-filesystem0"; |
| 81 ["Source"] = "http://www.keplerproject.org/luafilesystem/"; | 81 ["Source"] = "http://www.keplerproject.org/luafilesystem/"; |
| 82 }); | 82 }); |
| 83 fatal = true; | 83 fatal = true; |
| 84 end | 84 end |
| 85 | 85 |
| 86 local ssl = softreq "ssl" | 86 local ssl = softreq "ssl" |
| 87 | 87 |
| 88 if not ssl then | 88 if not ssl then |
| 89 missingdep("LuaSec", { | 89 missingdep("LuaSec", { |
| 90 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; | 90 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
| 91 ["luarocks"] = "luarocks install luasec"; | 91 ["luarocks"] = "luarocks install luasec"; |
| 92 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | 92 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
| 93 }, "SSL/TLS support will not be available"); | 93 }, "SSL/TLS support will not be available"); |
| 94 end | 94 end |
| 95 | 95 |
| 96 local encodings, err = softreq "util.encodings" | 96 local encodings, err = softreq "util.encodings" |
| 97 if not encodings then | 97 if not encodings then |
| 98 if err:match("not found") then | 98 if err:match("not found") then |
| 99 missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; | 99 missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; |
| 100 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; | 100 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; |
