| 1 |
package = "LuaSec" |
| 2 |
version = "1.3.2-1" |
| 3 |
source = { |
| 4 |
url = "git+https://github.com/brunoos/luasec", |
| 5 |
tag = "v1.3.2", |
| 6 |
} |
| 7 |
description = { |
| 8 |
summary = "A binding for OpenSSL library to provide TLS/SSL communication over LuaSocket.", |
| 9 |
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.", |
| 10 |
homepage = "https://github.com/brunoos/luasec/wiki", |
| 11 |
license = "MIT" |
| 12 |
} |
| 13 |
dependencies = { |
| 14 |
"lua >= 5.1", "luasocket" |
| 15 |
} |
| 16 |
external_dependencies = { |
| 17 |
platforms = { |
| 18 |
unix = { |
| 19 |
OPENSSL = { |
| 20 |
header = "openssl/ssl.h", |
| 21 |
library = "ssl" |
| 22 |
} |
| 23 |
}, |
| 24 |
windows = { |
| 25 |
OPENSSL = { |
| 26 |
header = "openssl/ssl.h", |
| 27 |
} |
| 28 |
}, |
| 29 |
} |
| 30 |
} |
| 31 |
build = { |
| 32 |
type = "builtin", |
| 33 |
copy_directories = { |
| 34 |
"samples" |
| 35 |
}, |
| 36 |
platforms = { |
| 37 |
unix = { |
| 38 |
install = { |
| 39 |
lib = { |
| 40 |
"ssl.so" |
| 41 |
}, |
| 42 |
lua = { |
| 43 |
"src/ssl.lua", ['ssl.https'] = "src/https.lua" |
| 44 |
} |
| 45 |
}, |
| 46 |
modules = { |
| 47 |
ssl = { |
| 48 |
defines = { |
| 49 |
"WITH_LUASOCKET", "LUASOCKET_DEBUG", |
| 50 |
}, |
| 51 |
incdirs = { |
| 52 |
"$(OPENSSL_INCDIR)", "src/", "src/luasocket", |
| 53 |
}, |
| 54 |
libdirs = { |
| 55 |
"$(OPENSSL_LIBDIR)" |
| 56 |
}, |
| 57 |
libraries = { |
| 58 |
"ssl", "crypto" |
| 59 |
}, |
| 60 |
sources = { |
| 61 |
"src/options.c", "src/config.c", "src/ec.c", |
| 62 |
"src/x509.c", "src/context.c", "src/ssl.c", |
| 63 |
"src/luasocket/buffer.c", "src/luasocket/io.c", |
| 64 |
"src/luasocket/timeout.c", "src/luasocket/usocket.c" |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
}, |
| 69 |
windows = { |
| 70 |
install = { |
| 71 |
lib = { |
| 72 |
"ssl.dll" |
| 73 |
}, |
| 74 |
lua = { |
| 75 |
"src/ssl.lua", ['ssl.https'] = "src/https.lua" |
| 76 |
} |
| 77 |
}, |
| 78 |
modules = { |
| 79 |
ssl = { |
| 80 |
defines = { |
| 81 |
"WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)", |
| 82 |
"WITH_LUASOCKET", "LUASOCKET_DEBUG", |
| 83 |
"LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300" |
| 84 |
}, |
| 85 |
libdirs = { |
| 86 |
"$(OPENSSL_LIBDIR)", |
| 87 |
"$(OPENSSL_BINDIR)", |
| 88 |
}, |
| 89 |
libraries = { |
| 90 |
"libssl", "libcrypto", "ws2_32" |
| 91 |
}, |
| 92 |
incdirs = { |
| 93 |
"$(OPENSSL_INCDIR)", "src/", "src/luasocket" |
| 94 |
}, |
| 95 |
sources = { |
| 96 |
"src/options.c", "src/config.c", "src/ec.c", |
| 97 |
"src/x509.c", "src/context.c", "src/ssl.c", |
| 98 |
"src/luasocket/buffer.c", "src/luasocket/io.c", |
| 99 |
"src/luasocket/timeout.c", "src/luasocket/wsocket.c" |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
} |