Last active
October 12, 2015 06:44
-
-
Save jbergstroem/8bbb76cbd2cc8b4ddd53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/portage/www-servers/nginx/nginx-1.9.4.ebuild 2015-09-01 05:31:02.000000000 +1000 | |
+++ nginx-1.9.5.ebuild 2015-10-12 17:43:30.192000000 +1100 | |
@@ -30,7 +30,7 @@ | |
HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" | |
# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) | |
-HTTP_HEADERS_MORE_MODULE_PV="0.26" | |
+HTTP_HEADERS_MORE_MODULE_PV="0.261" | |
HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}" | |
HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" | |
HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" | |
@@ -78,7 +78,7 @@ | |
HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" | |
# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) | |
-HTTP_NAXSI_MODULE_PV="0.53-2" | |
+HTTP_NAXSI_MODULE_PV="0.54" | |
HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" | |
HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" | |
HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" | |
@@ -168,7 +168,7 @@ | |
geo gzip limit_req limit_conn map memcached proxy referer rewrite scgi ssi | |
split_clients upstream_ip_hash userid uwsgi" | |
NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip gzip_static | |
-image_filter mp4 perl random_index realip secure_link spdy stub_status sub xslt" | |
+image_filter mp4 perl random_index realip secure_link stub_status sub xslt" | |
NGINX_MODULES_MAIL="imap pop3 smtp" | |
NGINX_MODULES_3RD=" | |
http_upload_progress | |
@@ -190,7 +190,7 @@ | |
http_mogilefs | |
http_memc" | |
-IUSE="aio debug +http +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp | |
+IUSE="aio debug +http http2 +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp | |
selinux ssl threads userland_GNU vim-syntax" | |
for mod in $NGINX_MODULES_STD; do | |
@@ -209,10 +209,14 @@ | |
IUSE="${IUSE} nginx_modules_${mod}" | |
done | |
+# Add so we can warn users updating about config changes | |
+IUSE="${IUSE} nginx_modules_http_spdy" | |
+ | |
CDEPEND=" | |
pcre? ( >=dev-libs/libpcre-4.2 ) | |
pcre-jit? ( >=dev-libs/libpcre-8.20[jit] ) | |
ssl? ( dev-libs/openssl:0= ) | |
+ http2? ( >=dev-libs/openssl-1.0.1c:0= ) | |
http-cache? ( userland_GNU? ( dev-libs/openssl:0= ) ) | |
nginx_modules_http_geoip? ( dev-libs/geoip ) | |
nginx_modules_http_gunzip? ( sys-libs/zlib ) | |
@@ -222,7 +226,6 @@ | |
nginx_modules_http_perl? ( >=dev-lang/perl-5.8 ) | |
nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 ) | |
nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl:0= ) ) | |
- nginx_modules_http_spdy? ( >=dev-libs/openssl-1.0.1c:0= ) | |
nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt ) | |
nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) | |
nginx_modules_http_auth_pam? ( virtual/pam ) | |
@@ -335,6 +338,7 @@ | |
use aio && myconf+=( --with-file-aio ) | |
use debug && myconf+=( --with-debug ) | |
+ use http2 && myconf+=( --with-http_v2_module ) | |
use ipv6 && myconf+=( --with-ipv6 ) | |
use libatomic && myconf+=( --with-libatomic ) | |
use pcre && myconf+=( --with-pcre ) | |
@@ -460,7 +464,7 @@ | |
myconf+=( --add-module=${HTTP_MEMC_MODULE_WD} ) | |
fi | |
- if use http || use http-cache; then | |
+ if use http || use http-cache || use http2; then | |
http_enabled=1 | |
fi | |
@@ -650,9 +654,14 @@ | |
fi | |
fi | |
- if use nginx_modules_http_lua && use nginx_modules_http_spdy; then | |
+ if use nginx_modules_http_spdy; then | |
+ ewarn "In nginx 1.9.5 the spdy module was superseded by http2." | |
+ ewarn "Update your configs and package.use accordingly." | |
+ fi | |
+ | |
+ if use nginx_modules_http_lua && use http2; then | |
ewarn "Lua 3rd party module author warns against using ${P} with" | |
- ewarn "NGINX_MODULES_HTTP=\"lua spdy\". For more info, see http://git.io/OldLsg" | |
+ ewarn "NGINX_MODULES_HTTP=\"lua http2\". For more info, see http://git.io/OldLsg" | |
fi | |
# This is the proper fix for bug #458726/#469094, resp. CVE-2013-0337 for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment