hello,

here is a patch to enable ngx_http_gunzip_module in
nginx (the rest is end of line whitespace removal)

all modern browsers accept gzip content.  for static
content i can just store gzipped files and save nginx
the work to compress for every request.   with the
gunzip module i dont need to store the uncompressed
originals when i use it together with gzip_static
"always" option:

Syntax:         gzip_static on | off | always;

...

With the “always” value (1.3.6), gzipped file is used
in all cases, without checking if the client supports
it. It is useful if there are no uncompressed files on
the disk anyway or the ngx_http_gunzip_module is used.

...

-f
-- 
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.102
diff -u -p -r1.102 Makefile
--- Makefile    4 Nov 2016 22:13:43 -0000       1.102
+++ Makefile    7 Jan 2017 19:40:02 -0000
@@ -11,8 +11,8 @@ COMMENT-mailproxy=    nginx mail proxy modu
 COMMENT-stream=                nginx TCP/UDP proxy module
 COMMENT-naxsi=         nginx web application firewall module
 COMMENT-lua=           nginx lua scripting module
-COMMENT-perl=          nginx perl scripting module             
-COMMENT-passenger=     nginx passenger (ruby/python/nodejs) integration module 
        
+COMMENT-perl=          nginx perl scripting module
+COMMENT-passenger=     nginx passenger (ruby/python/nodejs) integration module
 
 VERSION=       1.10.2
 DISTNAME=      nginx-${VERSION}
@@ -22,14 +22,14 @@ PKGNAME-main=               ${DISTNAME}
 PKGNAME-image_filter=  nginx-image_filter-${VERSION}
 PKGNAME-geoip=         nginx-geoip-${VERSION}
 PKGNAME-xslt=          nginx-xslt-${VERSION}
-PKGNAME-mailproxy=     nginx-mailproxy-${VERSION}
+PKGNAME-mailproxy=     nginx-mailproxy-${VERSION}
 PKGNAME-stream=                nginx-stream-${VERSION}
 PKGNAME-naxsi=         nginx-naxsi-${VERSION}
 PKGNAME-lua=           nginx-lua-${VERSION}
 PKGNAME-perl=          nginx-perl-${VERSION}
 PKGNAME-passenger=     nginx-passenger-${VERSION}
 
-REVISION-main= 0
+REVISION-main= 1
 
 MASTER_SITES=  http://nginx.org/download/
 MASTER_SITES0= https://github.com/simpl/ngx_devel_kit/archive/
@@ -53,12 +53,12 @@ PERMIT_PACKAGE_CDROM=       yes
 MULTI_PACKAGES =       -main -image_filter -geoip -xslt -mailproxy -stream 
-naxsi -lua -perl -passenger
 
 WANTLIB-main=          c z pcre ssl crypto
-WANTLIB-mailproxy=     
-WANTLIB-stream=                
+WANTLIB-mailproxy=
+WANTLIB-stream=
 WANTLIB-image_filter=  gd
 WANTLIB-geoip=         GeoIP
-WANTLIB-xslt=          exslt xml2 xslt 
-WANTLIB-naxsi=         
+WANTLIB-xslt=          exslt xml2 xslt
+WANTLIB-naxsi=
 WANTLIB-lua=           ${MODLUA_WANTLIB} m
 WANTLIB-perl=          c m perl
 WANTLIB-passenger=     m pthread stdc++
@@ -126,6 +126,7 @@ CONFIGURE_ARGS+=    --prefix=${NGINX_DIR} \
                        --with-http_image_filter_module=dynamic \
                        --with-http_geoip_module=dynamic \
                        --with-http_gzip_static_module \
+                       --with-http_gunzip_module \
                        --with-http_perl_module=dynamic \
                        --with-http_realip_module \
                        --with-http_slice_module \

Reply via email to