2017-09-26 23:24:16 +02:00
package = "LuaSec"
2022-07-30 13:42:53 +02:00
version = "1.2.0-1"
2019-10-31 15:39:37 +01:00
source = {
2022-04-13 15:46:36 +02:00
url = "git+https://github.com/brunoos/luasec",
2022-07-30 13:42:53 +02:00
tag = "v1.2.0",
2019-10-31 15:39:37 +01:00
}
2017-09-26 23:24:16 +02:00
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",
}
},
}
}
build = {
type = "builtin",
copy_directories = {
"samples"
},
platforms = {
unix = {
install = {
lib = {
"ssl.so"
},
lua = {
"src/ssl.lua", ['ssl.https'] = "src/https.lua"
}
},
modules = {
ssl = {
2017-12-21 15:33:47 +01:00
defines = {
"WITH_LUASOCKET", "LUASOCKET_DEBUG",
},
2017-09-26 23:24:16 +02:00
incdirs = {
"$(OPENSSL_INCDIR)", "src/", "src/luasocket",
},
libdirs = {
"$(OPENSSL_LIBDIR)"
},
libraries = {
"ssl", "crypto"
},
sources = {
2019-10-09 19:49:58 +02:00
"src/options.c", "src/config.c", "src/ec.c",
2017-09-26 23:24:16 +02:00
"src/x509.c", "src/context.c", "src/ssl.c",
"src/luasocket/buffer.c", "src/luasocket/io.c",
"src/luasocket/timeout.c", "src/luasocket/usocket.c"
}
}
}
},
windows = {
install = {
lib = {
"ssl.dll"
},
lua = {
"src/ssl.lua", ['ssl.https'] = "src/https.lua"
}
},
modules = {
ssl = {
defines = {
"WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)",
2017-12-21 15:33:47 +01:00
"WITH_LUASOCKET", "LUASOCKET_DEBUG",
2017-09-26 23:24:16 +02:00
"LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300"
},
libdirs = {
"$(OPENSSL_LIBDIR)",
"$(OPENSSL_BINDIR)",
},
libraries = {
2023-03-14 14:37:42 +01:00
"libssl", "libcrypto", "ws2_32"
2017-09-26 23:24:16 +02:00
},
incdirs = {
"$(OPENSSL_INCDIR)", "src/", "src/luasocket"
},
sources = {
2019-10-09 19:49:58 +02:00
"src/options.c", "src/config.c", "src/ec.c",
2017-09-26 23:24:16 +02:00
"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"
}
}
}
}
}
}