summaryrefslogtreecommitdiff
path: root/binary/luasec-1.3.2-1.rockspec
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2025-02-03 21:29:42 +0100
committerMike Vink <mike@pionative.com>2025-02-03 21:29:42 +0100
commit5155816b7b925dec5d5feb1568b1d7ceb00938b9 (patch)
treedeca28ea15e79f6f804c3d90d2ba757881638af5 /binary/luasec-1.3.2-1.rockspec
fetch tarballHEADmaster
Diffstat (limited to 'binary/luasec-1.3.2-1.rockspec')
-rw-r--r--binary/luasec-1.3.2-1.rockspec98
1 files changed, 98 insertions, 0 deletions
diff --git a/binary/luasec-1.3.2-1.rockspec b/binary/luasec-1.3.2-1.rockspec
new file mode 100644
index 0000000..81cb31f
--- /dev/null
+++ b/binary/luasec-1.3.2-1.rockspec
@@ -0,0 +1,98 @@
+package = "LuaSec"
+version = "1.3.2-1"
+source = {
+ url = "git+https://github.com/brunoos/luasec",
+ tag = "v1.3.2",
+}
+description = {
+ summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.",
+ detailed = "This version delegates to LuaSocket the TCP connection establishment between the client and server. Then LuaSec uses this connection to start a secure TLS/SSL session.",
+ homepage = "https://github.com/brunoos/luasec/wiki",
+ license = "MIT"
+}
+dependencies = {
+ "lua >= 5.1", "luasocket"
+}
+external_dependencies = {
+ platforms = {
+ unix = {
+ OPENSSL = {
+ header = "openssl/ssl.h",
+ library = "ssl"
+ }
+ },
+ windows = {
+ OPENSSL = {
+ header = "openssl/ssl.h",
+ }
+ },
+ mingw32 = {
+ OPENSSL = {
+ library = "ssl",
+ }
+ },
+ }
+}
+build = {
+ type = "builtin",
+ copy_directories = {
+ "samples"
+ },
+ platforms = {
+ unix = {
+ modules = {
+ ['ssl.https'] = "src/https.lua",
+ ['ssl.init'] = "src/ssl.lua",
+ ssl = {
+ defines = {
+ "WITH_LUASOCKET", "LUASOCKET_DEBUG",
+ },
+ incdirs = {
+ "$(OPENSSL_INCDIR)", "src/", "src/luasocket",
+ },
+ libdirs = {
+ "$(OPENSSL_LIBDIR)"
+ },
+ libraries = {
+ "ssl", "crypto"
+ },
+ sources = {
+ "src/options.c", "src/config.c", "src/ec.c",
+ "src/x509.c", "src/context.c", "src/ssl.c",
+ "src/luasocket/buffer.c", "src/luasocket/io.c",
+ "src/luasocket/usocket.c" -- , "src/luasocket/timeout.c"
+ }
+ }
+ }
+ },
+ windows = {
+ modules = {
+ ['ssl.https'] = "src/https.lua",
+ ['ssl.init'] = "src/ssl.lua",
+ ssl = {
+ defines = {
+ "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)",
+ "WITH_LUASOCKET", "LUASOCKET_DEBUG",
+ "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300"
+ },
+ libdirs = {
+ "$(OPENSSL_LIBDIR)",
+ "$(OPENSSL_BINDIR)",
+ },
+ libraries = {
+ "ssl", "crypto", "ws2_32"
+ },
+ incdirs = {
+ "$(OPENSSL_INCDIR)", "src/", "src/luasocket"
+ },
+ sources = {
+ "src/options.c", "src/config.c", "src/ec.c",
+ "src/x509.c", "src/context.c", "src/ssl.c",
+ "src/luasocket/buffer.c", "src/luasocket/io.c",
+ "src/luasocket/timeout.c", "src/luasocket/wsocket.c"
+ },
+ },
+ },
+ },
+ }
+}