summaryrefslogtreecommitdiff
path: root/user/prosody/luasec-0.6-fix.patch
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-10-09 17:03:32 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-10-09 21:37:43 -0500
commitcef60d848566b56692a9604df7c4e53c8b5605c6 (patch)
treee268762465cb0e967a52f3c9fb046616ef674e8a /user/prosody/luasec-0.6-fix.patch
parent5b5c7a6c1cdb7f83682201c8521c31e7e35ce6db (diff)
downloadpackages-cef60d848566b56692a9604df7c4e53c8b5605c6.tar.gz
packages-cef60d848566b56692a9604df7c4e53c8b5605c6.tar.bz2
packages-cef60d848566b56692a9604df7c4e53c8b5605c6.tar.xz
packages-cef60d848566b56692a9604df7c4e53c8b5605c6.zip
user/prosody: new package
Diffstat (limited to 'user/prosody/luasec-0.6-fix.patch')
-rw-r--r--user/prosody/luasec-0.6-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/prosody/luasec-0.6-fix.patch b/user/prosody/luasec-0.6-fix.patch
new file mode 100644
index 000000000..c8e37d091
--- /dev/null
+++ b/user/prosody/luasec-0.6-fix.patch
@@ -0,0 +1,14 @@
+diff --git a/util/dependencies.lua b/util/dependencies.lua
+index 4d50cf6..9ea211d 100644
+--- a/util/dependencies.lua
++++ b/util/dependencies.lua
+@@ -99,6 +99,9 @@ function check_dependencies()
+ ["luarocks"] = "luarocks install luasec";
+ ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
+ }, "SSL/TLS support will not be available");
++ elseif not _G.ssl then
++ _G.ssl = ssl;
++ _G.ssl.context = require "ssl.context";
+ end
+
+ local encodings, err = softreq "util.encodings"