openresty.sh 450 B

12345678910111213141516
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/openresty-1.7.7.1.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_depends nginx lua
  5. fw_get http://openresty.org/download/ngx_openresty-1.7.7.1.tar.gz
  6. fw_untar ngx_openresty-1.7.7.1.tar.gz
  7. cd ngx_openresty-1.7.7.1
  8. ./configure --with-luajit-xcflags=-DLUAJIT_NUMMODE=2 --with-http_postgres_module --prefix=${IROOT}/openresty-1.7.7.1 -j4
  9. make -j4
  10. make install
  11. touch ${IROOT}/openresty-1.7.7.1.installed