Update nginx dependencies

This commit is contained in:
Manuel de Brito Fontes 2018-05-30 22:30:41 -04:00 committed by Manuel Alejandro de Brito Fontes
parent 0cdb74e123
commit b0643e46f7
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
3 changed files with 10 additions and 10 deletions

View file

@ -30,6 +30,7 @@ if [[ ${ARCH} != "x86_64" ]]; then
sed -i 's/CFLAGS = -msse2 -msse3 -msse4.1 -O3/CFLAGS = -O3/' lua-aho-corasick/Makefile
# export PCRE lib directory
export PCRE_LIBDIR=$(find /usr/lib -name libpcre*.so* | head -1 | xargs dirname)
luarocks install lrexlib-pcre 2.7.2-1 PCRE_LIBDIR=${PCRE_LIBDIR}
fi
make
@ -55,12 +56,6 @@ git clone -b master --single-branch https://github.com/bungle/lua-resty-random.g
cd "$BUILD_PATH/lua-resty-cookie"
make install
if [[ ${ARCH} != "x86_64" ]]; then
luarocks install lrexlib-pcre 2.7.2-1 PCRE_LIBDIR=${PCRE_LIBDIR}
else
luarocks install lrexlib-pcre 2.7.2-1
fi
# and do the rest of what "make instal" does
cd "$BUILD_PATH/lua-resty-waf"
install -d "$LUA_LIB_DIR/resty/waf/storage"