Software /
code /
prosody
Comparison
util/dependencies.lua @ 10963:80733851be8b
util.dependencies: Add awareness of luaunbound
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 25 Jun 2020 17:26:21 +0200 |
parent | 10906:a1fed82c44b9 |
child | 10965:f5d5fc409680 |
comparison
equal
deleted
inserted
replaced
10962:92f30e8ecdfc | 10963:80733851be8b |
---|---|
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"; | |
102 if not unbound then | |
103 missingdep("lua-unbound", { | |
104 { "luarocks", "luarocks install luaunbound" }; | |
105 { "Source", "https://www.zash.se/luaunbound.html" }; | |
106 }, "Old DNS resolver library will be used", err); | |
107 end | |
108 | |
101 local encodings, err = softreq "util.encodings" | 109 local encodings, err = softreq "util.encodings" |
102 if not encodings then | 110 if not encodings then |
103 if err:match("module '[^']*' not found") then | 111 if err:match("module '[^']*' not found") then |
104 missingdep("util.encodings", { | 112 missingdep("util.encodings", { |
105 { "Windows", "Make sure you have encodings.dll from the Prosody distribution in util/" }; | 113 { "Windows", "Make sure you have encodings.dll from the Prosody distribution in util/" }; |