-
Notifications
You must be signed in to change notification settings - Fork 23
/
heroku-openresty-dev-2.rockspec
78 lines (73 loc) · 2.61 KB
/
heroku-openresty-dev-2.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package = "heroku-openresty"
version = "dev-2"
source = {
url = "git://github.com/leafo/heroku-openresty.git"
}
description = {
summary = "OpenResty binaries for running on Heroku with the Lua buildpack",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "command",
install_command = [[
LIB_DIR=`cd $(PREFIX)/../../../../; pwd`
BIN_DIR=`cd $LIB_DIR/../../bin; pwd`
STACK=${STACK:-cedar}
cp luajit/lib/libluajit-5.1.so.2.1.0 "$LIB_DIR"
(
cd "$LIB_DIR"
ln -s libluajit-5.1.so.2.1.0 libluajit-5.1.so.2
ln -s libluajit-5.1.so.2.1.0 libluajit-5.1.so
)
cp nginx/sbin/$STACK/nginx "$BIN_DIR"
]],
install = {
bin = {
"bin/compile_nginx_config.lua",
"bin/start_nginx.sh"
},
lib = {
["rds.parser"] = "lualib/rds/parser.so",
["redis.parser"] = "lualib/redis/parser.so",
["cjson"] = "lualib/cjson.so",
},
lua = {
["resty.aes"] = "lualib/resty/aes.lua",
["resty.core"] = "lualib/resty/core.lua",
["resty.core.base"] = "lualib/resty/core/base.lua",
["resty.core.base64"] = "lualib/resty/core/base64.lua",
["resty.core.ctx"] = "lualib/resty/core/ctx.lua",
["resty.core.exit"] = "lualib/resty/core/exit.lua",
["resty.core.hash"] = "lualib/resty/core/hash.lua",
["resty.core.misc"] = "lualib/resty/core/misc.lua",
["resty.core.regex"] = "lualib/resty/core/regex.lua",
["resty.core.request"] = "lualib/resty/core/request.lua",
["resty.core.response"] = "lualib/resty/core/response.lua",
["resty.core.shdict"] = "lualib/resty/core/shdict.lua",
["resty.core.uri"] = "lualib/resty/core/uri.lua",
["resty.core.var"] = "lualib/resty/core/var.lua",
["resty.dns.resolver"] = "lualib/resty/dns/resolver.lua",
["resty.lock"] = "lualib/resty/lock.lua",
["resty.md5"] = "lualib/resty/md5.lua",
["resty.memcached"] = "lualib/resty/memcached.lua",
["resty.mysql"] = "lualib/resty/mysql.lua",
["resty.random"] = "lualib/resty/random.lua",
["resty.redis"] = "lualib/resty/redis.lua",
["resty.sha"] = "lualib/resty/sha.lua",
["resty.sha1"] = "lualib/resty/sha1.lua",
["resty.sha224"] = "lualib/resty/sha224.lua",
["resty.sha256"] = "lualib/resty/sha256.lua",
["resty.sha384"] = "lualib/resty/sha384.lua",
["resty.sha512"] = "lualib/resty/sha512.lua",
["resty.string"] = "lualib/resty/string.lua",
["resty.upload"] = "lualib/resty/upload.lua",
["resty.upstream.healthcheck"] = "lualib/resty/upstream/healthcheck.lua",
["resty.websocket.client"] = "lualib/resty/websocket/client.lua",
["resty.websocket.protocol"] = "lualib/resty/websocket/protocol.lua",
["resty.websocket.server"] = "lualib/resty/websocket/server.lua",
},
}
}