aboutsummaryrefslogtreecommitdiff
path: root/network/nginx/nginx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nginx/nginx.SlackBuild')
-rw-r--r--network/nginx/nginx.SlackBuild21
1 files changed, 18 insertions, 3 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild
index 8d9946451d50..de05bf525b8f 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 \