include the rest of lua-resty-waf dependencies (#2303)
This commit is contained in:
parent
82a6d4c2f5
commit
6987b3f667
2 changed files with 34 additions and 6 deletions
|
|
@ -19,29 +19,35 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# build and install lua-resty-waf
|
||||
cd "$BUILD_PATH"
|
||||
git clone --recursive --single-branch -b v0.11.1 https://github.com/p0pr0ck5/lua-resty-waf
|
||||
|
||||
cd lua-resty-waf
|
||||
make
|
||||
make install-check
|
||||
|
||||
# we can not use "make install" directly here because it also calls "install-deps" which requires OPM
|
||||
# to avoid that we install the libraries "install-deps" would install manually
|
||||
cd "$BUILD_PATH/lua-resty-iputils-0.3.0"
|
||||
make install
|
||||
# this library's latest version is not released therefore cloning directly
|
||||
|
||||
git clone -b master --single-branch https://github.com/cloudflare/lua-resty-cookie.git "$BUILD_PATH/lua-resty-cookie"
|
||||
cd "$BUILD_PATH/lua-resty-cookie"
|
||||
make install
|
||||
# this library's latest version is not released therefore cloning directly
|
||||
|
||||
git clone -b master --single-branch https://github.com/p0pr0ck5/lua-ffi-libinjection.git "$BUILD_PATH/lua-ffi-libinjection"
|
||||
cd "$BUILD_PATH/lua-ffi-libinjection"
|
||||
install lib/resty/*.lua "$LUA_LIB_DIR/resty/"
|
||||
# this library's latest version is not released therefore cloning directly
|
||||
|
||||
git clone -b master --single-branch https://github.com/cloudflare/lua-resty-logger-socket.git "$BUILD_PATH/lua-resty-logger-socket"
|
||||
cd "$BUILD_PATH/lua-resty-logger-socket"
|
||||
install -d "$LUA_LIB_DIR/resty/logger"
|
||||
install lib/resty/logger/*.lua "$LUA_LIB_DIR/resty/logger/"
|
||||
|
||||
git clone -b master --single-branch https://github.com/bungle/lua-resty-random.git "$BUILD_PATH/lua-resty-random"
|
||||
cd "$BUILD_PATH/lua-resty-cookie"
|
||||
make install
|
||||
|
||||
luarocks install lrexlib-pcre 2.7.2-1
|
||||
|
||||
# and do the rest of what "make instal" does
|
||||
cd "$BUILD_PATH/lua-resty-waf"
|
||||
install -d "$LUA_LIB_DIR/resty/waf/storage"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue