/
zlib.inc
41 lines (40 loc) · 847 Bytes
/
zlib.inc
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
zlibng_install() {
if [[ "$NGINX_ZLIBNG" = [yY] ]]; then
echo
echo "install zlib-ng..."
echo
pushd "$DIR_TMP"
if [ -d zlib-ng ]; then
rm -rf zlib-ng
fi
time git clone https://github.com/Dead2/zlib-ng
cd zlib-ng
./configure --zlib-compat
#make${MAKETHREADS}
# make install
popd
echo
echo "zlib-ng installed"
echo
fi
}
nginxzlib_install() {
if [[ "$NGINX_ZLIBCUSTOM" = [yY] ]]; then
echo
echo "install zlib ${NGINX_ZLIBVER}..."
echo
if [[ ! -f "${DIR_TMP}/${NGX_ZLIBLINKFILE}" || ! -d "${DIR_TMP}/zlib-${NGINX_ZLIBVER}" ]]; then
nginxzlibtarball
fi
pushd "$DIR_TMP"
cd "zlib-${NGINX_ZLIBVER}"
make clean
./configure
make${MAKETHREADS}
make install
popd
echo
echo "zlib ${NGINX_ZLIBVER} installed"
echo
fi
}