aboutsummaryrefslogtreecommitdiffstats
path: root/community/prosody/luasec-0.6-fix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-09-23 14:26:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-09-23 14:29:32 +0000
commit28cc75aceca7209586cb60853f85f3a6a17c4613 (patch)
tree3b2cac79ff4e0be5ee83dc930f3b44ce2807b2c1 /community/prosody/luasec-0.6-fix.patch
parent334aa82ab748b59f8afa8947262d3290535ee93f (diff)
downloadaports-28cc75aceca7209586cb60853f85f3a6a17c4613.tar.bz2
aports-28cc75aceca7209586cb60853f85f3a6a17c4613.tar.xz
community/prosody: fix luasec 0.6 compatibility
ref #5262
Diffstat (limited to 'community/prosody/luasec-0.6-fix.patch')
-rw-r--r--community/prosody/luasec-0.6-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/prosody/luasec-0.6-fix.patch b/community/prosody/luasec-0.6-fix.patch
new file mode 100644
index 0000000000..c8e37d0915
--- /dev/null
+++ b/community/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"