diff options
Diffstat (limited to 'network/nginx/nginx.SlackBuild')
-rw-r--r-- | network/nginx/nginx.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild index 7486b5bc30..f8edee033e 100644 --- a/network/nginx/nginx.SlackBuild +++ b/network/nginx/nginx.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2008 Cherife Li <cherife-#-dotimes.com> # Copyright 2011 Diogo Leal <diogo@diogoleal.com> -# Copyright 2012 Francisco Ambrozio <developer@franciscoambrozio.com> +# Copyright 2012-13 Francisco Ambrozio <sbo@franciscoambrozio.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +24,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Special thanks to Thomas Morper for some configuration adjustments tips + PRGNAM=nginx -VERSION=${VERSION:-1.2.6} +VERSION=${VERSION:-1.4.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,6 +44,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +USE_SPDY=${USE_SPDY:-no} + eval $(perl '-V:installvendorlib') if [ "$ARCH" = "i486" ]; then @@ -73,6 +77,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +if [ "$USE_SPDY" == "yes" ]; then + SPDY_MOD=" --with-http_spdy_module " +else + SPDY_MOD="" +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -85,7 +95,7 @@ CXXFLAGS="$SLKCFLAGS" \ --group=${NGINXGROUP:=nogroup} \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ - --with-rtsig_module \ + --with-ipv6 \ --with-select_module \ --with-poll_module \ --with-http_ssl_module \ @@ -100,10 +110,8 @@ CXXFLAGS="$SLKCFLAGS" \ --with-http_secure_link_module \ --with-http_stub_status_module \ --with-http_perl_module \ + $SPDY_MOD \ --with-perl_modules_path=$installvendorlib \ - --http-client-body-temp-path=/var/tmp/nginx_client_body_temp \ - --http-proxy-temp-path=/var/tmp/nginx_proxy_temp \ - --http-fastcgi-temp-path=/dev/shm \ --without-mail_pop3_module \ --without-mail_imap_module \ --without-mail_smtp_module |