From 27542a156c0fc06665e2ff76378603b5dea06b60 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Sat, 11 Jul 2015 05:53:07 +0700 Subject: network/nginx: Updated for version 1.8.0. Signed-off-by: Willy Sudiarto Raharjo --- network/nginx/nginx.SlackBuild | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'network/nginx/nginx.SlackBuild') diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild index 8d9946451d..de05bf525b 100644 --- a/network/nginx/nginx.SlackBuild +++ b/network/nginx/nginx.SlackBuild @@ -28,7 +28,7 @@ # Special thanks to Thomas Morper for some configuration adjustments tips PRGNAM=nginx -VERSION=${VERSION:-1.6.3} +VERSION=${VERSION:-1.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -79,12 +79,23 @@ sed -i \ -e '/root[ ]*html/s|html;|/var/www/&|' \ -e '$s|.*| include /etc/nginx/conf.d/\*.conf;\n&|' conf/$PRGNAM.conf -if [ "${USE_GEOIP:-no}" == "yes" ]; then +# Enable GeoIP support. +if [ "${GEOIP:-no}" == "yes" ]; then GEOIP_MOD="--with-http_geoip_module" else GEOIP_MOD="" fi +# Endable libatomic_ops support. +if [ "${LIBATOMIC:-no}" == "yes" ]; then + LIBATOMIC_MOD="--with-libatomic" +else + LIBATOMIC_MOD="" +fi + +# Add extra modules not included in nginx. +ADDMODULE=${ADDMODULE:-} + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -104,12 +115,14 @@ CXXFLAGS="$SLKCFLAGS" \ --http-scgi-temp-path=/var/lib/nginx/scgi \ --with-file-aio \ --with-ipv6 \ + --with-rtsig_module \ --with-select_module \ --with-poll_module \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_xslt_module \ + --with-http_image_filter_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ @@ -125,7 +138,9 @@ CXXFLAGS="$SLKCFLAGS" \ --with-mail \ --with-mail_ssl_module \ --with-http_spdy_module \ - $GEOIP_MOD + $GEOIP_MOD \ + $LIBATOMIC_MOD \ + --add-module="$ADDMODULE" make make install \ -- cgit v1.2.3