From f4c951e0a1e6619fce58a35ea683555ce08aa106 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 25 Apr 2018 22:11:44 +0200 Subject: [PATCH] Update nginx-custom to 1.14.0 * Provide 3rdparty modules as extra packages * Fancy index doesn't work yet (directives are recognized, but have no effect) --- nginx/custom/PKGBUILD | 103 +++-------------------------------- nginx/custom/testresults.txt | 86 ----------------------------- 2 files changed, 8 insertions(+), 181 deletions(-) delete mode 100644 nginx/custom/testresults.txt diff --git a/nginx/custom/PKGBUILD b/nginx/custom/PKGBUILD index e55f0855..3fecb3d0 100644 --- a/nginx/custom/PKGBUILD +++ b/nginx/custom/PKGBUILD @@ -3,9 +3,9 @@ _pkgname=nginx pkgname=nginx-custom -pkgver=1.12.2 -pkgrel=3 -pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server (with standard, additional and 3rd party modules)' +pkgver=1.14.0 +pkgrel=1 +pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server (ready for use with 3rd party modules)' arch=('x86_64') url='https://nginx.org' license=('custom') @@ -14,7 +14,7 @@ checkdepends=('perl' 'perl-gd' 'perl-io-socket-ssl' 'perl-fcgi' 'perl-cache-memc 'memcached' 'ffmpeg' 'inetutils') makedepends=('libxslt' 'gd' 'mercurial') conflicts=('nginx' 'nginx-unstable' 'nginx-svn' 'nginx-devel' 'nginx-custom-dev' 'nginx-full') -provides=('nginx') +provides=("nginx=$pkgver") _user='http' _group='http' @@ -37,99 +37,25 @@ backup=("${_conf_path}/fastcgi.conf" "${_conf_path}/win-utf" "etc/logrotate.d/nginx") -# 3d party modules -_cachepurge_ver="2.3" -_cachepurge_dirname="ngx_cachepurge-${_cachepurge_ver}" -_slowfscache_ver="1.10" -_slowfscache_dirname="ngx_slowfscache-${_slowfscache_ver}" -_echo_ver="7740e11558b530b66b469c657576f5280b7cdb1b" -_echo_dirname="ngx_echo-${_echo_ver}" -_headersmore_ver="v0.32" -_headersmore_dirname="ngx_headersmore-${_headersmore_ver}" -_uploadprogress_ver="v0.9.2" -_uploadprogress_dirname="ngx_uploadprogress-${_uploadprogress_ver}" -_upstreamfair_hash="89f72d881ba123ddcc281f9ff2535b10e35555a1" -_upstreamfair_dirname="ngx_upstreamfair" -_fancyindex_ver="v0.4.2" -_fancyindex_dirname="ngx_fancyindex-${_fancyindex_ver}" -_authpam_ver="1.5.1" -_authpam_dirname="ngx_authpam-${_authpam_ver}" -_pagespeed_ver="1.11.33.4" -_pagespeed_dirname="ngx_pagespeed-${_pagespeed_ver}" -_rtmp_ver="v1.1.11" -_rtmp_dirname="ngx_rtmp-${_rtmp_ver}" -_davext_ver="v0.0.3" -_davext_dirname="ngx_davext-${_davext_ver}" -_naxsi_ver="0.55.3" -_naxsi_dirname="ngx_naxsi-${_naxsi_ver}" -_accesskey_ver="2.0.4" -_accesskey_dirname="ngx_accesskey-${_accesskey_ver}" - source=("nginx.sh" "nginx.conf" "nginx.logrotate" "nginx.service" "https://nginx.org/download/nginx-$pkgver.tar.gz"{,.asc} - hg+http://hg.nginx.org/nginx-tests#revision=cbda704b3093 - "${_fancyindex_dirname}.tar.gz::https://github.com/aperezdc/ngx-fancyindex/archive/${_fancyindex_ver}.tar.gz" - "${_cachepurge_dirname}.tar.gz::http://labs.frickle.com/files/ngx_cache_purge-${_cachepurge_ver}.tar.gz" - "${_slowfscache_dirname}.tar.gz::http://labs.frickle.com/files/ngx_slowfs_cache-${_slowfscache_ver}.tar.gz" - "${_uploadprogress_dirname}.source::https://github.com/masterzen/nginx-upload-progress-module/tarball/${_uploadprogress_ver}" - "${_headersmore_dirname}.source::https://github.com/agentzh/headers-more-nginx-module/tarball/${_headersmore_ver}" - "${_echo_dirname}.source::https://github.com/agentzh/echo-nginx-module/tarball/${_echo_ver}" - "${_upstreamfair_dirname}.source::https://github.com/unixfox/nginx-upstream-fair/tarball/${_upstreamfair_hash}" - "${_authpam_dirname}.tar.gz::https://github.com/stogh/ngx_http_auth_pam_module/archive/v${_authpam_ver}.tar.gz" - "${_pagespeed_dirname}.zip::https://github.com/apache/incubator-pagespeed-ngx/archive/v${_pagespeed_ver}-beta.zip" - "psol.tar.gz::https://dl.google.com/dl/page-speed/psol/${_pagespeed_ver}.tar.gz" - "${_rtmp_dirname}.zip::https://github.com/arut/nginx-rtmp-module/archive/${_rtmp_ver}.zip" - "${_davext_dirname}.tar.gz::https://github.com/arut/nginx-dav-ext-module/archive/${_davext_ver}.tar.gz" - "${_naxsi_dirname}.tar.gz::https://github.com/nbs-system/naxsi/archive/${_naxsi_ver}.tar.gz" - "${_accesskey_dirname}.tar.gz::https://github.com/Martchus/nginx-accesskey/archive/v${_accesskey_ver}.tar.gz" + hg+http://hg.nginx.org/nginx-tests#revision=d6daf03478ad ) validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin sha256sums=('c147953bd4e10ea3a74d9b4add59f18fc0bed093016a53a1d33ea2b9065cdc23' '8d8e314da10411b29157066ea313fc080a145d2075df0c99a1d500ffc7e8b7d1' '06ebe161af3e761f2e2e35a67c6c0af27bf61aea7cd4ba8b28372ced5e3b3175' 'c61cf4fefeb2a3b4c5eaba61123546e03f87c701466e8dad2c9262433f13b2d5' - '305f379da1d5fb5aefa79e45c829852ca6983c7cd2a79328f8e084a324cf0416' + '5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5' 'SKIP' - 'SKIP' - '8327150864ca267b735d550d3304030efbbd863fdddfe0a94e970f249a8827ee' - '279e0d8a46d3b1521fd43b3f78bc1c08b263899142a7cc5058c1c0361a92c89c' - '1e81453942e5b0877de1f1f06c56ae82918ea9818255cb935bcb673c95a758a1' - '7dfecce1856b20157905f4f1fa419dc48858e5336b2c3701d1523b4abf54685b' - 'd5921ea7ab4f4a77b9fe360721304238e3efb653ecd3c887291f1521e84e8c7b' - '135a58c527d00020eaabdc3fd3645601a35876a72fc7cdbe479de6a8458dafc4' - '13befeb7b4509abff0c0b2d4c76af4b4f9bc33f38153091d1bd85279e23453c6' - '77676842919134af88a7b4bfca4470223e3a00d287d17c0dbdc9a114a685b6e7' - '87d4f70349f3ab2c1ec60656b4ff1c9a3df738d74240048283a9acb9574f871a' - '97408b04bf7395ab34d7b5baed95ae3dc928746213ca02590773b66a7697a7dc' - 'ce5860791ccbe5ad372332157004be649239110f453ae2c27fc0322f27de20e6' - 'd428a0236c933779cb40ac8c91afb19d5c25a376dc3caab825bfd543e1ee530d' - '0b3c95d250772dc89ad8b49e47c1e024c5ae2c76c0cffa445e9fe05c4dd13495' - 'ae006b875e23d9ddc9c481d301c21b8a1775e578171e910890facc9e26bfbee2') - -prepare() { - mv ngx-fancyindex-* ${_fancyindex_dirname} - mv ngx_cache_purge-* ${_cachepurge_dirname} - mv ngx_slowfs_cache-* ${_slowfscache_dirname} - mv openresty-headers-more-nginx-module-* ${_headersmore_dirname} - mv openresty-echo-nginx-module-* ${_echo_dirname} - mv masterzen-nginx-upload-progress-module-* ${_uploadprogress_dirname} - mv unixfox-nginx-upstream-fair-* ${_upstreamfair_dirname} - mv ngx_http_auth_pam_module-${_authpam_ver} ${_authpam_dirname} - mv incubator-pagespeed-ngx-* ${_pagespeed_dirname} - mv psol ${_pagespeed_dirname}/ - mv nginx-accesskey* ${_accesskey_dirname} - mv nginx-rtmp-module* ${_rtmp_dirname} - mv nginx-dav-ext-module* ${_davext_dirname} - mv naxsi* ${_naxsi_dirname} -} + 'SKIP') check() { cd nginx-tests - warning "Ignore failing auth_request_satisfy.t for now, see testresults.txt" - TEST_NGINX_BINARY="$srcdir/${_pkgname}-${pkgver}/objs/nginx" find -maxdepth 1 -not -iname 'auth_request_satisfy.t' -iname '*.t' -exec prove {} \+ + TEST_NGINX_BINARY="$srcdir/${_pkgname}-${pkgver}/objs/nginx" find -maxdepth 1 -iname '*.t' -exec prove {} \+ } build() { @@ -187,19 +113,6 @@ build() { --with-http_geoip_module \ --with-http_gunzip_module \ --with-http_auth_request_module \ - --add-module=../${_naxsi_dirname}/naxsi_src/ \ - --add-module=../${_cachepurge_dirname} \ - --add-module=../${_echo_dirname} \ - --add-module=../${_headersmore_dirname} \ - --add-module=../${_slowfscache_dirname} \ - --add-module=../${_uploadprogress_dirname} \ - --add-module=../${_upstreamfair_dirname} \ - --add-module=../${_fancyindex_dirname} \ - --add-module=../${_authpam_dirname} \ - --add-module=../${_pagespeed_dirname} \ - --add-module=../${_accesskey_dirname} \ - --add-module=../${_rtmp_dirname} \ - --add-module=../${_davext_dirname} \ --with-cc-opt="$CFLAGS $CPPFLAGS" \ --with-ld-opt="$LDFLAGS" make diff --git a/nginx/custom/testresults.txt b/nginx/custom/testresults.txt deleted file mode 100644 index bc4223a2..00000000 --- a/nginx/custom/testresults.txt +++ /dev/null @@ -1,86 +0,0 @@ -Ignore failing auth_request_satisfy.t for now since at least an error is -caused (even if not the correct one). Maybe bug caused by one of the further -modules? - -Relevant log: - -./auth_request.t ....................... ok - -# Failed test 'any deny+unauthorized' -# at ./auth_request_satisfy.t line 129. -# 'HTTP/1.1 404 Not Found -# Server: nginx/1.12.2 -# Date: Thu, 30 Nov 2017 20:25:33 GMT -# Content-Type: text/html -# Content-Length: 169 -# Connection: close -# -# -# 404 Not Found -# -#

404 Not Found

-#
nginx/1.12.2
-# -# -# ' -# doesn't match '(?^: 401 )' - -# Failed test 'any deny+forbidden' -# at ./auth_request_satisfy.t line 130. -# 'HTTP/1.1 404 Not Found -# Server: nginx/1.12.2 -# Date: Thu, 30 Nov 2017 20:25:33 GMT -# Content-Type: text/html -# Content-Length: 169 -# Connection: close -# -# -# 404 Not Found -# -#

404 Not Found

-#
nginx/1.12.2
-# -# -# ' -# doesn't match '(?^: 403 )' - -# Failed test 'any basic+unauthorized' -# at ./auth_request_satisfy.t line 133. -# 'HTTP/1.1 404 Not Found -# Server: nginx/1.12.2 -# Date: Thu, 30 Nov 2017 20:25:33 GMT -# Content-Type: text/html -# Content-Length: 169 -# Connection: close -# -# -# 404 Not Found -# -#

404 Not Found

-#
nginx/1.12.2
-# -# -# ' -# doesn't match '(?^: 401 )' - -# Failed test 'any basic+forbidden' -# at ./auth_request_satisfy.t line 134. -# 'HTTP/1.1 404 Not Found -# Server: nginx/1.12.2 -# Date: Thu, 30 Nov 2017 20:25:33 GMT -# Content-Type: text/html -# Content-Length: 169 -# Connection: close -# -# -# 404 Not Found -# -#

404 Not Found

-#
nginx/1.12.2
-# -# -# ' -# doesn't match '(?^: 401 )' -# Looks like you failed 4 tests of 20. -./auth_request_satisfy.t ............... -Dubious, test returned 4 (wstat 1024, 0x400)