Skip to content
Permalink
Browse files

add Openresty echo-nginx-module Nginx module for Centmin Mod .08 beta

  • Loading branch information...
centminmod committed May 7, 2015
1 parent b1006c5 commit 6026a7a54823077d9189b93ceb8a0a467144c47c
Showing with 45 additions and 9 deletions.
  1. +1 −0 centmin.sh
  2. +4 −0 inc/downloadlinks.inc
  3. +28 −0 inc/downloads.inc
  4. +11 −8 inc/nginx_configure.inc
  5. +1 −1 inc/nginx_upgrade.inc
@@ -261,6 +261,7 @@ ORESTY_MEMCVER='0.15' # openresty memc module https://github.com/openrest
ORESTY_SRCCACHEVER='0.28' # openresty subrequest cache module https://github.com/openresty/srcache-nginx-module
ORESTY_DEVELKITVER='0.2.19' # openresty ngx_devel_kit module https://github.com/simpl/ngx_devel_kit
ORESTY_SETMISCVER='0.28' # openresty set-misc-nginx module https://github.com/openresty/set-misc-nginx-module
ORESTY_ECHOVER='0.57' # openresty set-misc-nginx module https://github.com/openresty/echo-nginx-module
PHP_INSTALL=y # Install PHP /w Fast Process Manager
PHPMAKETEST=n # set to y to enable make test after PHP make for diagnostic purposes

@@ -189,6 +189,10 @@ NGX_DEVELKITLINK="https://github.com/simpl/ngx_devel_kit/archive/v${ORESTY_DEVEL
NGX_SETMISCLINKFILE="set-misc-nginx-module_v${ORESTY_SETMISCVER}.tar.gz"
NGX_SETMISCLINK="https://github.com/openresty/set-misc-nginx-module/archive/v${ORESTY_SETMISCVER}.tar.gz"

# wget renamed
NGX_ECHOLINKFILE="echo-nginx-module_v${ORESTY_ECHOVER}.tar.gz"
NGX_ECHOLINK="https://github.com/openresty/echo-nginx-module/archive/v${ORESTY_ECHOVER}.tar.gz"

LIBEVENTLINKFILE="release-${LIBEVENT_VERSION}-stable.tar.gz"
LIBEVENTLINKOLD="https://github.com/downloads/libevent/libevent/${LIBEVENTLINKFILE}"
LIBEVENTLINK="https://github.com/libevent/libevent/archive/${LIBEVENTLINKFILE}"
@@ -568,6 +568,34 @@ else
cecho "${NGX_SETMISCLINKFILE} valid file." $boldyellow
echo ""
fi

cecho "Download ${NGX_ECHOLINKFILE} ..." $boldyellow
if [ -s ${NGX_ECHOLINKFILE} ]; then
cecho "${NGX_ECHOLINKFILE} Archive found, skipping download..." $boldgreen
else
cecho "Error: ${NGX_ECHOLINKFILE} not found!!!download now......"
wget -c --progress=bar --no-check-certificate ${NGX_ECHOLINK} -O ${NGX_ECHOLINKFILE} --tries=3
ERROR=$?
if [[ "$ERROR" != '0' ]]; then
cecho "Error: ${NGX_ECHOLINKFILE} download failed." $boldgreen
checklogdetails
exit #$ERROR
else
cecho "Download done." $boldyellow
#echo ""
fi
fi

tar xzf ${NGX_ECHOLINKFILE}
ERROR=$?
if [[ "$ERROR" != '0' ]]; then
cecho "Error: ${NGX_ECHOLINKFILE} extraction failed." $boldgreen
checklogdetails
exit #$ERROR
else
cecho "${NGX_ECHOLINKFILE} valid file." $boldyellow
echo ""
fi

fi # openresty
}
@@ -25,19 +25,22 @@ if [[ "$CENTOSVER" = '6.0' || "$CENTOSVER" = '6.1' || "$CENTOSVER" = '6.2' || "$
fi

if [ "$NGINX_OPENRESTY" == 'y' ]; then
MEMCDIR=`ls -rt $DIR_TMP | grep openresty-memc-nginx-module | tail -1`
SRCACHEDIR=`ls -rt $DIR_TMP | grep openresty-srcache-nginx-module | tail -1`
SETMISCDIR=`ls -rt $DIR_TMP | grep set-misc-nginx-module | tail -1`
DEVELKITDIR=`ls -rt $DIR_TMP | grep ngx_devel_kit | tail -1`
MEMCDIR=`ls -rt $DIR_TMP | grep openresty-memc-nginx-module | egrep -v 'gz|zip' | tail -1`
SRCACHEDIR=`ls -rt $DIR_TMP | grep openresty-srcache-nginx-module | egrep -v 'gz|zip' | tail -1`
SETMISCDIR=`ls -rt $DIR_TMP | grep set-misc-nginx-module | egrep -v 'gz|zip' | tail -1`
DEVELKITDIR=`ls -rt $DIR_TMP | grep ngx_devel_kit | egrep -v 'gz|zip' | tail -1`
ECHODIR=`ls -rt $DIR_TMP | grep echo-nginx-module | egrep -v 'gz|zip' | tail -1`
MEMCOPT=" --add-module=../${MEMCDIR}"
SRCCACHEOPT=" --add-module=../${SRCACHEDIR}"
SETMISCOPT=" --add-module=../${SETMISCDIR}"
DEVELKITOPT=" --add-module=../${DEVELKITDIR}"
DEVELKITOPT=" --add-module=../${DEVELKITDIR}"
ECHOOPT=" --add-module=../${ECHODIR}"
else
MEMCOPT=""
SRCCACHEOPT=""
SETMISCOPT=""
DEVELKITOPT=""
DEVELKITOPT=""
ECHOOPT=""
fi

if [[ "$NGINX_SPDY" = [yY] ]]; then
@@ -220,10 +223,10 @@ fi
# if [[ "$asknginxipv" = [yY] ]]; then
if [[ "$asknginxipv" = [yY] || "$NGINX_IPV" = [yY] ]]; then
pwd
./configure --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6 --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module${GEOIPOPT} --with-openssl-opt="enable-tlsext" --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-${NGINX_CACHEPURGEVER} --add-module=../headers-more-nginx-module-${NGINX_HEADERSMORE} --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master${GPERFOPT}${WEBDAVOPT}${RUBYMODULE}${MEMCOPT}${SRCCACHEOPT}${DEVELKITOPT}${SETMISCOPT}${STICKYOPT}${UPSTREAMOPT}${OPENSSLOPT}${LIBATOMICOPT}${STREAM}${PCREJITOPT}${SPDYOPT}${PGSPEEDOPT}
./configure --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6 --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module${GEOIPOPT} --with-openssl-opt="enable-tlsext" --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-${NGINX_CACHEPURGEVER} --add-module=../headers-more-nginx-module-${NGINX_HEADERSMORE} --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master${GPERFOPT}${WEBDAVOPT}${RUBYMODULE}${MEMCOPT}${SRCCACHEOPT}${DEVELKITOPT}${SETMISCOPT}${ECHOOPT}${STICKYOPT}${UPSTREAMOPT}${OPENSSLOPT}${LIBATOMICOPT}${STREAM}${PCREJITOPT}${SPDYOPT}${PGSPEEDOPT}
else
pwd
./configure --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module${GEOIPOPT} --with-openssl-opt="enable-tlsext" --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-${NGINX_CACHEPURGEVER} --add-module=../headers-more-nginx-module-${NGINX_HEADERSMORE} --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master${GPERFOPT}${WEBDAVOPT}${RUBYMODULE}${MEMCOPT}${SRCCACHEOPT}${DEVELKITOPT}${SETMISCOPT}${STICKYOPT}${UPSTREAMOPT}${OPENSSLOPT}${LIBATOMICOPT}${STREAM}${PCREJITOPT}${SPDYOPT}${PGSPEEDOPT}
./configure --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module${GEOIPOPT} --with-openssl-opt="enable-tlsext" --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-${NGINX_CACHEPURGEVER} --add-module=../headers-more-nginx-module-${NGINX_HEADERSMORE} --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master${GPERFOPT}${WEBDAVOPT}${RUBYMODULE}${MEMCOPT}${SRCCACHEOPT}${DEVELKITOPT}${SETMISCOPT}${ECHOOPT}${STICKYOPT}${UPSTREAMOPT}${OPENSSLOPT}${LIBATOMICOPT}${STREAM}${PCREJITOPT}${SPDYOPT}${PGSPEEDOPT}
fi

}
@@ -37,7 +37,7 @@ openssldownload
fi

if [ "$NGINX_OPENRESTY" == 'y' ]; then
if [[ ! -f "${DIR_TMP}/${NGX_MEMCLINKFILE}" || ! -f "${DIR_TMP}/${NGX_SRCACHELINKFILE}" || ! -f "${DIR_TMP}/${NGX_SETMISCLINKFILE}" || ! -f "${DIR_TMP}/${NGX_DEVELKITLINKFILE}" ]]; then
if [[ ! -f "${DIR_TMP}/${NGX_MEMCLINKFILE}" || ! -f "${DIR_TMP}/${NGX_SRCACHELINKFILE}"|| ! -f "${DIR_TMP}/${NGX_ECHOLINKFILE}" || ! -f "${DIR_TMP}/${NGX_SETMISCLINKFILE}" || ! -f "${DIR_TMP}/${NGX_DEVELKITLINKFILE}" ]]; then
openrestytarball
fi
fi

0 comments on commit 6026a7a

Please sign in to comment.
You can’t perform that action at this time.