|
| 1 | + |
| 2 | +package="heroku-openresty" |
| 3 | +version="1.2.8.6-1" |
| 4 | + |
| 5 | +source= { |
| 6 | +url="git://github.com/leafo/heroku-openresty.git", |
| 7 | +branch="v1.2.8.6" |
| 8 | +} |
| 9 | + |
| 10 | +description= { |
| 11 | +summary="OpenResty binaries for running on Heroku with the Lua buildpack", |
| 12 | +license="MIT" |
| 13 | +} |
| 14 | + |
| 15 | +dependencies= { |
| 16 | +"lua >= 5.1" |
| 17 | +} |
| 18 | + |
| 19 | +build= { |
| 20 | +type="command", |
| 21 | +install_command=[[ |
| 22 | +LIB_DIR=`cd $(PREFIX)/../../../../; pwd` |
| 23 | +cp luajit/lib/libluajit-5.1.so.2.0.2 "$LIB_DIR" |
| 24 | +( |
| 25 | +cd "$LIB_DIR" |
| 26 | +ln -s libluajit-5.1.so.2.0.2 libluajit-5.1.so.2 |
| 27 | +ln -s libluajit-5.1.so.2.0.2 libluajit-5.1.so |
| 28 | +) |
| 29 | +]], |
| 30 | +install= { |
| 31 | +bin= { |
| 32 | +"nginx/sbin/nginx", |
| 33 | + |
| 34 | +"bin/compile_nginx_config.lua", |
| 35 | +"bin/start_nginx.sh" |
| 36 | +}, |
| 37 | +lib= { |
| 38 | +["rds.parser"]="lualib/rds/parser.so", |
| 39 | +["redis.parser"]="lualib/redis/parser.so", |
| 40 | +["cjson"]="lualib/cjson.so", |
| 41 | +}, |
| 42 | +lua= { |
| 43 | +["resty.aes"]="lualib/resty/aes.lua", |
| 44 | +["resty.dns.resolver"]="lualib/resty/dns/resolver.lua", |
| 45 | +["resty.md5"]="lualib/resty/md5.lua", |
| 46 | +["resty.memcached"]="lualib/resty/memcached.lua", |
| 47 | +["resty.mysql"]="lualib/resty/mysql.lua", |
| 48 | +["resty.random"]="lualib/resty/random.lua", |
| 49 | +["resty.redis"]="lualib/resty/redis.lua", |
| 50 | +["resty.sha"]="lualib/resty/sha.lua", |
| 51 | +["resty.sha1"]="lualib/resty/sha1.lua", |
| 52 | +["resty.sha224"]="lualib/resty/sha224.lua", |
| 53 | +["resty.sha256"]="lualib/resty/sha256.lua", |
| 54 | +["resty.sha384"]="lualib/resty/sha384.lua", |
| 55 | +["resty.sha512"]="lualib/resty/sha512.lua", |
| 56 | +["resty.string"]="lualib/resty/string.lua", |
| 57 | +["resty.upload"]="lualib/resty/upload.lua", |
| 58 | +}, |
| 59 | +} |
| 60 | +} |