Mercurial > prosody-hg
comparison util/dependencies.lua @ 12286:ad88732eea51
util.dependencies: Refer to 'apt' instead of 'apt-get'
The more modern and user friendly frontend, should be in every supported
version of Debian and Ubuntu by now
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 13 Feb 2022 17:27:29 +0100 |
| parents | 02481502c3dc |
| children | 49739369dcad |
comparison
equal
deleted
inserted
replaced
| 12285:ed23bbf3b946 | 12286:ad88732eea51 |
|---|---|
| 44 | 44 |
| 45 local lxp, err = softreq "lxp" | 45 local lxp, err = softreq "lxp" |
| 46 | 46 |
| 47 if not lxp then | 47 if not lxp then |
| 48 missingdep("luaexpat", { | 48 missingdep("luaexpat", { |
| 49 { "Debian/Ubuntu", "sudo apt-get install lua-expat" }; | 49 { "Debian/Ubuntu", "sudo apt install lua-expat" }; |
| 50 { "luarocks", "luarocks install luaexpat" }; | 50 { "luarocks", "luarocks install luaexpat" }; |
| 51 { "Source", "http://matthewwild.co.uk/projects/luaexpat/" }; | 51 { "Source", "http://matthewwild.co.uk/projects/luaexpat/" }; |
| 52 }, nil, err); | 52 }, nil, err); |
| 53 fatal = true; | 53 fatal = true; |
| 54 end | 54 end |
| 55 | 55 |
| 56 local socket, err = softreq "socket" | 56 local socket, err = softreq "socket" |
| 57 | 57 |
| 58 if not socket then | 58 if not socket then |
| 59 missingdep("luasocket", { | 59 missingdep("luasocket", { |
| 60 { "Debian/Ubuntu", "sudo apt-get install lua-socket" }; | 60 { "Debian/Ubuntu", "sudo apt install lua-socket" }; |
| 61 { "luarocks", "luarocks install luasocket" }; | 61 { "luarocks", "luarocks install luasocket" }; |
| 62 { "Source", "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/" }; | 62 { "Source", "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/" }; |
| 63 }, nil, err); | 63 }, nil, err); |
| 64 fatal = true; | 64 fatal = true; |
| 65 elseif not socket.tcp4 then | 65 elseif not socket.tcp4 then |
| 70 | 70 |
| 71 local lfs, err = softreq "lfs" | 71 local lfs, err = softreq "lfs" |
| 72 if not lfs then | 72 if not lfs then |
| 73 missingdep("luafilesystem", { | 73 missingdep("luafilesystem", { |
| 74 { "luarocks", "luarocks install luafilesystem" }; | 74 { "luarocks", "luarocks install luafilesystem" }; |
| 75 { "Debian/Ubuntu", "sudo apt-get install lua-filesystem" }; | 75 { "Debian/Ubuntu", "sudo apt install lua-filesystem" }; |
| 76 { "Source", "http://www.keplerproject.org/luafilesystem/" }; | 76 { "Source", "http://www.keplerproject.org/luafilesystem/" }; |
| 77 }, nil, err); | 77 }, nil, err); |
| 78 fatal = true; | 78 fatal = true; |
| 79 end | 79 end |
| 80 | 80 |
| 81 local ssl, err = softreq "ssl" | 81 local ssl, err = softreq "ssl" |
| 82 | 82 |
| 83 if not ssl then | 83 if not ssl then |
| 84 missingdep("LuaSec", { | 84 missingdep("LuaSec", { |
| 85 { "Debian/Ubuntu", "sudo apt-get install lua-sec" }; | 85 { "Debian/Ubuntu", "sudo apt install lua-sec" }; |
| 86 { "luarocks", "luarocks install luasec" }; | 86 { "luarocks", "luarocks install luasec" }; |
| 87 { "Source", "https://github.com/brunoos/luasec" }; | 87 { "Source", "https://github.com/brunoos/luasec" }; |
| 88 }, "SSL/TLS support will not be available", err); | 88 }, "SSL/TLS support will not be available", err); |
| 89 end | 89 end |
| 90 | 90 |
| 91 local bit, err = softreq"util.bitcompat"; | 91 local bit, err = softreq"util.bitcompat"; |
| 92 | 92 |
| 93 if not bit then | 93 if not bit then |
| 94 missingdep("lua-bitops", { | 94 missingdep("lua-bitops", { |
| 95 { "Debian/Ubuntu", "sudo apt-get install lua-bitop" }; | 95 { "Debian/Ubuntu", "sudo apt install lua-bitop" }; |
| 96 { "luarocks", "luarocks install luabitop" }; | 96 { "luarocks", "luarocks install luabitop" }; |
| 97 { "Source", "http://bitop.luajit.org/" }; | 97 { "Source", "http://bitop.luajit.org/" }; |
| 98 }, "WebSocket support will not be available", err); | 98 }, "WebSocket support will not be available", err); |
| 99 end | 99 end |
| 100 | 100 |
| 101 local unbound, err = softreq"lunbound"; -- luacheck: ignore 211/err | 101 local unbound, err = softreq"lunbound"; -- luacheck: ignore 211/err |
| 102 if not unbound then | 102 if not unbound then |
| 103 missingdep("lua-unbound", { | 103 missingdep("lua-unbound", { |
| 104 { "Debian/Ubuntu", "sudo apt-get install lua-unbound" }; | 104 { "Debian/Ubuntu", "sudo apt install lua-unbound" }; |
| 105 { "luarocks", "luarocks install luaunbound" }; | 105 { "luarocks", "luarocks install luaunbound" }; |
| 106 { "Source", "https://www.zash.se/luaunbound.html" }; | 106 { "Source", "https://www.zash.se/luaunbound.html" }; |
| 107 }, "Old DNS resolver library will be used", err); | 107 }, "Old DNS resolver library will be used", err); |
| 108 else | 108 else |
| 109 package.preload["net.adns"] = function () | 109 package.preload["net.adns"] = function () |
