1 |
commit: d01cf3565b9d317b5d26cb7bb5979d98f159cf80 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 1 20:46:48 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 1 20:48:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01cf356 |
7 |
|
8 |
www-servers/nginx: Cleanup old |
9 |
|
10 |
Package-Manager: Portage-2.3.21, Repoman-2.3.6 |
11 |
|
12 |
www-servers/nginx/Manifest | 8 - |
13 |
www-servers/nginx/nginx-1.12.1.ebuild | 1015 --------------------------------- |
14 |
www-servers/nginx/nginx-1.13.7.ebuild | 1006 -------------------------------- |
15 |
3 files changed, 2029 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/nginx/Manifest b/www-servers/nginx/Manifest |
18 |
index e9c5e42c611..a4bbc9bda74 100644 |
19 |
--- a/www-servers/nginx/Manifest |
20 |
+++ b/www-servers/nginx/Manifest |
21 |
@@ -1,31 +1,23 @@ |
22 |
-DIST modsecurity-2.9.1.tar.gz 4261212 BLAKE2B c47c7934d8da870e629c5733cc8c37452e4d90351269a14b99483188e8e3161891bd63bfd70e0723648c8daf51f1c33d900bd90ab0157332f826eab772f09f62 SHA512 374733cbfc26e53d95b78c8f268a4e465d838163e9893fc24e33a9d272b114f1b287147bab6d0289575074cbbd94f48983e23fa59832cbcb32950046cea59269 |
23 |
DIST modsecurity-2.9.2.tar.gz 4298993 BLAKE2B 32a92148f0e1a1166cf888b8172fc55340c5712c9b770583703c74db450e77226629640c9db03f32e9f28397e6488669d06a89e4d31cb5ab5fff26b30ad843e0 SHA512 69c87ef6f7b6411f4803eb25af32969a1da59722121257c2edf345a3f5a4ab9ae8a49c886cbbfc722c5bda91c6d6ea55232f968c0a0407d7d7b3af53dc862c21 |
24 |
-DIST nginx-1.12.1.tar.gz 981093 BLAKE2B fa81164511591736b5da1937f2e867712845ff6bfa51cb9c2e2cd367f5d936f7ff6fd3a86cc1d2a49e0b97f6200dbc7808f783941182e08a1037112d858c91cd SHA512 3a2ad2a559b366dda92dd58c0fe40ee84dd60a3eaf72071454110e032c3e9a03f2a63b28fe3a615b527950521eeb533c687a2cc4c87524e1d8f3a0a5f043fdb6 |
25 |
DIST nginx-1.12.2.tar.gz 981687 BLAKE2B cca2d2b2267fee6feac7e91a5aaec229251e829203b02c207a6a89644fd6b1f2003d75225fadde9fdfc8dda444dc53c7ff0033a1e15a0f25019c878fc716d83f SHA512 3faa2043e237a7e1d15cc5661ac9d002a965220a78c25a863be9f19e01007347e53f776b61c229f6bd3d916cc1ccf92de260811f7b8092ec1b747fba7c0061f7 |
26 |
-DIST nginx-1.13.7.tar.gz 990836 BLAKE2B 158c70018426e78a8e5157bde1c164de78bb9968c37f4c3fe24e30ef3df7690abdd6932522c6c179db8c5ff4da0f3fcee925e3b2680bfa33dc2b2abc8f007708 SHA512 77ee919315e0b16ec042ec80b5a9ed01ef057d30fded4c1991fc1b7648d41433b94897fbe6f0900299d3596ede7b25e842e47c44865b1c3d91d2dc6363d23fc0 |
27 |
DIST nginx-1.13.8.tar.gz 992237 BLAKE2B 268eebb98a1ae1acbc9fb3ae4e445b26cfff68d8833285527b86f73d5a076f43fb6840b2aad6ff0e8458b47abbe8a9883c43c8a6b40c65d040b3bff88c6910eb SHA512 f2a4d41941ec223afcb57a6deb6523e0d4f54f96c7362835d366fa04a4b4578f6c4f27aa7774c1ecd40a42087df83e5c03d024e72caba83c558ec7e580c756a1 |
28 |
DIST nginx-auth-ldap-49a8b4d28fc4a518563c82e0b52821e5f37db1fc.tar.gz 17159 BLAKE2B f2209c8b5eb5616a362f2b532245167a5940faad6d66d98a94b3bf2d1e33a73492d42c60a9ddad347a592362a002ff38273a5d1f61f663984a09e14a3fe35e0f SHA512 323abd0ca8e90f5afcaf81a8ff1a8abe3dfcbff3d69f0dd4a1c005fe6436acbf3076c4c57a4df877b3d8e388cbea085d46301bb2df9c0752e2567817ff7cca92 |
29 |
DIST nginx_http_sticky_module_ng-1.2.6-10-g08a395c66e42.tar.bz2 124047 BLAKE2B d37ef9a15c91abe3c6258e420d1f99fa452f9d9966a0e13102174973314a3bac5413957a5fe632a9dcb1163b3be5df8116e05cc053ee061e19319ec25f341570 SHA512 6c1bfdcf89884b2855d51ae7da0f6e53a4ca3629e1aaf58433b70c07dcb2af797ba6e87d9b3eb4fe2fb6d4d697e862f2b4c2f8d8b3fdaea201740c97ec936529 |
30 |
DIST ngx_devel_kit-0.3.0-r1.tar.gz 66455 BLAKE2B e4e987a85b2283ba540b4b894382e65dac7fbca23e233b1031b38828908088370cdb1a9bded4d4ee1ceb1c2e1d506dc2b6f4ba5f6ee94248e863def5a1c8dd1a SHA512 558764c9be913a4f61d0e277d07bf3c272e1ce086b3fadb85b693a7e92805cd9fca4da7a8d29c96e53fc0d23b331327d3b2561ff61f19d2330e7d5d35ac7d614 |
31 |
DIST ngx_http_auth_pam-1.5.1.tar.gz 6863 BLAKE2B 00807cc3db8f6c007c968b8a30d7f6094b7d9db4eaa60d211fcb3ac60aeb28c5f8193578a7e1ca67acbbf57a319c8442fe44efc1e193927c3bce5961539f9c16 SHA512 973b94874d8a58c0df0ac2d31571eafc1e80b11179cba33ec88421a826207fbf7e99b0387e135a1ca48d82daacb78f19a4c21d3a27b49b16dc86b4748bb72261 |
32 |
DIST ngx_http_cache_purge-2.3.tar.gz 12248 BLAKE2B f83b267f4c19a9d4af5964522695814c164d200ecd4108bf8f6b5c21388eba8af989bdda646dee18a03174211e8c090a04736bbeb44043cb0e19fbccdc66278e SHA512 50a31dbf2216a6fae74a186af56dec4600cf55777e76a10ac0075f609e7737135aab063a64f2590dddcd0369ebebd4a523027f3d9ebcca74f7b4355be1c5dcc0 |
33 |
-DIST ngx_http_dav_ext-0.0.3.tar.gz 6260 BLAKE2B 065e41a6bfa1d3cc539dc1e6085e1897ff27f54204f6667a57bd3972954993aa5aae7f33a008be6e0b716a1633ec87833cb405be0494210ae819470ff808d01a SHA512 4763b1c5e417248d80acfacf20bfc5ba3e06675ff08e37703867daef99a400980b536941e4955c259432905bd11ab998bc2e2489a50350413c7bf37e18eafb74 |
34 |
DIST ngx_http_dav_ext-0.1.0.tar.gz 6614 BLAKE2B 3951b573e80e8f02199680fb1ba23baa9ed0845002bf5c78fec291f3a2c01017bcf90f969e924d2e1e03db2aef364af6eaa19398478dfc22fc5bdd57508a9cbd SHA512 47b1686b483640a7fdcbf8081aae2e9f83fb0072ef0940b1cd7f8ddf4932317740b38f0dd4a8f3dd8da074c11c70038ac6758c0feafd3851331acdc85f3e0ee1 |
35 |
-DIST ngx_http_echo-0.60.tar.gz 52771 BLAKE2B b7e138e2244d5a5128f3af27ebc873f0597b10335e2c786efc3a1712f260a653c036421d114774c168b55565f4fc8ff2e5d788dc9a34dc2587343797b2928b80 SHA512 c455bee73cebd0752449472452d15614b9587ddd199263d366484ede890c4d108eacbbeaef31adc9dc7732b56ef2bfc73c0fef3366366db03a8ec3fdc27a985c |
36 |
DIST ngx_http_echo-0.61.tar.gz 53155 BLAKE2B 72565b5d79598b5dcd1c10fa0f718e749894ca5f1232d5aae60c61e268b5904af35fdcd35afcf72de93852af9e0ca58805d77cbc37919fba9012158b5545baab SHA512 c90b81a4e85a8e9beeb5ff591dc91adb25fa4e0b6cb47086b577e5fa36db2368442dd011187675e358781956c364b949bc4d920ca2b534481b21c9987d2a9a3b |
37 |
-DIST ngx_http_fancyindex-0.4.1.tar.gz 21130 BLAKE2B 9b38799e98e18c9ff7fd71c2a6cefccbac6f0e428f965a239de1b5cd64a69224240aa37f7d72157bbb148fe824aaf9c863221d8d6ad1835b76538e2384df16b1 SHA512 ce0043ad4a2b638c5d99244d6caaa65ad142cea78884084a9aeca5a9593c68dbe508c9e4dd85dc5722eb63ef386612bffc48d4b6fc1487df244fbcb7a73bffe1 |
38 |
DIST ngx_http_fancyindex-0.4.2.tar.gz 22047 BLAKE2B ce2cd4bffd7ec4cd0688ca79002b4cef70bb242a7c10dbc1a590786330eac628ee080b7bf9087a791ccb0e2e097cb1f8ef7d355ededccb323ecd7fa4f2a237d3 SHA512 aee121e4d25872f0eee6c8150c8c732767ab24c61dc4f6e3f86bd6edc53ad715f3c23045362954a1ad2086ff1002bca821b2e9a53b58b077cbda91a95077ef76 |
39 |
DIST ngx_http_headers_more-0.32.tar.gz 28033 BLAKE2B 51cff34f9a690a3c9a2a05b04084cdd51530b1f41baa1d487bd5bd4349d37a6cc48edffb78466572bee3e42aea10f56e1f8bc47d53a2790023ff831eaa72381f SHA512 e42582b45c3111de3940bbeb67ce161aca2d55adcfb00c61c12256fa0e36221d38723013f36edbcf6d1b520f8dfb49d4657df8a956e66d36e68425afad382bd1 |
40 |
DIST ngx_http_headers_more-0.33.tar.gz 28130 BLAKE2B fe3097a7700ce5da087058f7bb44c95164b75137031187400473f6833bf0e33e5c4920807225a6ff94174fe7dbd6186cca176a33a629ca0911faab6804bdd12a SHA512 13165b1b8d4be281b8bd2404fa48d456013d560bace094c81da08a35dc6a4f025a809a3ae3a42be6bbf67abbcbe41e0730aba06f905220f3baeb01e1192a7d37 |
41 |
DIST ngx_http_lua-0.10.10.tar.gz 611973 BLAKE2B c84d039087973cc6f718fd5cfcb043fd96893d790d2d65b448faf63ad7e3b8713d529c7804a436cc972bcabb9d4d3a8a605fe70a4ccf0a696dfc493656ac513c SHA512 3440e3fe714407f0ff61e0da207669655b443f7b70ef8a91693ea05ed96d8fde349d9c8ea30d5ff53ea3f8e4a5c7d0a2834e136c340b1b1365d62006339a1e4d |
42 |
DIST ngx_http_lua-0.10.11.tar.gz 616653 BLAKE2B 6985823752755b78b626f597600adf45592ce4c8dc3a513dd43b9f5152c9746a795faa3714124d74814ad88739dd8889de50e764ad2ea808c48570d1e297aeec SHA512 35e1510c9da71c8bdf028f4ac253404550a83bd904f6c5639697d78c76708625bb6deaa858a7d086b5582f71bb46578e8f804887a46ccfbaf5f4de8510cb1511 |
43 |
-DIST ngx_http_lua-0.10.8.tar.gz 606643 BLAKE2B 15eda2ebc599058ff61cbd3afdee17ce6f30f22ecaefcea6f1545728ccb2422ecdd6128e0860c3225981e9b100c9300b78e86c1a98884f36260628a62af30fd1 SHA512 ad621cec178eb37109f16ebc30dbab7b1ea344ac4b523ff1e6ad62364b8cf437488a89c593ca44b446b729a1c578e3a97685851847b4b16a147ac9eca8f23a2a |
44 |
DIST ngx_http_naxsi-0.55.3.tar.gz 187416 BLAKE2B de4b00bcfa3e81b7f339bde9f2517e228d2f914c1ac76babd7db1419168814d30f44623a67c0f79475c232ca456792cbdc8f2b6ef3ebd1524eff3f2acfa87685 SHA512 9e8f41a5cd1342cc9b8aa334a603842d14a256aab1f4a21205bb1278aecbb0c49e39c889d8113a5b41aad2efeaa2ed9f11cba6929173f50add91f54c4c59c8a0 |
45 |
DIST ngx_http_push_stream-0.5.2.tar.gz 182008 BLAKE2B b53c1269a5b96b35054011879dc2288ec7c9dd3965a1d4cea73fb7804626797b3cf7929ffa00fb0fc7479f5d6a7f8d006dbdde1ffa435f878c7cc9278e6cca00 SHA512 ee8bf9ece652da6aa5a39879298bba70d1842696545259f3f5e302cc61397b35f016364805805f9ab1914fc39ed2f07c015e042155789073e3d1fdc02a0783de |
46 |
DIST ngx_http_push_stream-0.5.4.tar.gz 183493 BLAKE2B ccae3113071cee38fa6a7accd580922dc2fc9fa22af737f400c2c5f59352d93ca6cceb47f2aee70dfc111afdf98d27aeb64ddc5a4dbf617359ea4da09486ac7f SHA512 467ae49409adb675979ff591f98df8c96d71ab5ebc2ef9b3c9430e38e7e84d311b4a98c2b1cb1886d895735223dd2a43370aab61b57b34adb1427c184e6b8c86 |
47 |
DIST ngx_http_slowfs_cache-1.10.tar.gz 11809 BLAKE2B 54ec1bd0d1cc43cdaafc93ebd46b33374c57351c7f022eae0351d6961680abb03d896e7f058e67c43c4fee300253354feccb92d00e62bf91250e251e1860ec03 SHA512 fbc9609a8d6913aeefe535f206b9e53477503f131934ead2ae5a6169e395af2f5fb54778704824d5eeb22a4ef40a11ebbcde580db62a631f70edcc2cfc06b15d |
48 |
DIST ngx_http_upload_progress-0.9.2-r1.tar.gz 17268 BLAKE2B 7bbbf52e326c64a008339d2f80f123630fd314f705224c8f1c7d0c90bb4d31a24aaa95df55c9022838179114a031731a894992960aecc727635e0e2a0761d2c4 SHA512 c31c46344d49704389722325a041b9cd170fa290acefe92cfc572c07f711cd3039de78f28df48ca7dcb79b2e4bbe442580aaaf4d92883fd3a14bf41d66dd9d8c |
49 |
-DIST ngx_http_upstream_check-0.3.0-10-gf3bdb7b.tar.gz 129060 BLAKE2B abaec02117c0ad0729e782f34e36a7b5547fffd300312c9fcccb718c3f6d0ff3a566756c21bd68209d102cff0418ca3d1f363c3aa898be0a49e2a003bb6eb1b9 SHA512 5b2ae6d305d24d0c64dc118fd3b0c23f5bf0e9a282e70e8d2c4eb946ed510263b5e845f64ca352784e34708cf9d98804cacf64b6c9efd712a395076dd0ba7c29 |
50 |
DIST ngx_http_upstream_check-31b1b42873fa56620d8a873ac13f5f26b52d0cd6.tar.gz 130052 BLAKE2B 0ff95fc9780193b514fc7b28f6c5c1a58942cd54472a495a1812a48ef4039390241c20c8a3e8dfd6168e87df3a9e3b37e9c33f11d13bdf5fb0d1f37041fe4ee8 SHA512 e7ea6712c27fd2610e8681b7f687e24c94cd7558d6f19f87568d4c2169115678a61c58b1cd3686a927173b566ff1e10cb1fb767fe63db61f860a77bac9792f9b |
51 |
DIST ngx_memc_module-0.18.tar.gz 37113 BLAKE2B e5b89c7c7a3e6f8ee7c1b2623fbec78851a9d7c1c37c1924e8c010b45a4e034afe504a5e228361ad88cf57e83ce06f5f6d635301f8201f1ebd7e99f30447d524 SHA512 8087bd361fb4e522493e66f93d59c9b13245d6eef0fe4a53f619d1826feb02af60769c0a04f87f2faf5308a44b794ef146a445bdbe7cbc7f21c0edaaba08c706 |
52 |
DIST ngx_metrics-0.1.1.tar.gz 2964 BLAKE2B 95d71ea26c949c345b83e353bd66a20df18cc8b2b93f692615a1b39c1f327393647f80e7a27e6929799a6e7e3469b61e1cd72f7821f7a820da4dd7cd9a96d85c SHA512 d36a8fb0104c83b6b564e03b351aa750cab08650264c74d6f786af357bfb7006b531a93270dd961896ea8dafe27e5db8548ede714c5f52c4742876bc73af4b5e |
53 |
|
54 |
diff --git a/www-servers/nginx/nginx-1.12.1.ebuild b/www-servers/nginx/nginx-1.12.1.ebuild |
55 |
deleted file mode 100644 |
56 |
index 5c7b643f437..00000000000 |
57 |
--- a/www-servers/nginx/nginx-1.12.1.ebuild |
58 |
+++ /dev/null |
59 |
@@ -1,1015 +0,0 @@ |
60 |
-# Copyright 1999-2017 Gentoo Foundation |
61 |
-# Distributed under the terms of the GNU General Public License v2 |
62 |
- |
63 |
-EAPI="6" |
64 |
- |
65 |
-# Maintainer notes: |
66 |
-# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
67 |
-# - any http-module activates the main http-functionality and overrides USE=-http |
68 |
-# - keep the following requirements in mind before adding external modules: |
69 |
-# * alive upstream |
70 |
-# * sane packaging |
71 |
-# * builds cleanly |
72 |
-# * does not need a patch for nginx core |
73 |
-# - TODO: test the google-perftools module (included in vanilla tarball) |
74 |
- |
75 |
-# prevent perl-module from adding automagic perl DEPENDs |
76 |
-GENTOO_DEPEND_ON_PERL="no" |
77 |
- |
78 |
-# devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license) |
79 |
-DEVEL_KIT_MODULE_PV="0.3.0" |
80 |
-DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1" |
81 |
-DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz" |
82 |
-DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}" |
83 |
- |
84 |
-# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) |
85 |
-HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.2" |
86 |
-HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1" |
87 |
-HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz" |
88 |
-HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" |
89 |
- |
90 |
-# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) |
91 |
-HTTP_HEADERS_MORE_MODULE_PV="0.32" |
92 |
-HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}" |
93 |
-HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" |
94 |
-HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" |
95 |
- |
96 |
-# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, https://github.com/FRiCKLE/ngx_cache_purge, BSD-2 license) |
97 |
-HTTP_CACHE_PURGE_MODULE_PV="2.3" |
98 |
-HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
99 |
-HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
100 |
-HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
101 |
- |
102 |
-# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
103 |
-HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
104 |
-HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
105 |
-HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
106 |
-HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
107 |
- |
108 |
-# http_fancyindex (https://github.com/aperezdc/ngx-fancyindex, BSD license) |
109 |
-HTTP_FANCYINDEX_MODULE_PV="0.4.1" |
110 |
-HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
111 |
-HTTP_FANCYINDEX_MODULE_URI="https://github.com/aperezdc/ngx-fancyindex/archive/v${HTTP_FANCYINDEX_MODULE_PV}.tar.gz" |
112 |
-HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
113 |
- |
114 |
-# http_lua (https://github.com/openresty/lua-nginx-module, BSD license) |
115 |
-HTTP_LUA_MODULE_PV="0.10.8" |
116 |
-HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}" |
117 |
-HTTP_LUA_MODULE_URI="https://github.com/openresty/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz" |
118 |
-HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}" |
119 |
- |
120 |
-# http_auth_pam (https://github.com/stogh/ngx_http_auth_pam_module/, http://web.iti.upv.es/~sto/nginx/, BSD-2 license) |
121 |
-HTTP_AUTH_PAM_MODULE_PV="1.5.1" |
122 |
-HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}" |
123 |
-HTTP_AUTH_PAM_MODULE_URI="https://github.com/stogh/ngx_http_auth_pam_module/archive/v${HTTP_AUTH_PAM_MODULE_PV}.tar.gz" |
124 |
-HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}" |
125 |
- |
126 |
-# http_upstream_check (https://github.com/yaoweibin/nginx_upstream_check_module, BSD license) |
127 |
-HTTP_UPSTREAM_CHECK_MODULE_PV="0.3.0-10-gf3bdb7b" |
128 |
-HTTP_UPSTREAM_CHECK_MODULE_P="ngx_http_upstream_check-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
129 |
-HTTP_UPSTREAM_CHECK_MODULE_URI="https://github.com/yaoweibin/nginx_upstream_check_module/archive/v${HTTP_UPSTREAM_CHECK_MODULE_PV}.tar.gz" |
130 |
-HTTP_UPSTREAM_CHECK_MODULE_WD="${WORKDIR}/nginx_upstream_check_module-f3bdb7b85a194e2ad58e3c306c1d021ee76da2f5" |
131 |
- |
132 |
-# http_metrics (https://github.com/zenops/ngx_metrics, BSD license) |
133 |
-HTTP_METRICS_MODULE_PV="0.1.1" |
134 |
-HTTP_METRICS_MODULE_P="ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
135 |
-HTTP_METRICS_MODULE_URI="https://github.com/madvertise/ngx_metrics/archive/v${HTTP_METRICS_MODULE_PV}.tar.gz" |
136 |
-HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
137 |
- |
138 |
-# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) |
139 |
-HTTP_NAXSI_MODULE_PV="0.55.3" |
140 |
-HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" |
141 |
-HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" |
142 |
-HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" |
143 |
- |
144 |
-# nginx-rtmp-module (https://github.com/arut/nginx-rtmp-module, BSD license) |
145 |
-RTMP_MODULE_PV="1.2.0" |
146 |
-RTMP_MODULE_P="ngx_rtmp-${RTMP_MODULE_PV}" |
147 |
-RTMP_MODULE_URI="https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_MODULE_PV}.tar.gz" |
148 |
-RTMP_MODULE_WD="${WORKDIR}/nginx-rtmp-module-${RTMP_MODULE_PV}" |
149 |
- |
150 |
-# nginx-dav-ext-module (https://github.com/arut/nginx-dav-ext-module, BSD license) |
151 |
-HTTP_DAV_EXT_MODULE_PV="0.0.3" |
152 |
-HTTP_DAV_EXT_MODULE_P="ngx_http_dav_ext-${HTTP_DAV_EXT_MODULE_PV}" |
153 |
-HTTP_DAV_EXT_MODULE_URI="https://github.com/arut/nginx-dav-ext-module/archive/v${HTTP_DAV_EXT_MODULE_PV}.tar.gz" |
154 |
-HTTP_DAV_EXT_MODULE_WD="${WORKDIR}/nginx-dav-ext-module-${HTTP_DAV_EXT_MODULE_PV}" |
155 |
- |
156 |
-# echo-nginx-module (https://github.com/openresty/echo-nginx-module, BSD license) |
157 |
-HTTP_ECHO_MODULE_PV="0.60" |
158 |
-HTTP_ECHO_MODULE_P="ngx_http_echo-${HTTP_ECHO_MODULE_PV}" |
159 |
-HTTP_ECHO_MODULE_URI="https://github.com/openresty/echo-nginx-module/archive/v${HTTP_ECHO_MODULE_PV}.tar.gz" |
160 |
-HTTP_ECHO_MODULE_WD="${WORKDIR}/echo-nginx-module-${HTTP_ECHO_MODULE_PV}" |
161 |
- |
162 |
-# mod_security for nginx (https://modsecurity.org/, Apache-2.0) |
163 |
-# keep the MODULE_P here consistent with upstream to avoid tarball duplication |
164 |
-HTTP_SECURITY_MODULE_PV="2.9.1" |
165 |
-HTTP_SECURITY_MODULE_P="modsecurity-${HTTP_SECURITY_MODULE_PV}" |
166 |
-HTTP_SECURITY_MODULE_URI="https://www.modsecurity.org/tarball/${HTTP_SECURITY_MODULE_PV}/${HTTP_SECURITY_MODULE_P}.tar.gz" |
167 |
-HTTP_SECURITY_MODULE_WD="${WORKDIR}/${HTTP_SECURITY_MODULE_P}" |
168 |
- |
169 |
-# push-stream-module (http://www.nginxpushstream.com, https://github.com/wandenberg/nginx-push-stream-module, GPL-3) |
170 |
-HTTP_PUSH_STREAM_MODULE_PV="0.5.2" |
171 |
-HTTP_PUSH_STREAM_MODULE_P="ngx_http_push_stream-${HTTP_PUSH_STREAM_MODULE_PV}" |
172 |
-HTTP_PUSH_STREAM_MODULE_URI="https://github.com/wandenberg/nginx-push-stream-module/archive/${HTTP_PUSH_STREAM_MODULE_PV}.tar.gz" |
173 |
-HTTP_PUSH_STREAM_MODULE_WD="${WORKDIR}/nginx-push-stream-module-${HTTP_PUSH_STREAM_MODULE_PV}" |
174 |
- |
175 |
-# sticky-module (https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng, BSD-2) |
176 |
-HTTP_STICKY_MODULE_PV="1.2.6-10-g08a395c66e42" |
177 |
-HTTP_STICKY_MODULE_P="nginx_http_sticky_module_ng-${HTTP_STICKY_MODULE_PV}" |
178 |
-HTTP_STICKY_MODULE_URI="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/${HTTP_STICKY_MODULE_PV}.tar.bz2" |
179 |
-HTTP_STICKY_MODULE_WD="${WORKDIR}/nginx-goodies-nginx-sticky-module-ng-08a395c66e42" |
180 |
- |
181 |
-# mogilefs-module (https://github.com/vkholodkov/nginx-mogilefs-module, BSD-2) |
182 |
-HTTP_MOGILEFS_MODULE_PV="1.0.4" |
183 |
-HTTP_MOGILEFS_MODULE_P="ngx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
184 |
-HTTP_MOGILEFS_MODULE_URI="https://github.com/vkholodkov/nginx-mogilefs-module/archive/${HTTP_MOGILEFS_MODULE_PV}.tar.gz" |
185 |
-HTTP_MOGILEFS_MODULE_WD="${WORKDIR}/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
186 |
- |
187 |
-# memc-module (https://github.com/openresty/memc-nginx-module, BSD-2) |
188 |
-HTTP_MEMC_MODULE_PV="0.18" |
189 |
-HTTP_MEMC_MODULE_P="ngx_memc_module-${HTTP_MEMC_MODULE_PV}" |
190 |
-HTTP_MEMC_MODULE_URI="https://github.com/openresty/memc-nginx-module/archive/v${HTTP_MEMC_MODULE_PV}.tar.gz" |
191 |
-HTTP_MEMC_MODULE_WD="${WORKDIR}/memc-nginx-module-${HTTP_MEMC_MODULE_PV}" |
192 |
- |
193 |
-# nginx-ldap-auth-module (https://github.com/kvspb/nginx-auth-ldap, BSD-2) |
194 |
-HTTP_LDAP_MODULE_PV="49a8b4d28fc4a518563c82e0b52821e5f37db1fc" |
195 |
-HTTP_LDAP_MODULE_P="nginx-auth-ldap-${HTTP_LDAP_MODULE_PV}" |
196 |
-HTTP_LDAP_MODULE_URI="https://github.com/kvspb/nginx-auth-ldap/archive/${HTTP_LDAP_MODULE_PV}.tar.gz" |
197 |
-HTTP_LDAP_MODULE_WD="${WORKDIR}/nginx-auth-ldap-${HTTP_LDAP_MODULE_PV}" |
198 |
- |
199 |
-# We handle deps below ourselves |
200 |
-SSL_DEPS_SKIP=1 |
201 |
-AUTOTOOLS_AUTO_DEPEND="no" |
202 |
- |
203 |
-inherit autotools ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib |
204 |
- |
205 |
-DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
206 |
-HOMEPAGE="https://nginx.org" |
207 |
-SRC_URI="https://nginx.org/download/${P}.tar.gz |
208 |
- ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
209 |
- nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
210 |
- nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) |
211 |
- nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) |
212 |
- nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz ) |
213 |
- nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz ) |
214 |
- nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz ) |
215 |
- nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz ) |
216 |
- nginx_modules_http_upstream_check? ( ${HTTP_UPSTREAM_CHECK_MODULE_URI} -> ${HTTP_UPSTREAM_CHECK_MODULE_P}.tar.gz ) |
217 |
- nginx_modules_http_metrics? ( ${HTTP_METRICS_MODULE_URI} -> ${HTTP_METRICS_MODULE_P}.tar.gz ) |
218 |
- nginx_modules_http_naxsi? ( ${HTTP_NAXSI_MODULE_URI} -> ${HTTP_NAXSI_MODULE_P}.tar.gz ) |
219 |
- rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz ) |
220 |
- nginx_modules_http_dav_ext? ( ${HTTP_DAV_EXT_MODULE_URI} -> ${HTTP_DAV_EXT_MODULE_P}.tar.gz ) |
221 |
- nginx_modules_http_echo? ( ${HTTP_ECHO_MODULE_URI} -> ${HTTP_ECHO_MODULE_P}.tar.gz ) |
222 |
- nginx_modules_http_security? ( ${HTTP_SECURITY_MODULE_URI} -> ${HTTP_SECURITY_MODULE_P}.tar.gz ) |
223 |
- nginx_modules_http_push_stream? ( ${HTTP_PUSH_STREAM_MODULE_URI} -> ${HTTP_PUSH_STREAM_MODULE_P}.tar.gz ) |
224 |
- nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) |
225 |
- nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz ) |
226 |
- nginx_modules_http_memc? ( ${HTTP_MEMC_MODULE_URI} -> ${HTTP_MEMC_MODULE_P}.tar.gz ) |
227 |
- nginx_modules_http_auth_ldap? ( ${HTTP_LDAP_MODULE_URI} -> ${HTTP_LDAP_MODULE_P}.tar.gz )" |
228 |
- |
229 |
-LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ |
230 |
- nginx_modules_http_security? ( Apache-2.0 ) |
231 |
- nginx_modules_http_push_stream? ( GPL-3 )" |
232 |
- |
233 |
-SLOT="0" |
234 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
235 |
- |
236 |
-# Package doesn't provide a real test suite |
237 |
-RESTRICT="test" |
238 |
- |
239 |
-NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif |
240 |
- fastcgi geo gzip limit_req limit_conn map memcached proxy referer |
241 |
- rewrite scgi ssi split_clients upstream_hash upstream_ip_hash |
242 |
- upstream_keepalive upstream_least_conn upstream_zone userid uwsgi" |
243 |
-NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip |
244 |
- gzip_static image_filter mp4 perl random_index realip secure_link |
245 |
- slice stub_status sub xslt" |
246 |
-NGINX_MODULES_STREAM_STD="access geo limit_conn map return split_clients |
247 |
- upstream_hash upstream_least_conn upstream_zone" |
248 |
-NGINX_MODULES_STREAM_OPT="geoip realip ssl_preread" |
249 |
-NGINX_MODULES_MAIL="imap pop3 smtp" |
250 |
-NGINX_MODULES_3RD=" |
251 |
- http_upload_progress |
252 |
- http_headers_more |
253 |
- http_cache_purge |
254 |
- http_slowfs_cache |
255 |
- http_fancyindex |
256 |
- http_lua |
257 |
- http_auth_pam |
258 |
- http_upstream_check |
259 |
- http_metrics |
260 |
- http_naxsi |
261 |
- http_dav_ext |
262 |
- http_echo |
263 |
- http_security |
264 |
- http_push_stream |
265 |
- http_sticky |
266 |
- http_mogilefs |
267 |
- http_memc |
268 |
- http_auth_ldap" |
269 |
- |
270 |
-IUSE="aio debug +http +http2 +http-cache +ipv6 libatomic libressl luajit +pcre |
271 |
- pcre-jit rtmp selinux ssl threads userland_GNU vim-syntax" |
272 |
- |
273 |
-for mod in $NGINX_MODULES_STD; do |
274 |
- IUSE="${IUSE} +nginx_modules_http_${mod}" |
275 |
-done |
276 |
- |
277 |
-for mod in $NGINX_MODULES_OPT; do |
278 |
- IUSE="${IUSE} nginx_modules_http_${mod}" |
279 |
-done |
280 |
- |
281 |
-for mod in $NGINX_MODULES_STREAM_STD; do |
282 |
- IUSE="${IUSE} nginx_modules_stream_${mod}" |
283 |
-done |
284 |
- |
285 |
-for mod in $NGINX_MODULES_STREAM_OPT; do |
286 |
- IUSE="${IUSE} nginx_modules_stream_${mod}" |
287 |
-done |
288 |
- |
289 |
-for mod in $NGINX_MODULES_MAIL; do |
290 |
- IUSE="${IUSE} nginx_modules_mail_${mod}" |
291 |
-done |
292 |
- |
293 |
-for mod in $NGINX_MODULES_3RD; do |
294 |
- IUSE="${IUSE} nginx_modules_${mod}" |
295 |
-done |
296 |
- |
297 |
-# Add so we can warn users updating about config changes |
298 |
-# @TODO: jbergstroem: remove on next release series |
299 |
-IUSE="${IUSE} nginx_modules_http_spdy" |
300 |
- |
301 |
-CDEPEND=" |
302 |
- pcre? ( dev-libs/libpcre:= ) |
303 |
- pcre-jit? ( dev-libs/libpcre:=[jit] ) |
304 |
- ssl? ( |
305 |
- !libressl? ( dev-libs/openssl:0= ) |
306 |
- libressl? ( dev-libs/libressl:= ) |
307 |
- ) |
308 |
- http2? ( |
309 |
- !libressl? ( >=dev-libs/openssl-1.0.1c:0= ) |
310 |
- libressl? ( dev-libs/libressl:= ) |
311 |
- ) |
312 |
- http-cache? ( |
313 |
- userland_GNU? ( |
314 |
- !libressl? ( dev-libs/openssl:0= ) |
315 |
- libressl? ( dev-libs/libressl:= ) |
316 |
- ) |
317 |
- ) |
318 |
- nginx_modules_http_geoip? ( dev-libs/geoip ) |
319 |
- nginx_modules_http_gunzip? ( sys-libs/zlib ) |
320 |
- nginx_modules_http_gzip? ( sys-libs/zlib ) |
321 |
- nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
322 |
- nginx_modules_http_image_filter? ( media-libs/gd:=[jpeg,png] ) |
323 |
- nginx_modules_http_perl? ( >=dev-lang/perl-5.8:= ) |
324 |
- nginx_modules_http_rewrite? ( dev-libs/libpcre:= ) |
325 |
- nginx_modules_http_secure_link? ( |
326 |
- userland_GNU? ( |
327 |
- !libressl? ( dev-libs/openssl:0= ) |
328 |
- libressl? ( dev-libs/libressl:= ) |
329 |
- ) |
330 |
- ) |
331 |
- nginx_modules_http_xslt? ( dev-libs/libxml2:= dev-libs/libxslt ) |
332 |
- nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) |
333 |
- nginx_modules_http_auth_pam? ( virtual/pam ) |
334 |
- nginx_modules_http_metrics? ( dev-libs/yajl:= ) |
335 |
- nginx_modules_http_dav_ext? ( dev-libs/expat ) |
336 |
- nginx_modules_http_security? ( |
337 |
- dev-libs/apr:= |
338 |
- dev-libs/apr-util:= |
339 |
- dev-libs/libxml2:= |
340 |
- net-misc/curl |
341 |
- www-servers/apache |
342 |
- ) |
343 |
- nginx_modules_http_auth_ldap? ( net-nds/openldap[ssl?] )" |
344 |
-RDEPEND="${CDEPEND} |
345 |
- selinux? ( sec-policy/selinux-nginx ) |
346 |
- !www-servers/nginx:mainline" |
347 |
-DEPEND="${CDEPEND} |
348 |
- nginx_modules_http_security? ( ${AUTOTOOLS_DEPEND} ) |
349 |
- arm? ( dev-libs/libatomic_ops ) |
350 |
- libatomic? ( dev-libs/libatomic_ops )" |
351 |
-PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" |
352 |
- |
353 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
354 |
- nginx_modules_http_lua? ( nginx_modules_http_rewrite ) |
355 |
- nginx_modules_http_naxsi? ( pcre ) |
356 |
- nginx_modules_http_dav_ext? ( nginx_modules_http_dav ) |
357 |
- nginx_modules_http_metrics? ( nginx_modules_http_stub_status ) |
358 |
- nginx_modules_http_security? ( pcre ) |
359 |
- nginx_modules_http_push_stream? ( ssl )" |
360 |
- |
361 |
-pkg_setup() { |
362 |
- NGINX_HOME="/var/lib/nginx" |
363 |
- NGINX_HOME_TMP="${NGINX_HOME}/tmp" |
364 |
- |
365 |
- ebegin "Creating nginx user and group" |
366 |
- enewgroup ${PN} |
367 |
- enewuser ${PN} -1 -1 "${NGINX_HOME}" ${PN} |
368 |
- eend $? |
369 |
- |
370 |
- if use libatomic; then |
371 |
- ewarn "GCC 4.1+ features built-in atomic operations." |
372 |
- ewarn "Using libatomic_ops is only needed if using" |
373 |
- ewarn "a different compiler or a GCC prior to 4.1" |
374 |
- fi |
375 |
- |
376 |
- if [[ -n $NGINX_ADD_MODULES ]]; then |
377 |
- ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
378 |
- ewarn "This nginx installation is not supported!" |
379 |
- ewarn "Make sure you can reproduce the bug without those modules" |
380 |
- ewarn "_before_ reporting bugs." |
381 |
- fi |
382 |
- |
383 |
- if use !http; then |
384 |
- ewarn "To actually disable all http-functionality you also have to disable" |
385 |
- ewarn "all nginx http modules." |
386 |
- fi |
387 |
- |
388 |
- if use nginx_modules_http_mogilefs && use threads; then |
389 |
- eerror "mogilefs won't compile with threads support." |
390 |
- eerror "Please disable either flag and try again." |
391 |
- die "Can't compile mogilefs with threads support" |
392 |
- fi |
393 |
-} |
394 |
- |
395 |
-src_prepare() { |
396 |
- eapply "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch" |
397 |
- eapply "${FILESDIR}/${PN}-httpoxy-mitigation-r1.patch" |
398 |
- |
399 |
- if use nginx_modules_http_echo; then |
400 |
- cd "${HTTP_ECHO_MODULE_WD}" || die |
401 |
- eapply "${FILESDIR}"/http_echo-nginx-1.11.11+.patch |
402 |
- cd "${S}" || die |
403 |
- fi |
404 |
- |
405 |
- if use nginx_modules_http_upstream_check; then |
406 |
- #eapply -p0 "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/check_1.11.1+.patch |
407 |
- eapply -p0 "${FILESDIR}"/http_upstream_check-nginx-1.11.5+.patch |
408 |
- fi |
409 |
- |
410 |
- if use nginx_modules_http_lua; then |
411 |
- cd "${HTTP_LUA_MODULE_WD}" || die |
412 |
- eapply -p1 "${FILESDIR}"/http_lua_nginx-1.11.11+-r1.patch |
413 |
- cd "${S}" || die |
414 |
- sed -i -e 's/-llua5.1/-llua/' "${HTTP_LUA_MODULE_WD}/config" || die |
415 |
- fi |
416 |
- |
417 |
- if use nginx_modules_http_security; then |
418 |
- cd "${HTTP_SECURITY_MODULE_WD}" || die |
419 |
- |
420 |
- eapply "${FILESDIR}"/http_security-pr_1158.patch |
421 |
- eapply "${FILESDIR}"/http_security-pr_1373.patch |
422 |
- |
423 |
- eautoreconf |
424 |
- |
425 |
- if use luajit ; then |
426 |
- sed -i \ |
427 |
- -e 's|^\(LUA_PKGNAMES\)=.*|\1="luajit"|' \ |
428 |
- configure || die |
429 |
- fi |
430 |
- |
431 |
- cd "${S}" || die |
432 |
- fi |
433 |
- |
434 |
- if use nginx_modules_http_upload_progress; then |
435 |
- cd "${HTTP_UPLOAD_PROGRESS_MODULE_WD}" || die |
436 |
- eapply "${FILESDIR}"/http_uploadprogress-issue_50-r1.patch |
437 |
- cd "${S}" || die |
438 |
- fi |
439 |
- |
440 |
- find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die |
441 |
- # We have config protection, don't rename etc files |
442 |
- sed -i 's:.default::' auto/install || die |
443 |
- # remove useless files |
444 |
- sed -i -e '/koi-/d' -e '/win-/d' auto/install || die |
445 |
- |
446 |
- # don't install to /etc/nginx/ if not in use |
447 |
- local module |
448 |
- for module in fastcgi scgi uwsgi ; do |
449 |
- if ! use nginx_modules_http_${module}; then |
450 |
- sed -i -e "/${module}/d" auto/install || die |
451 |
- fi |
452 |
- done |
453 |
- |
454 |
- eapply_user |
455 |
-} |
456 |
- |
457 |
-src_configure() { |
458 |
- # mod_security needs to generate nginx/modsecurity/config before including it |
459 |
- if use nginx_modules_http_security; then |
460 |
- cd "${HTTP_SECURITY_MODULE_WD}" || die |
461 |
- |
462 |
- ./configure \ |
463 |
- --enable-standalone-module \ |
464 |
- --disable-mlogc \ |
465 |
- --with-ssdeep=no \ |
466 |
- $(use_enable pcre-jit) \ |
467 |
- $(use_with nginx_modules_http_lua lua) || die "configure failed for mod_security" |
468 |
- |
469 |
- cd "${S}" || die |
470 |
- fi |
471 |
- |
472 |
- local myconf=() http_enabled= mail_enabled= stream_enabled= |
473 |
- |
474 |
- use aio && myconf+=( --with-file-aio ) |
475 |
- use debug && myconf+=( --with-debug ) |
476 |
- use http2 && myconf+=( --with-http_v2_module ) |
477 |
- use libatomic && myconf+=( --with-libatomic ) |
478 |
- use pcre && myconf+=( --with-pcre ) |
479 |
- use pcre-jit && myconf+=( --with-pcre-jit ) |
480 |
- use threads && myconf+=( --with-threads ) |
481 |
- |
482 |
- # HTTP modules |
483 |
- for mod in $NGINX_MODULES_STD; do |
484 |
- if use nginx_modules_http_${mod}; then |
485 |
- http_enabled=1 |
486 |
- else |
487 |
- myconf+=( --without-http_${mod}_module ) |
488 |
- fi |
489 |
- done |
490 |
- |
491 |
- for mod in $NGINX_MODULES_OPT; do |
492 |
- if use nginx_modules_http_${mod}; then |
493 |
- http_enabled=1 |
494 |
- myconf+=( --with-http_${mod}_module ) |
495 |
- fi |
496 |
- done |
497 |
- |
498 |
- if use nginx_modules_http_fastcgi; then |
499 |
- myconf+=( --with-http_realip_module ) |
500 |
- fi |
501 |
- |
502 |
- # third-party modules |
503 |
- if use nginx_modules_http_upload_progress; then |
504 |
- http_enabled=1 |
505 |
- myconf+=( --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD} ) |
506 |
- fi |
507 |
- |
508 |
- if use nginx_modules_http_headers_more; then |
509 |
- http_enabled=1 |
510 |
- myconf+=( --add-module=${HTTP_HEADERS_MORE_MODULE_WD} ) |
511 |
- fi |
512 |
- |
513 |
- if use nginx_modules_http_cache_purge; then |
514 |
- http_enabled=1 |
515 |
- myconf+=( --add-module=${HTTP_CACHE_PURGE_MODULE_WD} ) |
516 |
- fi |
517 |
- |
518 |
- if use nginx_modules_http_slowfs_cache; then |
519 |
- http_enabled=1 |
520 |
- myconf+=( --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD} ) |
521 |
- fi |
522 |
- |
523 |
- if use nginx_modules_http_fancyindex; then |
524 |
- http_enabled=1 |
525 |
- myconf+=( --add-module=${HTTP_FANCYINDEX_MODULE_WD} ) |
526 |
- fi |
527 |
- |
528 |
- if use nginx_modules_http_lua; then |
529 |
- http_enabled=1 |
530 |
- if use luajit; then |
531 |
- export LUAJIT_LIB=$(pkg-config --variable libdir luajit) |
532 |
- export LUAJIT_INC=$(pkg-config --variable includedir luajit) |
533 |
- else |
534 |
- export LUA_LIB=$(pkg-config --variable libdir lua) |
535 |
- export LUA_INC=$(pkg-config --variable includedir lua) |
536 |
- fi |
537 |
- myconf+=( --add-module=${DEVEL_KIT_MODULE_WD} ) |
538 |
- myconf+=( --add-module=${HTTP_LUA_MODULE_WD} ) |
539 |
- fi |
540 |
- |
541 |
- if use nginx_modules_http_auth_pam; then |
542 |
- http_enabled=1 |
543 |
- myconf+=( --add-module=${HTTP_AUTH_PAM_MODULE_WD} ) |
544 |
- fi |
545 |
- |
546 |
- if use nginx_modules_http_upstream_check; then |
547 |
- http_enabled=1 |
548 |
- myconf+=( --add-module=${HTTP_UPSTREAM_CHECK_MODULE_WD} ) |
549 |
- fi |
550 |
- |
551 |
- if use nginx_modules_http_metrics; then |
552 |
- http_enabled=1 |
553 |
- myconf+=( --add-module=${HTTP_METRICS_MODULE_WD} ) |
554 |
- fi |
555 |
- |
556 |
- if use nginx_modules_http_naxsi ; then |
557 |
- http_enabled=1 |
558 |
- myconf+=( --add-module=${HTTP_NAXSI_MODULE_WD} ) |
559 |
- fi |
560 |
- |
561 |
- if use rtmp ; then |
562 |
- http_enabled=1 |
563 |
- myconf+=( --add-module=${RTMP_MODULE_WD} ) |
564 |
- fi |
565 |
- |
566 |
- if use nginx_modules_http_dav_ext ; then |
567 |
- http_enabled=1 |
568 |
- myconf+=( --add-module=${HTTP_DAV_EXT_MODULE_WD} ) |
569 |
- fi |
570 |
- |
571 |
- if use nginx_modules_http_echo ; then |
572 |
- http_enabled=1 |
573 |
- myconf+=( --add-module=${HTTP_ECHO_MODULE_WD} ) |
574 |
- fi |
575 |
- |
576 |
- if use nginx_modules_http_security ; then |
577 |
- http_enabled=1 |
578 |
- myconf+=( --add-module=${HTTP_SECURITY_MODULE_WD}/nginx/modsecurity ) |
579 |
- fi |
580 |
- |
581 |
- if use nginx_modules_http_push_stream ; then |
582 |
- http_enabled=1 |
583 |
- myconf+=( --add-module=${HTTP_PUSH_STREAM_MODULE_WD} ) |
584 |
- fi |
585 |
- |
586 |
- if use nginx_modules_http_sticky ; then |
587 |
- http_enabled=1 |
588 |
- myconf+=( --add-module=${HTTP_STICKY_MODULE_WD} ) |
589 |
- fi |
590 |
- |
591 |
- if use nginx_modules_http_mogilefs ; then |
592 |
- http_enabled=1 |
593 |
- myconf+=( --add-module=${HTTP_MOGILEFS_MODULE_WD} ) |
594 |
- fi |
595 |
- |
596 |
- if use nginx_modules_http_memc ; then |
597 |
- http_enabled=1 |
598 |
- myconf+=( --add-module=${HTTP_MEMC_MODULE_WD} ) |
599 |
- fi |
600 |
- |
601 |
- if use nginx_modules_http_auth_ldap; then |
602 |
- http_enabled=1 |
603 |
- myconf+=( --add-module=${HTTP_LDAP_MODULE_WD} ) |
604 |
- fi |
605 |
- |
606 |
- if use http || use http-cache || use http2; then |
607 |
- http_enabled=1 |
608 |
- fi |
609 |
- |
610 |
- if [ $http_enabled ]; then |
611 |
- use http-cache || myconf+=( --without-http-cache ) |
612 |
- use ssl && myconf+=( --with-http_ssl_module ) |
613 |
- else |
614 |
- myconf+=( --without-http --without-http-cache ) |
615 |
- fi |
616 |
- |
617 |
- # Stream modules |
618 |
- for mod in $NGINX_MODULES_STREAM_STD; do |
619 |
- if use nginx_modules_stream_${mod}; then |
620 |
- stream_enabled=1 |
621 |
- else |
622 |
- myconf+=( --without-stream_${mod}_module ) |
623 |
- fi |
624 |
- done |
625 |
- |
626 |
- for mod in $NGINX_MODULES_STREAM_OPT; do |
627 |
- if use nginx_modules_stream_${mod}; then |
628 |
- stream_enabled=1 |
629 |
- myconf+=( --with-stream_${mod}_module ) |
630 |
- fi |
631 |
- done |
632 |
- |
633 |
- if [ $stream_enabled ]; then |
634 |
- myconf+=( --with-stream ) |
635 |
- use ssl && myconf+=( --with-stream_ssl_module ) |
636 |
- fi |
637 |
- |
638 |
- # MAIL modules |
639 |
- for mod in $NGINX_MODULES_MAIL; do |
640 |
- if use nginx_modules_mail_${mod}; then |
641 |
- mail_enabled=1 |
642 |
- else |
643 |
- myconf+=( --without-mail_${mod}_module ) |
644 |
- fi |
645 |
- done |
646 |
- |
647 |
- if [ $mail_enabled ]; then |
648 |
- myconf+=( --with-mail ) |
649 |
- use ssl && myconf+=( --with-mail_ssl_module ) |
650 |
- fi |
651 |
- |
652 |
- # custom modules |
653 |
- for mod in $NGINX_ADD_MODULES; do |
654 |
- myconf+=( --add-module=${mod} ) |
655 |
- done |
656 |
- |
657 |
- # https://bugs.gentoo.org/286772 |
658 |
- export LANG=C LC_ALL=C |
659 |
- tc-export CC |
660 |
- |
661 |
- if ! use prefix; then |
662 |
- myconf+=( --user=${PN} ) |
663 |
- myconf+=( --group=${PN} ) |
664 |
- fi |
665 |
- |
666 |
- local WITHOUT_IPV6= |
667 |
- if ! use ipv6; then |
668 |
- WITHOUT_IPV6=" -DNGX_HAVE_INET6=0" |
669 |
- fi |
670 |
- |
671 |
- ./configure \ |
672 |
- --prefix="${EPREFIX}"/usr \ |
673 |
- --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \ |
674 |
- --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \ |
675 |
- --pid-path="${EPREFIX}"/run/${PN}.pid \ |
676 |
- --lock-path="${EPREFIX}"/run/lock/${PN}.lock \ |
677 |
- --with-cc-opt="-I${EROOT}usr/include${WITHOUT_IPV6}" \ |
678 |
- --with-ld-opt="-L${EROOT}usr/$(get_libdir)" \ |
679 |
- --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \ |
680 |
- --http-client-body-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/client \ |
681 |
- --http-proxy-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/proxy \ |
682 |
- --http-fastcgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/fastcgi \ |
683 |
- --http-scgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/scgi \ |
684 |
- --http-uwsgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/uwsgi \ |
685 |
- --with-compat \ |
686 |
- "${myconf[@]}" || die "configure failed" |
687 |
- |
688 |
- # A purely cosmetic change that makes nginx -V more readable. This can be |
689 |
- # good if people outside the gentoo community would troubleshoot and |
690 |
- # question the users setup. |
691 |
- sed -i -e "s|${WORKDIR}|external_module|g" objs/ngx_auto_config.h || die |
692 |
-} |
693 |
- |
694 |
-src_compile() { |
695 |
- use nginx_modules_http_security && emake -C "${HTTP_SECURITY_MODULE_WD}" |
696 |
- |
697 |
- # https://bugs.gentoo.org/286772 |
698 |
- export LANG=C LC_ALL=C |
699 |
- emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" |
700 |
-} |
701 |
- |
702 |
-src_install() { |
703 |
- emake DESTDIR="${D%/}" install |
704 |
- |
705 |
- cp "${FILESDIR}"/nginx.conf-r2 "${ED}"etc/nginx/nginx.conf || die |
706 |
- |
707 |
- newinitd "${FILESDIR}"/nginx.initd-r4 nginx |
708 |
- newconfd "${FILESDIR}"/nginx.confd nginx |
709 |
- |
710 |
- systemd_newunit "${FILESDIR}"/nginx.service-r1 nginx.service |
711 |
- |
712 |
- doman man/nginx.8 |
713 |
- dodoc CHANGES* README |
714 |
- |
715 |
- # just keepdir. do not copy the default htdocs files (bug #449136) |
716 |
- keepdir /var/www/localhost |
717 |
- rm -rf "${D}"usr/html || die |
718 |
- |
719 |
- # set up a list of directories to keep |
720 |
- local keepdir_list="${NGINX_HOME_TMP}"/client |
721 |
- local module |
722 |
- for module in proxy fastcgi scgi uwsgi; do |
723 |
- use nginx_modules_http_${module} && keepdir_list+=" ${NGINX_HOME_TMP}/${module}" |
724 |
- done |
725 |
- |
726 |
- keepdir /var/log/nginx ${keepdir_list} |
727 |
- |
728 |
- # this solves a problem with SELinux where nginx doesn't see the directories |
729 |
- # as root and tries to create them as nginx |
730 |
- fperms 0750 "${NGINX_HOME_TMP}" |
731 |
- fowners ${PN}:0 "${NGINX_HOME_TMP}" |
732 |
- |
733 |
- fperms 0700 ${keepdir_list} |
734 |
- fowners ${PN}:${PN} ${keepdir_list} |
735 |
- |
736 |
- fperms 0710 /var/log/nginx |
737 |
- fowners 0:${PN} /var/log/nginx |
738 |
- |
739 |
- # logrotate |
740 |
- insinto /etc/logrotate.d |
741 |
- newins "${FILESDIR}"/nginx.logrotate-r1 nginx |
742 |
- |
743 |
- if use nginx_modules_http_perl; then |
744 |
- cd "${S}"/objs/src/http/modules/perl/ || die |
745 |
- emake DESTDIR="${D}" INSTALLDIRS=vendor |
746 |
- perl_delete_localpod |
747 |
- cd "${S}" || die |
748 |
- fi |
749 |
- |
750 |
- if use nginx_modules_http_cache_purge; then |
751 |
- docinto ${HTTP_CACHE_PURGE_MODULE_P} |
752 |
- dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md} |
753 |
- fi |
754 |
- |
755 |
- if use nginx_modules_http_slowfs_cache; then |
756 |
- docinto ${HTTP_SLOWFS_CACHE_MODULE_P} |
757 |
- dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md} |
758 |
- fi |
759 |
- |
760 |
- if use nginx_modules_http_fancyindex; then |
761 |
- docinto ${HTTP_FANCYINDEX_MODULE_P} |
762 |
- dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst |
763 |
- fi |
764 |
- |
765 |
- if use nginx_modules_http_lua; then |
766 |
- docinto ${HTTP_LUA_MODULE_P} |
767 |
- dodoc "${HTTP_LUA_MODULE_WD}"/README.markdown |
768 |
- fi |
769 |
- |
770 |
- if use nginx_modules_http_auth_pam; then |
771 |
- docinto ${HTTP_AUTH_PAM_MODULE_P} |
772 |
- dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README.md,ChangeLog} |
773 |
- fi |
774 |
- |
775 |
- if use nginx_modules_http_upstream_check; then |
776 |
- docinto ${HTTP_UPSTREAM_CHECK_MODULE_P} |
777 |
- dodoc "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/{README,CHANGES} |
778 |
- fi |
779 |
- |
780 |
- if use nginx_modules_http_naxsi; then |
781 |
- insinto /etc/nginx |
782 |
- doins "${HTTP_NAXSI_MODULE_WD}"/../naxsi_config/naxsi_core.rules |
783 |
- fi |
784 |
- |
785 |
- if use rtmp; then |
786 |
- docinto ${RTMP_MODULE_P} |
787 |
- dodoc "${RTMP_MODULE_WD}"/{AUTHORS,README.md,stat.xsl} |
788 |
- fi |
789 |
- |
790 |
- if use nginx_modules_http_dav_ext; then |
791 |
- docinto ${HTTP_DAV_EXT_MODULE_P} |
792 |
- dodoc "${HTTP_DAV_EXT_MODULE_WD}"/README |
793 |
- fi |
794 |
- |
795 |
- if use nginx_modules_http_echo; then |
796 |
- docinto ${HTTP_ECHO_MODULE_P} |
797 |
- dodoc "${HTTP_ECHO_MODULE_WD}"/README.markdown |
798 |
- fi |
799 |
- |
800 |
- if use nginx_modules_http_security; then |
801 |
- docinto ${HTTP_SECURITY_MODULE_P} |
802 |
- dodoc "${HTTP_SECURITY_MODULE_WD}"/{CHANGES,README.TXT,authors.txt} |
803 |
- fi |
804 |
- |
805 |
- if use nginx_modules_http_push_stream; then |
806 |
- docinto ${HTTP_PUSH_STREAM_MODULE_P} |
807 |
- dodoc "${HTTP_PUSH_STREAM_MODULE_WD}"/{AUTHORS,CHANGELOG.textile,README.textile} |
808 |
- fi |
809 |
- |
810 |
- if use nginx_modules_http_sticky; then |
811 |
- docinto ${HTTP_STICKY_MODULE_P} |
812 |
- dodoc "${HTTP_STICKY_MODULE_WD}"/{README.md,Changelog.txt,docs/sticky.pdf} |
813 |
- fi |
814 |
- |
815 |
- if use nginx_modules_http_memc; then |
816 |
- docinto ${HTTP_MEMC_MODULE_P} |
817 |
- dodoc "${HTTP_MEMC_MODULE_WD}"/README.markdown |
818 |
- fi |
819 |
- |
820 |
- if use nginx_modules_http_auth_ldap; then |
821 |
- docinto ${HTTP_LDAP_MODULE_P} |
822 |
- dodoc "${HTTP_LDAP_MODULE_WD}"/example.conf |
823 |
- fi |
824 |
-} |
825 |
- |
826 |
-pkg_postinst() { |
827 |
- if use ssl; then |
828 |
- if [[ ! -f "${EROOT}"etc/ssl/${PN}/${PN}.key ]]; then |
829 |
- install_cert /etc/ssl/${PN}/${PN} |
830 |
- use prefix || chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
831 |
- fi |
832 |
- fi |
833 |
- |
834 |
- if use nginx_modules_http_spdy; then |
835 |
- ewarn "" |
836 |
- ewarn "In nginx 1.9.5 the spdy module was superseded by http2." |
837 |
- ewarn "Update your configs and package.use accordingly." |
838 |
- fi |
839 |
- |
840 |
- if use nginx_modules_http_lua; then |
841 |
- ewarn "" |
842 |
- ewarn "While you can build lua 3rd party module against ${P}" |
843 |
- ewarn "the author warns that >=${PN}-1.11.11 is still not an" |
844 |
- ewarn "officially supported target yet. You are on your own." |
845 |
- ewarn "Expect runtime failures, memory leaks and other problems!" |
846 |
- fi |
847 |
- |
848 |
- if use nginx_modules_http_lua && use http2; then |
849 |
- ewarn "" |
850 |
- ewarn "Lua 3rd party module author warns against using ${P} with" |
851 |
- ewarn "NGINX_MODULES_HTTP=\"lua http2\". For more info, see http://git.io/OldLsg" |
852 |
- fi |
853 |
- |
854 |
- local _n_permission_layout_checks=0 |
855 |
- local _has_to_adjust_permissions=0 |
856 |
- local _has_to_show_permission_warning=0 |
857 |
- |
858 |
- # Defaults to 1 to inform people doing a fresh installation |
859 |
- # that we ship modified {scgi,uwsgi,fastcgi}_params files |
860 |
- local _has_to_show_httpoxy_mitigation_notice=1 |
861 |
- |
862 |
- local _replacing_version= |
863 |
- for _replacing_version in ${REPLACING_VERSIONS}; do |
864 |
- _n_permission_layout_checks=$((${_n_permission_layout_checks}+1)) |
865 |
- |
866 |
- if [[ ${_n_permission_layout_checks} -gt 1 ]]; then |
867 |
- # Should never happen: |
868 |
- # Package is abusing slots but doesn't allow multiple parallel installations. |
869 |
- # If we run into this situation it is unsafe to automatically adjust any |
870 |
- # permission... |
871 |
- _has_to_show_permission_warning=1 |
872 |
- |
873 |
- ewarn "Replacing multiple ${PN}' versions is unsupported! " \ |
874 |
- "You will have to adjust permissions on your own." |
875 |
- |
876 |
- break |
877 |
- fi |
878 |
- |
879 |
- local _replacing_version_branch=$(get_version_component_range 1-2 "${_replacing_version}") |
880 |
- debug-print "Updating an existing installation (v${_replacing_version}; branch '${_replacing_version_branch}') ..." |
881 |
- |
882 |
- # Do we need to adjust permissions to fix CVE-2013-0337 (bug #458726, #469094)? |
883 |
- # This was before we introduced multiple nginx versions so we |
884 |
- # do not need to distinguish between stable and mainline |
885 |
- local _need_to_fix_CVE2013_0337=1 |
886 |
- |
887 |
- if version_is_at_least "1.4.1-r2" "${_replacing_version}"; then |
888 |
- # We are updating an installation which should already be fixed |
889 |
- _need_to_fix_CVE2013_0337=0 |
890 |
- debug-print "Skipping CVE-2013-0337 ... existing installation should not be affected!" |
891 |
- else |
892 |
- _has_to_adjust_permissions=1 |
893 |
- debug-print "Need to adjust permissions to fix CVE-2013-0337!" |
894 |
- fi |
895 |
- |
896 |
- # Do we need to inform about HTTPoxy mitigation? |
897 |
- # In repository since commit 8be44f76d4ac02cebcd1e0e6e6284bb72d054b0f |
898 |
- if ! version_is_at_least "1.10" "${_replacing_version_branch}"; then |
899 |
- # Updating from <1.10 |
900 |
- _has_to_show_httpoxy_mitigation_notice=1 |
901 |
- debug-print "Need to inform about HTTPoxy mitigation!" |
902 |
- else |
903 |
- # Updating from >=1.10 |
904 |
- local _fixed_in_pvr= |
905 |
- case "${_replacing_version_branch}" in |
906 |
- "1.10") |
907 |
- _fixed_in_pvr="1.10.1-r2" |
908 |
- ;; |
909 |
- "1.11") |
910 |
- _fixed_in_pvr="1.11.3-r1" |
911 |
- ;; |
912 |
- *) |
913 |
- # This should be any future branch. |
914 |
- # If we run this code it is safe to assume that the user has |
915 |
- # already seen the HTTPoxy mitigation notice because he/she is doing |
916 |
- # an update from previous version where we have already shown |
917 |
- # the warning. Otherwise, we wouldn't hit this code path ... |
918 |
- _fixed_in_pvr= |
919 |
- esac |
920 |
- |
921 |
- if [[ -z "${_fixed_in_pvr}" ]] || version_is_at_least "${_fixed_in_pvr}" "${_replacing_version}"; then |
922 |
- # We are updating an installation where we already informed |
923 |
- # that we are mitigating HTTPoxy per default |
924 |
- _has_to_show_httpoxy_mitigation_notice=0 |
925 |
- debug-print "No need to inform about HTTPoxy mitigation ... information was already shown for existing installation!" |
926 |
- else |
927 |
- _has_to_show_httpoxy_mitigation_notice=1 |
928 |
- debug-print "Need to inform about HTTPoxy mitigation!" |
929 |
- fi |
930 |
- fi |
931 |
- |
932 |
- # Do we need to adjust permissions to fix CVE-2016-1247 (bug #605008)? |
933 |
- # All branches up to 1.11 are affected |
934 |
- local _need_to_fix_CVE2016_1247=1 |
935 |
- |
936 |
- if ! version_is_at_least "1.10" "${_replacing_version_branch}"; then |
937 |
- # Updating from <1.10 |
938 |
- _has_to_adjust_permissions=1 |
939 |
- debug-print "Need to adjust permissions to fix CVE-2016-1247!" |
940 |
- else |
941 |
- # Updating from >=1.10 |
942 |
- local _fixed_in_pvr= |
943 |
- case "${_replacing_version_branch}" in |
944 |
- "1.10") |
945 |
- _fixed_in_pvr="1.10.2-r3" |
946 |
- ;; |
947 |
- "1.11") |
948 |
- _fixed_in_pvr="1.11.6-r1" |
949 |
- ;; |
950 |
- *) |
951 |
- # This should be any future branch. |
952 |
- # If we run this code it is safe to assume that we have already |
953 |
- # adjusted permissions or were never affected because user is |
954 |
- # doing an update from previous version which was safe or did |
955 |
- # the adjustments. Otherwise, we wouldn't hit this code path ... |
956 |
- _fixed_in_pvr= |
957 |
- esac |
958 |
- |
959 |
- if [[ -z "${_fixed_in_pvr}" ]] || version_is_at_least "${_fixed_in_pvr}" "${_replacing_version}"; then |
960 |
- # We are updating an installation which should already be adjusted |
961 |
- # or which was never affected |
962 |
- _need_to_fix_CVE2016_1247=0 |
963 |
- debug-print "Skipping CVE-2016-1247 ... existing installation should not be affected!" |
964 |
- else |
965 |
- _has_to_adjust_permissions=1 |
966 |
- debug-print "Need to adjust permissions to fix CVE-2016-1247!" |
967 |
- fi |
968 |
- fi |
969 |
- done |
970 |
- |
971 |
- if [[ ${_has_to_adjust_permissions} -eq 1 ]]; then |
972 |
- # We do not DIE when chmod/chown commands are failing because |
973 |
- # package is already merged on user's system at this stage |
974 |
- # and we cannot retry without losing the information that |
975 |
- # the existing installation needs to adjust permissions. |
976 |
- # Instead we are going to a show a big warning ... |
977 |
- |
978 |
- if [[ ${_has_to_show_permission_warning} -eq 0 ]] && [[ ${_need_to_fix_CVE2013_0337} -eq 1 ]]; then |
979 |
- ewarn "" |
980 |
- ewarn "The world-readable bit (if set) has been removed from the" |
981 |
- ewarn "following directories to mitigate a security bug" |
982 |
- ewarn "(CVE-2013-0337, bug #458726):" |
983 |
- ewarn "" |
984 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
985 |
- ewarn " ${EPREFIX%/}${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi}" |
986 |
- ewarn "" |
987 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
988 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
989 |
- ewarn "Furthermore nginx' temp directories got moved to '${EPREFIX%/}${NGINX_HOME_TMP}'" |
990 |
- chmod o-rwx \ |
991 |
- "${EPREFIX%/}"/var/log/nginx \ |
992 |
- "${EPREFIX%/}"${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi} || \ |
993 |
- _has_to_show_permission_warning=1 |
994 |
- fi |
995 |
- |
996 |
- if [[ ${_has_to_show_permission_warning} -eq 0 ]] && [[ ${_need_to_fix_CVE2016_1247} -eq 1 ]]; then |
997 |
- ewarn "" |
998 |
- ewarn "The permissions on the following directory have been reset in" |
999 |
- ewarn "order to mitigate a security bug (CVE-2016-1247, bug #605008):" |
1000 |
- ewarn "" |
1001 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
1002 |
- ewarn "" |
1003 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
1004 |
- ewarn "Also ensure that no other log directory used by any of your" |
1005 |
- ewarn "vhost(s) is not writeable for nginx user. Any of your log files" |
1006 |
- ewarn "used by nginx can be abused to escalate privileges!" |
1007 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
1008 |
- chown 0:nginx "${EPREFIX%/}"/var/log/nginx || _has_to_show_permission_warning=1 |
1009 |
- chmod 710 "${EPREFIX%/}"/var/log/nginx || _has_to_show_permission_warning=1 |
1010 |
- fi |
1011 |
- |
1012 |
- if [[ ${_has_to_show_permission_warning} -eq 1 ]]; then |
1013 |
- # Should never happen ... |
1014 |
- ewarn "" |
1015 |
- ewarn "*************************************************************" |
1016 |
- ewarn "*************** W A R N I N G ***************" |
1017 |
- ewarn "*************************************************************" |
1018 |
- ewarn "The one-time only attempt to adjust permissions of the" |
1019 |
- ewarn "existing nginx installation failed. Be aware that we will not" |
1020 |
- ewarn "try to adjust the same permissions again because now you are" |
1021 |
- ewarn "using a nginx version where we expect that the permissions" |
1022 |
- ewarn "are already adjusted or that you know what you are doing and" |
1023 |
- ewarn "want to keep custom permissions." |
1024 |
- ewarn "" |
1025 |
- fi |
1026 |
- fi |
1027 |
- |
1028 |
- # Sanity check for CVE-2016-1247 |
1029 |
- # Required to warn users who received the warning above and thought |
1030 |
- # they could fix it by unmerging and re-merging the package or have |
1031 |
- # unmerged a affected installation on purpose in the past leaving |
1032 |
- # /var/log/nginx on their system due to keepdir/non-empty folder |
1033 |
- # and are now installing the package again. |
1034 |
- local _sanity_check_testfile=$(mktemp --dry-run "${EPREFIX%/}"/var/log/nginx/.CVE-2016-1247.XXXXXXXXX) |
1035 |
- su -s /bin/sh -c "touch ${_sanity_check_testfile}" nginx >&/dev/null |
1036 |
- if [ $? -eq 0 ] ; then |
1037 |
- # Cleanup -- no reason to die here! |
1038 |
- rm -f "${_sanity_check_testfile}" |
1039 |
- |
1040 |
- ewarn "" |
1041 |
- ewarn "*************************************************************" |
1042 |
- ewarn "*************** W A R N I N G ***************" |
1043 |
- ewarn "*************************************************************" |
1044 |
- ewarn "Looks like your installation is vulnerable to CVE-2016-1247" |
1045 |
- ewarn "(bug #605008) because nginx user is able to create files in" |
1046 |
- ewarn "" |
1047 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
1048 |
- ewarn "" |
1049 |
- ewarn "Also ensure that no other log directory used by any of your" |
1050 |
- ewarn "vhost(s) is not writeable for nginx user. Any of your log files" |
1051 |
- ewarn "used by nginx can be abused to escalate privileges!" |
1052 |
- fi |
1053 |
- |
1054 |
- if [[ ${_has_to_show_httpoxy_mitigation_notice} -eq 1 ]]; then |
1055 |
- # HTTPoxy mitigation |
1056 |
- ewarn "" |
1057 |
- ewarn "This nginx installation comes with a mitigation for the HTTPoxy" |
1058 |
- ewarn "vulnerability for FastCGI, SCGI and uWSGI applications by setting" |
1059 |
- ewarn "the HTTP_PROXY parameter to an empty string per default when you" |
1060 |
- ewarn "are sourcing one of the default" |
1061 |
- ewarn "" |
1062 |
- ewarn " - 'fastcgi_params' or 'fastcgi.conf'" |
1063 |
- ewarn " - 'scgi_params'" |
1064 |
- ewarn " - 'uwsgi_params'" |
1065 |
- ewarn "" |
1066 |
- ewarn "files in your server block(s)." |
1067 |
- ewarn "" |
1068 |
- ewarn "If this is causing any problems for you make sure that you are sourcing the" |
1069 |
- ewarn "default parameters _before_ you set your own values." |
1070 |
- ewarn "If you are relying on user-supplied proxy values you have to remove the" |
1071 |
- ewarn "correlating lines from the file(s) mentioned above." |
1072 |
- ewarn "" |
1073 |
- fi |
1074 |
-} |
1075 |
|
1076 |
diff --git a/www-servers/nginx/nginx-1.13.7.ebuild b/www-servers/nginx/nginx-1.13.7.ebuild |
1077 |
deleted file mode 100644 |
1078 |
index b0d71137e94..00000000000 |
1079 |
--- a/www-servers/nginx/nginx-1.13.7.ebuild |
1080 |
+++ /dev/null |
1081 |
@@ -1,1006 +0,0 @@ |
1082 |
-# Copyright 1999-2017 Gentoo Foundation |
1083 |
-# Distributed under the terms of the GNU General Public License v2 |
1084 |
- |
1085 |
-EAPI="6" |
1086 |
- |
1087 |
-# Maintainer notes: |
1088 |
-# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
1089 |
-# - any http-module activates the main http-functionality and overrides USE=-http |
1090 |
-# - keep the following requirements in mind before adding external modules: |
1091 |
-# * alive upstream |
1092 |
-# * sane packaging |
1093 |
-# * builds cleanly |
1094 |
-# * does not need a patch for nginx core |
1095 |
-# - TODO: test the google-perftools module (included in vanilla tarball) |
1096 |
- |
1097 |
-# prevent perl-module from adding automagic perl DEPENDs |
1098 |
-GENTOO_DEPEND_ON_PERL="no" |
1099 |
- |
1100 |
-# devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license) |
1101 |
-DEVEL_KIT_MODULE_PV="0.3.0" |
1102 |
-DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1" |
1103 |
-DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz" |
1104 |
-DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}" |
1105 |
- |
1106 |
-# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) |
1107 |
-HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.2" |
1108 |
-HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1" |
1109 |
-HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz" |
1110 |
-HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" |
1111 |
- |
1112 |
-# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) |
1113 |
-HTTP_HEADERS_MORE_MODULE_PV="0.33" |
1114 |
-HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}" |
1115 |
-HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" |
1116 |
-HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" |
1117 |
- |
1118 |
-# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, https://github.com/FRiCKLE/ngx_cache_purge, BSD-2 license) |
1119 |
-HTTP_CACHE_PURGE_MODULE_PV="2.3" |
1120 |
-HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
1121 |
-HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
1122 |
-HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
1123 |
- |
1124 |
-# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
1125 |
-HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
1126 |
-HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
1127 |
-HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
1128 |
-HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
1129 |
- |
1130 |
-# http_fancyindex (https://github.com/aperezdc/ngx-fancyindex, BSD license) |
1131 |
-HTTP_FANCYINDEX_MODULE_PV="0.4.2" |
1132 |
-HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
1133 |
-HTTP_FANCYINDEX_MODULE_URI="https://github.com/aperezdc/ngx-fancyindex/archive/v${HTTP_FANCYINDEX_MODULE_PV}.tar.gz" |
1134 |
-HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
1135 |
- |
1136 |
-# http_lua (https://github.com/openresty/lua-nginx-module, BSD license) |
1137 |
-HTTP_LUA_MODULE_PV="0.10.11" |
1138 |
-HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}" |
1139 |
-HTTP_LUA_MODULE_URI="https://github.com/openresty/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz" |
1140 |
-HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}" |
1141 |
- |
1142 |
-# http_auth_pam (https://github.com/stogh/ngx_http_auth_pam_module/, http://web.iti.upv.es/~sto/nginx/, BSD-2 license) |
1143 |
-HTTP_AUTH_PAM_MODULE_PV="1.5.1" |
1144 |
-HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}" |
1145 |
-HTTP_AUTH_PAM_MODULE_URI="https://github.com/stogh/ngx_http_auth_pam_module/archive/v${HTTP_AUTH_PAM_MODULE_PV}.tar.gz" |
1146 |
-HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}" |
1147 |
- |
1148 |
-# http_upstream_check (https://github.com/yaoweibin/nginx_upstream_check_module, BSD license) |
1149 |
-HTTP_UPSTREAM_CHECK_MODULE_PV="31b1b42873fa56620d8a873ac13f5f26b52d0cd6" |
1150 |
-HTTP_UPSTREAM_CHECK_MODULE_P="ngx_http_upstream_check-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
1151 |
-HTTP_UPSTREAM_CHECK_MODULE_URI="https://github.com/yaoweibin/nginx_upstream_check_module/archive/${HTTP_UPSTREAM_CHECK_MODULE_PV}.tar.gz" |
1152 |
-HTTP_UPSTREAM_CHECK_MODULE_WD="${WORKDIR}/nginx_upstream_check_module-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
1153 |
- |
1154 |
-# http_metrics (https://github.com/zenops/ngx_metrics, BSD license) |
1155 |
-HTTP_METRICS_MODULE_PV="0.1.1" |
1156 |
-HTTP_METRICS_MODULE_P="ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
1157 |
-HTTP_METRICS_MODULE_URI="https://github.com/madvertise/ngx_metrics/archive/v${HTTP_METRICS_MODULE_PV}.tar.gz" |
1158 |
-HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
1159 |
- |
1160 |
-# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) |
1161 |
-HTTP_NAXSI_MODULE_PV="0.55.3" |
1162 |
-HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" |
1163 |
-HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" |
1164 |
-HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" |
1165 |
- |
1166 |
-# nginx-rtmp-module (https://github.com/arut/nginx-rtmp-module, BSD license) |
1167 |
-RTMP_MODULE_PV="1.2.0" |
1168 |
-RTMP_MODULE_P="ngx_rtmp-${RTMP_MODULE_PV}" |
1169 |
-RTMP_MODULE_URI="https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_MODULE_PV}.tar.gz" |
1170 |
-RTMP_MODULE_WD="${WORKDIR}/nginx-rtmp-module-${RTMP_MODULE_PV}" |
1171 |
- |
1172 |
-# nginx-dav-ext-module (https://github.com/arut/nginx-dav-ext-module, BSD license) |
1173 |
-HTTP_DAV_EXT_MODULE_PV="0.1.0" |
1174 |
-HTTP_DAV_EXT_MODULE_P="ngx_http_dav_ext-${HTTP_DAV_EXT_MODULE_PV}" |
1175 |
-HTTP_DAV_EXT_MODULE_URI="https://github.com/arut/nginx-dav-ext-module/archive/v${HTTP_DAV_EXT_MODULE_PV}.tar.gz" |
1176 |
-HTTP_DAV_EXT_MODULE_WD="${WORKDIR}/nginx-dav-ext-module-${HTTP_DAV_EXT_MODULE_PV}" |
1177 |
- |
1178 |
-# echo-nginx-module (https://github.com/openresty/echo-nginx-module, BSD license) |
1179 |
-HTTP_ECHO_MODULE_PV="0.61" |
1180 |
-HTTP_ECHO_MODULE_P="ngx_http_echo-${HTTP_ECHO_MODULE_PV}" |
1181 |
-HTTP_ECHO_MODULE_URI="https://github.com/openresty/echo-nginx-module/archive/v${HTTP_ECHO_MODULE_PV}.tar.gz" |
1182 |
-HTTP_ECHO_MODULE_WD="${WORKDIR}/echo-nginx-module-${HTTP_ECHO_MODULE_PV}" |
1183 |
- |
1184 |
-# mod_security for nginx (https://modsecurity.org/, Apache-2.0) |
1185 |
-# keep the MODULE_P here consistent with upstream to avoid tarball duplication |
1186 |
-HTTP_SECURITY_MODULE_PV="2.9.2" |
1187 |
-HTTP_SECURITY_MODULE_P="modsecurity-${HTTP_SECURITY_MODULE_PV}" |
1188 |
-HTTP_SECURITY_MODULE_URI="https://www.modsecurity.org/tarball/${HTTP_SECURITY_MODULE_PV}/${HTTP_SECURITY_MODULE_P}.tar.gz" |
1189 |
-HTTP_SECURITY_MODULE_WD="${WORKDIR}/${HTTP_SECURITY_MODULE_P}" |
1190 |
- |
1191 |
-# push-stream-module (http://www.nginxpushstream.com, https://github.com/wandenberg/nginx-push-stream-module, GPL-3) |
1192 |
-HTTP_PUSH_STREAM_MODULE_PV="0.5.4" |
1193 |
-HTTP_PUSH_STREAM_MODULE_P="ngx_http_push_stream-${HTTP_PUSH_STREAM_MODULE_PV}" |
1194 |
-HTTP_PUSH_STREAM_MODULE_URI="https://github.com/wandenberg/nginx-push-stream-module/archive/${HTTP_PUSH_STREAM_MODULE_PV}.tar.gz" |
1195 |
-HTTP_PUSH_STREAM_MODULE_WD="${WORKDIR}/nginx-push-stream-module-${HTTP_PUSH_STREAM_MODULE_PV}" |
1196 |
- |
1197 |
-# sticky-module (https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng, BSD-2) |
1198 |
-HTTP_STICKY_MODULE_PV="1.2.6-10-g08a395c66e42" |
1199 |
-HTTP_STICKY_MODULE_P="nginx_http_sticky_module_ng-${HTTP_STICKY_MODULE_PV}" |
1200 |
-HTTP_STICKY_MODULE_URI="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/${HTTP_STICKY_MODULE_PV}.tar.bz2" |
1201 |
-HTTP_STICKY_MODULE_WD="${WORKDIR}/nginx-goodies-nginx-sticky-module-ng-08a395c66e42" |
1202 |
- |
1203 |
-# mogilefs-module (https://github.com/vkholodkov/nginx-mogilefs-module, BSD-2) |
1204 |
-HTTP_MOGILEFS_MODULE_PV="1.0.4" |
1205 |
-HTTP_MOGILEFS_MODULE_P="ngx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
1206 |
-HTTP_MOGILEFS_MODULE_URI="https://github.com/vkholodkov/nginx-mogilefs-module/archive/${HTTP_MOGILEFS_MODULE_PV}.tar.gz" |
1207 |
-HTTP_MOGILEFS_MODULE_WD="${WORKDIR}/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
1208 |
- |
1209 |
-# memc-module (https://github.com/openresty/memc-nginx-module, BSD-2) |
1210 |
-HTTP_MEMC_MODULE_PV="0.18" |
1211 |
-HTTP_MEMC_MODULE_P="ngx_memc_module-${HTTP_MEMC_MODULE_PV}" |
1212 |
-HTTP_MEMC_MODULE_URI="https://github.com/openresty/memc-nginx-module/archive/v${HTTP_MEMC_MODULE_PV}.tar.gz" |
1213 |
-HTTP_MEMC_MODULE_WD="${WORKDIR}/memc-nginx-module-${HTTP_MEMC_MODULE_PV}" |
1214 |
- |
1215 |
-# nginx-ldap-auth-module (https://github.com/kvspb/nginx-auth-ldap, BSD-2) |
1216 |
-HTTP_LDAP_MODULE_PV="49a8b4d28fc4a518563c82e0b52821e5f37db1fc" |
1217 |
-HTTP_LDAP_MODULE_P="nginx-auth-ldap-${HTTP_LDAP_MODULE_PV}" |
1218 |
-HTTP_LDAP_MODULE_URI="https://github.com/kvspb/nginx-auth-ldap/archive/${HTTP_LDAP_MODULE_PV}.tar.gz" |
1219 |
-HTTP_LDAP_MODULE_WD="${WORKDIR}/nginx-auth-ldap-${HTTP_LDAP_MODULE_PV}" |
1220 |
- |
1221 |
-# We handle deps below ourselves |
1222 |
-SSL_DEPS_SKIP=1 |
1223 |
-AUTOTOOLS_AUTO_DEPEND="no" |
1224 |
- |
1225 |
-inherit autotools ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib |
1226 |
- |
1227 |
-DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
1228 |
-HOMEPAGE="https://nginx.org" |
1229 |
-SRC_URI="https://nginx.org/download/${P}.tar.gz |
1230 |
- ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
1231 |
- nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
1232 |
- nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) |
1233 |
- nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) |
1234 |
- nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz ) |
1235 |
- nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz ) |
1236 |
- nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz ) |
1237 |
- nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz ) |
1238 |
- nginx_modules_http_upstream_check? ( ${HTTP_UPSTREAM_CHECK_MODULE_URI} -> ${HTTP_UPSTREAM_CHECK_MODULE_P}.tar.gz ) |
1239 |
- nginx_modules_http_metrics? ( ${HTTP_METRICS_MODULE_URI} -> ${HTTP_METRICS_MODULE_P}.tar.gz ) |
1240 |
- nginx_modules_http_naxsi? ( ${HTTP_NAXSI_MODULE_URI} -> ${HTTP_NAXSI_MODULE_P}.tar.gz ) |
1241 |
- rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz ) |
1242 |
- nginx_modules_http_dav_ext? ( ${HTTP_DAV_EXT_MODULE_URI} -> ${HTTP_DAV_EXT_MODULE_P}.tar.gz ) |
1243 |
- nginx_modules_http_echo? ( ${HTTP_ECHO_MODULE_URI} -> ${HTTP_ECHO_MODULE_P}.tar.gz ) |
1244 |
- nginx_modules_http_security? ( ${HTTP_SECURITY_MODULE_URI} -> ${HTTP_SECURITY_MODULE_P}.tar.gz ) |
1245 |
- nginx_modules_http_push_stream? ( ${HTTP_PUSH_STREAM_MODULE_URI} -> ${HTTP_PUSH_STREAM_MODULE_P}.tar.gz ) |
1246 |
- nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) |
1247 |
- nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz ) |
1248 |
- nginx_modules_http_memc? ( ${HTTP_MEMC_MODULE_URI} -> ${HTTP_MEMC_MODULE_P}.tar.gz ) |
1249 |
- nginx_modules_http_auth_ldap? ( ${HTTP_LDAP_MODULE_URI} -> ${HTTP_LDAP_MODULE_P}.tar.gz )" |
1250 |
- |
1251 |
-LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ |
1252 |
- nginx_modules_http_security? ( Apache-2.0 ) |
1253 |
- nginx_modules_http_push_stream? ( GPL-3 )" |
1254 |
- |
1255 |
-SLOT="mainline" |
1256 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
1257 |
- |
1258 |
-# Package doesn't provide a real test suite |
1259 |
-RESTRICT="test" |
1260 |
- |
1261 |
-NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif |
1262 |
- fastcgi geo gzip limit_req limit_conn map memcached mirror proxy |
1263 |
- referer rewrite scgi ssi split_clients upstream_hash |
1264 |
- upstream_ip_hash upstream_keepalive upstream_least_conn |
1265 |
- upstream_zone userid uwsgi" |
1266 |
-NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip |
1267 |
- gzip_static image_filter mp4 perl random_index realip secure_link |
1268 |
- slice stub_status sub xslt" |
1269 |
-NGINX_MODULES_STREAM_STD="access geo limit_conn map return split_clients |
1270 |
- upstream_hash upstream_least_conn upstream_zone" |
1271 |
-NGINX_MODULES_STREAM_OPT="geoip realip ssl_preread" |
1272 |
-NGINX_MODULES_MAIL="imap pop3 smtp" |
1273 |
-NGINX_MODULES_3RD=" |
1274 |
- http_upload_progress |
1275 |
- http_headers_more |
1276 |
- http_cache_purge |
1277 |
- http_slowfs_cache |
1278 |
- http_fancyindex |
1279 |
- http_lua |
1280 |
- http_auth_pam |
1281 |
- http_upstream_check |
1282 |
- http_metrics |
1283 |
- http_naxsi |
1284 |
- http_dav_ext |
1285 |
- http_echo |
1286 |
- http_security |
1287 |
- http_push_stream |
1288 |
- http_sticky |
1289 |
- http_mogilefs |
1290 |
- http_memc |
1291 |
- http_auth_ldap" |
1292 |
- |
1293 |
-IUSE="aio debug +http +http2 +http-cache +ipv6 libatomic libressl luajit +pcre |
1294 |
- pcre-jit rtmp selinux ssl threads userland_GNU vim-syntax" |
1295 |
- |
1296 |
-for mod in $NGINX_MODULES_STD; do |
1297 |
- IUSE="${IUSE} +nginx_modules_http_${mod}" |
1298 |
-done |
1299 |
- |
1300 |
-for mod in $NGINX_MODULES_OPT; do |
1301 |
- IUSE="${IUSE} nginx_modules_http_${mod}" |
1302 |
-done |
1303 |
- |
1304 |
-for mod in $NGINX_MODULES_STREAM_STD; do |
1305 |
- IUSE="${IUSE} nginx_modules_stream_${mod}" |
1306 |
-done |
1307 |
- |
1308 |
-for mod in $NGINX_MODULES_STREAM_OPT; do |
1309 |
- IUSE="${IUSE} nginx_modules_stream_${mod}" |
1310 |
-done |
1311 |
- |
1312 |
-for mod in $NGINX_MODULES_MAIL; do |
1313 |
- IUSE="${IUSE} nginx_modules_mail_${mod}" |
1314 |
-done |
1315 |
- |
1316 |
-for mod in $NGINX_MODULES_3RD; do |
1317 |
- IUSE="${IUSE} nginx_modules_${mod}" |
1318 |
-done |
1319 |
- |
1320 |
-# Add so we can warn users updating about config changes |
1321 |
-# @TODO: jbergstroem: remove on next release series |
1322 |
-IUSE="${IUSE} nginx_modules_http_spdy" |
1323 |
- |
1324 |
-CDEPEND=" |
1325 |
- pcre? ( dev-libs/libpcre:= ) |
1326 |
- pcre-jit? ( dev-libs/libpcre:=[jit] ) |
1327 |
- ssl? ( |
1328 |
- !libressl? ( dev-libs/openssl:0= ) |
1329 |
- libressl? ( dev-libs/libressl:= ) |
1330 |
- ) |
1331 |
- http2? ( |
1332 |
- !libressl? ( >=dev-libs/openssl-1.0.1c:0= ) |
1333 |
- libressl? ( dev-libs/libressl:= ) |
1334 |
- ) |
1335 |
- http-cache? ( |
1336 |
- userland_GNU? ( |
1337 |
- !libressl? ( dev-libs/openssl:0= ) |
1338 |
- libressl? ( dev-libs/libressl:= ) |
1339 |
- ) |
1340 |
- ) |
1341 |
- nginx_modules_http_geoip? ( dev-libs/geoip ) |
1342 |
- nginx_modules_http_gunzip? ( sys-libs/zlib ) |
1343 |
- nginx_modules_http_gzip? ( sys-libs/zlib ) |
1344 |
- nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
1345 |
- nginx_modules_http_image_filter? ( media-libs/gd:=[jpeg,png] ) |
1346 |
- nginx_modules_http_perl? ( >=dev-lang/perl-5.8:= ) |
1347 |
- nginx_modules_http_rewrite? ( dev-libs/libpcre:= ) |
1348 |
- nginx_modules_http_secure_link? ( |
1349 |
- userland_GNU? ( |
1350 |
- !libressl? ( dev-libs/openssl:0= ) |
1351 |
- libressl? ( dev-libs/libressl:= ) |
1352 |
- ) |
1353 |
- ) |
1354 |
- nginx_modules_http_xslt? ( dev-libs/libxml2:= dev-libs/libxslt ) |
1355 |
- nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) |
1356 |
- nginx_modules_http_auth_pam? ( virtual/pam ) |
1357 |
- nginx_modules_http_metrics? ( dev-libs/yajl:= ) |
1358 |
- nginx_modules_http_dav_ext? ( dev-libs/expat ) |
1359 |
- nginx_modules_http_security? ( |
1360 |
- dev-libs/apr:= |
1361 |
- dev-libs/apr-util:= |
1362 |
- dev-libs/libxml2:= |
1363 |
- net-misc/curl |
1364 |
- www-servers/apache |
1365 |
- ) |
1366 |
- nginx_modules_http_auth_ldap? ( net-nds/openldap[ssl?] )" |
1367 |
-RDEPEND="${CDEPEND} |
1368 |
- selinux? ( sec-policy/selinux-nginx ) |
1369 |
- !www-servers/nginx:0" |
1370 |
-DEPEND="${CDEPEND} |
1371 |
- nginx_modules_http_security? ( ${AUTOTOOLS_DEPEND} ) |
1372 |
- arm? ( dev-libs/libatomic_ops ) |
1373 |
- libatomic? ( dev-libs/libatomic_ops )" |
1374 |
-PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" |
1375 |
- |
1376 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
1377 |
- nginx_modules_http_lua? ( nginx_modules_http_rewrite ) |
1378 |
- nginx_modules_http_naxsi? ( pcre ) |
1379 |
- nginx_modules_http_dav_ext? ( nginx_modules_http_dav ) |
1380 |
- nginx_modules_http_metrics? ( nginx_modules_http_stub_status ) |
1381 |
- nginx_modules_http_security? ( pcre ) |
1382 |
- nginx_modules_http_push_stream? ( ssl )" |
1383 |
- |
1384 |
-pkg_setup() { |
1385 |
- NGINX_HOME="/var/lib/nginx" |
1386 |
- NGINX_HOME_TMP="${NGINX_HOME}/tmp" |
1387 |
- |
1388 |
- ebegin "Creating nginx user and group" |
1389 |
- enewgroup ${PN} |
1390 |
- enewuser ${PN} -1 -1 "${NGINX_HOME}" ${PN} |
1391 |
- eend $? |
1392 |
- |
1393 |
- if use libatomic; then |
1394 |
- ewarn "GCC 4.1+ features built-in atomic operations." |
1395 |
- ewarn "Using libatomic_ops is only needed if using" |
1396 |
- ewarn "a different compiler or a GCC prior to 4.1" |
1397 |
- fi |
1398 |
- |
1399 |
- if [[ -n $NGINX_ADD_MODULES ]]; then |
1400 |
- ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
1401 |
- ewarn "This nginx installation is not supported!" |
1402 |
- ewarn "Make sure you can reproduce the bug without those modules" |
1403 |
- ewarn "_before_ reporting bugs." |
1404 |
- fi |
1405 |
- |
1406 |
- if use !http; then |
1407 |
- ewarn "To actually disable all http-functionality you also have to disable" |
1408 |
- ewarn "all nginx http modules." |
1409 |
- fi |
1410 |
- |
1411 |
- if use nginx_modules_http_mogilefs && use threads; then |
1412 |
- eerror "mogilefs won't compile with threads support." |
1413 |
- eerror "Please disable either flag and try again." |
1414 |
- die "Can't compile mogilefs with threads support" |
1415 |
- fi |
1416 |
-} |
1417 |
- |
1418 |
-src_prepare() { |
1419 |
- eapply "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch" |
1420 |
- eapply "${FILESDIR}/${PN}-httpoxy-mitigation-r1.patch" |
1421 |
- |
1422 |
- if use nginx_modules_http_upstream_check; then |
1423 |
- #eapply -p0 "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/check_1.11.1+.patch |
1424 |
- eapply -p0 "${FILESDIR}"/http_upstream_check-nginx-1.11.5+.patch |
1425 |
- fi |
1426 |
- |
1427 |
- if use nginx_modules_http_cache_purge; then |
1428 |
- cd "${HTTP_CACHE_PURGE_MODULE_WD}" || die |
1429 |
- eapply "${FILESDIR}"/http_cache_purge-1.11.6+.patch |
1430 |
- cd "${S}" || die |
1431 |
- fi |
1432 |
- |
1433 |
- if use nginx_modules_http_security; then |
1434 |
- cd "${HTTP_SECURITY_MODULE_WD}" || die |
1435 |
- |
1436 |
- eautoreconf |
1437 |
- |
1438 |
- if use luajit ; then |
1439 |
- sed -i \ |
1440 |
- -e 's|^\(LUA_PKGNAMES\)=.*|\1="luajit"|' \ |
1441 |
- configure || die |
1442 |
- fi |
1443 |
- |
1444 |
- cd "${S}" || die |
1445 |
- fi |
1446 |
- |
1447 |
- if use nginx_modules_http_upload_progress; then |
1448 |
- cd "${HTTP_UPLOAD_PROGRESS_MODULE_WD}" || die |
1449 |
- eapply "${FILESDIR}"/http_uploadprogress-issue_50-r1.patch |
1450 |
- cd "${S}" || die |
1451 |
- fi |
1452 |
- |
1453 |
- find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die |
1454 |
- # We have config protection, don't rename etc files |
1455 |
- sed -i 's:.default::' auto/install || die |
1456 |
- # remove useless files |
1457 |
- sed -i -e '/koi-/d' -e '/win-/d' auto/install || die |
1458 |
- |
1459 |
- # don't install to /etc/nginx/ if not in use |
1460 |
- local module |
1461 |
- for module in fastcgi scgi uwsgi ; do |
1462 |
- if ! use nginx_modules_http_${module}; then |
1463 |
- sed -i -e "/${module}/d" auto/install || die |
1464 |
- fi |
1465 |
- done |
1466 |
- |
1467 |
- eapply_user |
1468 |
-} |
1469 |
- |
1470 |
-src_configure() { |
1471 |
- # mod_security needs to generate nginx/modsecurity/config before including it |
1472 |
- if use nginx_modules_http_security; then |
1473 |
- cd "${HTTP_SECURITY_MODULE_WD}" || die |
1474 |
- |
1475 |
- ./configure \ |
1476 |
- --enable-standalone-module \ |
1477 |
- --disable-mlogc \ |
1478 |
- --with-ssdeep=no \ |
1479 |
- $(use_enable pcre-jit) \ |
1480 |
- $(use_with nginx_modules_http_lua lua) || die "configure failed for mod_security" |
1481 |
- |
1482 |
- cd "${S}" || die |
1483 |
- fi |
1484 |
- |
1485 |
- local myconf=() http_enabled= mail_enabled= stream_enabled= |
1486 |
- |
1487 |
- use aio && myconf+=( --with-file-aio ) |
1488 |
- use debug && myconf+=( --with-debug ) |
1489 |
- use http2 && myconf+=( --with-http_v2_module ) |
1490 |
- use libatomic && myconf+=( --with-libatomic ) |
1491 |
- use pcre && myconf+=( --with-pcre ) |
1492 |
- use pcre-jit && myconf+=( --with-pcre-jit ) |
1493 |
- use threads && myconf+=( --with-threads ) |
1494 |
- |
1495 |
- # HTTP modules |
1496 |
- for mod in $NGINX_MODULES_STD; do |
1497 |
- if use nginx_modules_http_${mod}; then |
1498 |
- http_enabled=1 |
1499 |
- else |
1500 |
- myconf+=( --without-http_${mod}_module ) |
1501 |
- fi |
1502 |
- done |
1503 |
- |
1504 |
- for mod in $NGINX_MODULES_OPT; do |
1505 |
- if use nginx_modules_http_${mod}; then |
1506 |
- http_enabled=1 |
1507 |
- myconf+=( --with-http_${mod}_module ) |
1508 |
- fi |
1509 |
- done |
1510 |
- |
1511 |
- if use nginx_modules_http_fastcgi; then |
1512 |
- myconf+=( --with-http_realip_module ) |
1513 |
- fi |
1514 |
- |
1515 |
- # third-party modules |
1516 |
- if use nginx_modules_http_upload_progress; then |
1517 |
- http_enabled=1 |
1518 |
- myconf+=( --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD} ) |
1519 |
- fi |
1520 |
- |
1521 |
- if use nginx_modules_http_headers_more; then |
1522 |
- http_enabled=1 |
1523 |
- myconf+=( --add-module=${HTTP_HEADERS_MORE_MODULE_WD} ) |
1524 |
- fi |
1525 |
- |
1526 |
- if use nginx_modules_http_cache_purge; then |
1527 |
- http_enabled=1 |
1528 |
- myconf+=( --add-module=${HTTP_CACHE_PURGE_MODULE_WD} ) |
1529 |
- fi |
1530 |
- |
1531 |
- if use nginx_modules_http_slowfs_cache; then |
1532 |
- http_enabled=1 |
1533 |
- myconf+=( --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD} ) |
1534 |
- fi |
1535 |
- |
1536 |
- if use nginx_modules_http_fancyindex; then |
1537 |
- http_enabled=1 |
1538 |
- myconf+=( --add-module=${HTTP_FANCYINDEX_MODULE_WD} ) |
1539 |
- fi |
1540 |
- |
1541 |
- if use nginx_modules_http_lua; then |
1542 |
- http_enabled=1 |
1543 |
- if use luajit; then |
1544 |
- export LUAJIT_LIB=$(pkg-config --variable libdir luajit) |
1545 |
- export LUAJIT_INC=$(pkg-config --variable includedir luajit) |
1546 |
- else |
1547 |
- export LUA_LIB=$(pkg-config --variable libdir lua) |
1548 |
- export LUA_INC=$(pkg-config --variable includedir lua) |
1549 |
- fi |
1550 |
- myconf+=( --add-module=${DEVEL_KIT_MODULE_WD} ) |
1551 |
- myconf+=( --add-module=${HTTP_LUA_MODULE_WD} ) |
1552 |
- fi |
1553 |
- |
1554 |
- if use nginx_modules_http_auth_pam; then |
1555 |
- http_enabled=1 |
1556 |
- myconf+=( --add-module=${HTTP_AUTH_PAM_MODULE_WD} ) |
1557 |
- fi |
1558 |
- |
1559 |
- if use nginx_modules_http_upstream_check; then |
1560 |
- http_enabled=1 |
1561 |
- myconf+=( --add-module=${HTTP_UPSTREAM_CHECK_MODULE_WD} ) |
1562 |
- fi |
1563 |
- |
1564 |
- if use nginx_modules_http_metrics; then |
1565 |
- http_enabled=1 |
1566 |
- myconf+=( --add-module=${HTTP_METRICS_MODULE_WD} ) |
1567 |
- fi |
1568 |
- |
1569 |
- if use nginx_modules_http_naxsi ; then |
1570 |
- http_enabled=1 |
1571 |
- myconf+=( --add-module=${HTTP_NAXSI_MODULE_WD} ) |
1572 |
- fi |
1573 |
- |
1574 |
- if use rtmp ; then |
1575 |
- http_enabled=1 |
1576 |
- myconf+=( --add-module=${RTMP_MODULE_WD} ) |
1577 |
- fi |
1578 |
- |
1579 |
- if use nginx_modules_http_dav_ext ; then |
1580 |
- http_enabled=1 |
1581 |
- myconf+=( --add-module=${HTTP_DAV_EXT_MODULE_WD} ) |
1582 |
- fi |
1583 |
- |
1584 |
- if use nginx_modules_http_echo ; then |
1585 |
- http_enabled=1 |
1586 |
- myconf+=( --add-module=${HTTP_ECHO_MODULE_WD} ) |
1587 |
- fi |
1588 |
- |
1589 |
- if use nginx_modules_http_security ; then |
1590 |
- http_enabled=1 |
1591 |
- myconf+=( --add-module=${HTTP_SECURITY_MODULE_WD}/nginx/modsecurity ) |
1592 |
- fi |
1593 |
- |
1594 |
- if use nginx_modules_http_push_stream ; then |
1595 |
- http_enabled=1 |
1596 |
- myconf+=( --add-module=${HTTP_PUSH_STREAM_MODULE_WD} ) |
1597 |
- fi |
1598 |
- |
1599 |
- if use nginx_modules_http_sticky ; then |
1600 |
- http_enabled=1 |
1601 |
- myconf+=( --add-module=${HTTP_STICKY_MODULE_WD} ) |
1602 |
- fi |
1603 |
- |
1604 |
- if use nginx_modules_http_mogilefs ; then |
1605 |
- http_enabled=1 |
1606 |
- myconf+=( --add-module=${HTTP_MOGILEFS_MODULE_WD} ) |
1607 |
- fi |
1608 |
- |
1609 |
- if use nginx_modules_http_memc ; then |
1610 |
- http_enabled=1 |
1611 |
- myconf+=( --add-module=${HTTP_MEMC_MODULE_WD} ) |
1612 |
- fi |
1613 |
- |
1614 |
- if use nginx_modules_http_auth_ldap; then |
1615 |
- http_enabled=1 |
1616 |
- myconf+=( --add-module=${HTTP_LDAP_MODULE_WD} ) |
1617 |
- fi |
1618 |
- |
1619 |
- if use http || use http-cache || use http2; then |
1620 |
- http_enabled=1 |
1621 |
- fi |
1622 |
- |
1623 |
- if [ $http_enabled ]; then |
1624 |
- use http-cache || myconf+=( --without-http-cache ) |
1625 |
- use ssl && myconf+=( --with-http_ssl_module ) |
1626 |
- else |
1627 |
- myconf+=( --without-http --without-http-cache ) |
1628 |
- fi |
1629 |
- |
1630 |
- # Stream modules |
1631 |
- for mod in $NGINX_MODULES_STREAM_STD; do |
1632 |
- if use nginx_modules_stream_${mod}; then |
1633 |
- stream_enabled=1 |
1634 |
- else |
1635 |
- myconf+=( --without-stream_${mod}_module ) |
1636 |
- fi |
1637 |
- done |
1638 |
- |
1639 |
- for mod in $NGINX_MODULES_STREAM_OPT; do |
1640 |
- if use nginx_modules_stream_${mod}; then |
1641 |
- stream_enabled=1 |
1642 |
- myconf+=( --with-stream_${mod}_module ) |
1643 |
- fi |
1644 |
- done |
1645 |
- |
1646 |
- if [ $stream_enabled ]; then |
1647 |
- myconf+=( --with-stream ) |
1648 |
- use ssl && myconf+=( --with-stream_ssl_module ) |
1649 |
- fi |
1650 |
- |
1651 |
- # MAIL modules |
1652 |
- for mod in $NGINX_MODULES_MAIL; do |
1653 |
- if use nginx_modules_mail_${mod}; then |
1654 |
- mail_enabled=1 |
1655 |
- else |
1656 |
- myconf+=( --without-mail_${mod}_module ) |
1657 |
- fi |
1658 |
- done |
1659 |
- |
1660 |
- if [ $mail_enabled ]; then |
1661 |
- myconf+=( --with-mail ) |
1662 |
- use ssl && myconf+=( --with-mail_ssl_module ) |
1663 |
- fi |
1664 |
- |
1665 |
- # custom modules |
1666 |
- for mod in $NGINX_ADD_MODULES; do |
1667 |
- myconf+=( --add-module=${mod} ) |
1668 |
- done |
1669 |
- |
1670 |
- # https://bugs.gentoo.org/286772 |
1671 |
- export LANG=C LC_ALL=C |
1672 |
- tc-export CC |
1673 |
- |
1674 |
- if ! use prefix; then |
1675 |
- myconf+=( --user=${PN} ) |
1676 |
- myconf+=( --group=${PN} ) |
1677 |
- fi |
1678 |
- |
1679 |
- local WITHOUT_IPV6= |
1680 |
- if ! use ipv6; then |
1681 |
- WITHOUT_IPV6=" -DNGX_HAVE_INET6=0" |
1682 |
- fi |
1683 |
- |
1684 |
- ./configure \ |
1685 |
- --prefix="${EPREFIX}"/usr \ |
1686 |
- --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \ |
1687 |
- --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \ |
1688 |
- --pid-path="${EPREFIX}"/run/${PN}.pid \ |
1689 |
- --lock-path="${EPREFIX}"/run/lock/${PN}.lock \ |
1690 |
- --with-cc-opt="-I${EROOT}usr/include${WITHOUT_IPV6}" \ |
1691 |
- --with-ld-opt="-L${EROOT}usr/$(get_libdir)" \ |
1692 |
- --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \ |
1693 |
- --http-client-body-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/client \ |
1694 |
- --http-proxy-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/proxy \ |
1695 |
- --http-fastcgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/fastcgi \ |
1696 |
- --http-scgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/scgi \ |
1697 |
- --http-uwsgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/uwsgi \ |
1698 |
- --with-compat \ |
1699 |
- "${myconf[@]}" || die "configure failed" |
1700 |
- |
1701 |
- # A purely cosmetic change that makes nginx -V more readable. This can be |
1702 |
- # good if people outside the gentoo community would troubleshoot and |
1703 |
- # question the users setup. |
1704 |
- sed -i -e "s|${WORKDIR}|external_module|g" objs/ngx_auto_config.h || die |
1705 |
-} |
1706 |
- |
1707 |
-src_compile() { |
1708 |
- use nginx_modules_http_security && emake -C "${HTTP_SECURITY_MODULE_WD}" |
1709 |
- |
1710 |
- # https://bugs.gentoo.org/286772 |
1711 |
- export LANG=C LC_ALL=C |
1712 |
- emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" |
1713 |
-} |
1714 |
- |
1715 |
-src_install() { |
1716 |
- emake DESTDIR="${D%/}" install |
1717 |
- |
1718 |
- cp "${FILESDIR}"/nginx.conf-r2 "${ED}"etc/nginx/nginx.conf || die |
1719 |
- |
1720 |
- newinitd "${FILESDIR}"/nginx.initd-r4 nginx |
1721 |
- newconfd "${FILESDIR}"/nginx.confd nginx |
1722 |
- |
1723 |
- systemd_newunit "${FILESDIR}"/nginx.service-r1 nginx.service |
1724 |
- |
1725 |
- doman man/nginx.8 |
1726 |
- dodoc CHANGES* README |
1727 |
- |
1728 |
- # just keepdir. do not copy the default htdocs files (bug #449136) |
1729 |
- keepdir /var/www/localhost |
1730 |
- rm -rf "${D}"usr/html || die |
1731 |
- |
1732 |
- # set up a list of directories to keep |
1733 |
- local keepdir_list="${NGINX_HOME_TMP}"/client |
1734 |
- local module |
1735 |
- for module in proxy fastcgi scgi uwsgi; do |
1736 |
- use nginx_modules_http_${module} && keepdir_list+=" ${NGINX_HOME_TMP}/${module}" |
1737 |
- done |
1738 |
- |
1739 |
- keepdir /var/log/nginx ${keepdir_list} |
1740 |
- |
1741 |
- # this solves a problem with SELinux where nginx doesn't see the directories |
1742 |
- # as root and tries to create them as nginx |
1743 |
- fperms 0750 "${NGINX_HOME_TMP}" |
1744 |
- fowners ${PN}:0 "${NGINX_HOME_TMP}" |
1745 |
- |
1746 |
- fperms 0700 ${keepdir_list} |
1747 |
- fowners ${PN}:${PN} ${keepdir_list} |
1748 |
- |
1749 |
- fperms 0710 /var/log/nginx |
1750 |
- fowners 0:${PN} /var/log/nginx |
1751 |
- |
1752 |
- # logrotate |
1753 |
- insinto /etc/logrotate.d |
1754 |
- newins "${FILESDIR}"/nginx.logrotate-r1 nginx |
1755 |
- |
1756 |
- if use nginx_modules_http_perl; then |
1757 |
- cd "${S}"/objs/src/http/modules/perl/ || die |
1758 |
- emake DESTDIR="${D}" INSTALLDIRS=vendor |
1759 |
- perl_delete_localpod |
1760 |
- cd "${S}" || die |
1761 |
- fi |
1762 |
- |
1763 |
- if use nginx_modules_http_cache_purge; then |
1764 |
- docinto ${HTTP_CACHE_PURGE_MODULE_P} |
1765 |
- dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md} |
1766 |
- fi |
1767 |
- |
1768 |
- if use nginx_modules_http_slowfs_cache; then |
1769 |
- docinto ${HTTP_SLOWFS_CACHE_MODULE_P} |
1770 |
- dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md} |
1771 |
- fi |
1772 |
- |
1773 |
- if use nginx_modules_http_fancyindex; then |
1774 |
- docinto ${HTTP_FANCYINDEX_MODULE_P} |
1775 |
- dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst |
1776 |
- fi |
1777 |
- |
1778 |
- if use nginx_modules_http_lua; then |
1779 |
- docinto ${HTTP_LUA_MODULE_P} |
1780 |
- dodoc "${HTTP_LUA_MODULE_WD}"/README.markdown |
1781 |
- fi |
1782 |
- |
1783 |
- if use nginx_modules_http_auth_pam; then |
1784 |
- docinto ${HTTP_AUTH_PAM_MODULE_P} |
1785 |
- dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README.md,ChangeLog} |
1786 |
- fi |
1787 |
- |
1788 |
- if use nginx_modules_http_upstream_check; then |
1789 |
- docinto ${HTTP_UPSTREAM_CHECK_MODULE_P} |
1790 |
- dodoc "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/{README,CHANGES} |
1791 |
- fi |
1792 |
- |
1793 |
- if use nginx_modules_http_naxsi; then |
1794 |
- insinto /etc/nginx |
1795 |
- doins "${HTTP_NAXSI_MODULE_WD}"/../naxsi_config/naxsi_core.rules |
1796 |
- fi |
1797 |
- |
1798 |
- if use rtmp; then |
1799 |
- docinto ${RTMP_MODULE_P} |
1800 |
- dodoc "${RTMP_MODULE_WD}"/{AUTHORS,README.md,stat.xsl} |
1801 |
- fi |
1802 |
- |
1803 |
- if use nginx_modules_http_dav_ext; then |
1804 |
- docinto ${HTTP_DAV_EXT_MODULE_P} |
1805 |
- dodoc "${HTTP_DAV_EXT_MODULE_WD}"/README.rst |
1806 |
- fi |
1807 |
- |
1808 |
- if use nginx_modules_http_echo; then |
1809 |
- docinto ${HTTP_ECHO_MODULE_P} |
1810 |
- dodoc "${HTTP_ECHO_MODULE_WD}"/README.markdown |
1811 |
- fi |
1812 |
- |
1813 |
- if use nginx_modules_http_security; then |
1814 |
- docinto ${HTTP_SECURITY_MODULE_P} |
1815 |
- dodoc "${HTTP_SECURITY_MODULE_WD}"/{CHANGES,README.TXT,authors.txt} |
1816 |
- fi |
1817 |
- |
1818 |
- if use nginx_modules_http_push_stream; then |
1819 |
- docinto ${HTTP_PUSH_STREAM_MODULE_P} |
1820 |
- dodoc "${HTTP_PUSH_STREAM_MODULE_WD}"/{AUTHORS,CHANGELOG.textile,README.textile} |
1821 |
- fi |
1822 |
- |
1823 |
- if use nginx_modules_http_sticky; then |
1824 |
- docinto ${HTTP_STICKY_MODULE_P} |
1825 |
- dodoc "${HTTP_STICKY_MODULE_WD}"/{README.md,Changelog.txt,docs/sticky.pdf} |
1826 |
- fi |
1827 |
- |
1828 |
- if use nginx_modules_http_memc; then |
1829 |
- docinto ${HTTP_MEMC_MODULE_P} |
1830 |
- dodoc "${HTTP_MEMC_MODULE_WD}"/README.markdown |
1831 |
- fi |
1832 |
- |
1833 |
- if use nginx_modules_http_auth_ldap; then |
1834 |
- docinto ${HTTP_LDAP_MODULE_P} |
1835 |
- dodoc "${HTTP_LDAP_MODULE_WD}"/example.conf |
1836 |
- fi |
1837 |
-} |
1838 |
- |
1839 |
-pkg_postinst() { |
1840 |
- if use ssl; then |
1841 |
- if [[ ! -f "${EROOT}"etc/ssl/${PN}/${PN}.key ]]; then |
1842 |
- install_cert /etc/ssl/${PN}/${PN} |
1843 |
- use prefix || chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
1844 |
- fi |
1845 |
- fi |
1846 |
- |
1847 |
- if use nginx_modules_http_spdy; then |
1848 |
- ewarn "" |
1849 |
- ewarn "In nginx 1.9.5 the spdy module was superseded by http2." |
1850 |
- ewarn "Update your configs and package.use accordingly." |
1851 |
- fi |
1852 |
- |
1853 |
- if use nginx_modules_http_lua; then |
1854 |
- ewarn "" |
1855 |
- ewarn "While you can build lua 3rd party module against ${P}" |
1856 |
- ewarn "the author warns that >=${PN}-1.11.11 is still not an" |
1857 |
- ewarn "officially supported target yet. You are on your own." |
1858 |
- ewarn "Expect runtime failures, memory leaks and other problems!" |
1859 |
- fi |
1860 |
- |
1861 |
- if use nginx_modules_http_lua && use http2; then |
1862 |
- ewarn "" |
1863 |
- ewarn "Lua 3rd party module author warns against using ${P} with" |
1864 |
- ewarn "NGINX_MODULES_HTTP=\"lua http2\". For more info, see http://git.io/OldLsg" |
1865 |
- fi |
1866 |
- |
1867 |
- local _n_permission_layout_checks=0 |
1868 |
- local _has_to_adjust_permissions=0 |
1869 |
- local _has_to_show_permission_warning=0 |
1870 |
- |
1871 |
- # Defaults to 1 to inform people doing a fresh installation |
1872 |
- # that we ship modified {scgi,uwsgi,fastcgi}_params files |
1873 |
- local _has_to_show_httpoxy_mitigation_notice=1 |
1874 |
- |
1875 |
- local _replacing_version= |
1876 |
- for _replacing_version in ${REPLACING_VERSIONS}; do |
1877 |
- _n_permission_layout_checks=$((${_n_permission_layout_checks}+1)) |
1878 |
- |
1879 |
- if [[ ${_n_permission_layout_checks} -gt 1 ]]; then |
1880 |
- # Should never happen: |
1881 |
- # Package is abusing slots but doesn't allow multiple parallel installations. |
1882 |
- # If we run into this situation it is unsafe to automatically adjust any |
1883 |
- # permission... |
1884 |
- _has_to_show_permission_warning=1 |
1885 |
- |
1886 |
- ewarn "Replacing multiple ${PN}' versions is unsupported! " \ |
1887 |
- "You will have to adjust permissions on your own." |
1888 |
- |
1889 |
- break |
1890 |
- fi |
1891 |
- |
1892 |
- local _replacing_version_branch=$(get_version_component_range 1-2 "${_replacing_version}") |
1893 |
- debug-print "Updating an existing installation (v${_replacing_version}; branch '${_replacing_version_branch}') ..." |
1894 |
- |
1895 |
- # Do we need to adjust permissions to fix CVE-2013-0337 (bug #458726, #469094)? |
1896 |
- # This was before we introduced multiple nginx versions so we |
1897 |
- # do not need to distinguish between stable and mainline |
1898 |
- local _need_to_fix_CVE2013_0337=1 |
1899 |
- |
1900 |
- if version_is_at_least "1.4.1-r2" "${_replacing_version}"; then |
1901 |
- # We are updating an installation which should already be fixed |
1902 |
- _need_to_fix_CVE2013_0337=0 |
1903 |
- debug-print "Skipping CVE-2013-0337 ... existing installation should not be affected!" |
1904 |
- else |
1905 |
- _has_to_adjust_permissions=1 |
1906 |
- debug-print "Need to adjust permissions to fix CVE-2013-0337!" |
1907 |
- fi |
1908 |
- |
1909 |
- # Do we need to inform about HTTPoxy mitigation? |
1910 |
- # In repository since commit 8be44f76d4ac02cebcd1e0e6e6284bb72d054b0f |
1911 |
- if ! version_is_at_least "1.10" "${_replacing_version_branch}"; then |
1912 |
- # Updating from <1.10 |
1913 |
- _has_to_show_httpoxy_mitigation_notice=1 |
1914 |
- debug-print "Need to inform about HTTPoxy mitigation!" |
1915 |
- else |
1916 |
- # Updating from >=1.10 |
1917 |
- local _fixed_in_pvr= |
1918 |
- case "${_replacing_version_branch}" in |
1919 |
- "1.10") |
1920 |
- _fixed_in_pvr="1.10.1-r2" |
1921 |
- ;; |
1922 |
- "1.11") |
1923 |
- _fixed_in_pvr="1.11.3-r1" |
1924 |
- ;; |
1925 |
- *) |
1926 |
- # This should be any future branch. |
1927 |
- # If we run this code it is safe to assume that the user has |
1928 |
- # already seen the HTTPoxy mitigation notice because he/she is doing |
1929 |
- # an update from previous version where we have already shown |
1930 |
- # the warning. Otherwise, we wouldn't hit this code path ... |
1931 |
- _fixed_in_pvr= |
1932 |
- esac |
1933 |
- |
1934 |
- if [[ -z "${_fixed_in_pvr}" ]] || version_is_at_least "${_fixed_in_pvr}" "${_replacing_version}"; then |
1935 |
- # We are updating an installation where we already informed |
1936 |
- # that we are mitigating HTTPoxy per default |
1937 |
- _has_to_show_httpoxy_mitigation_notice=0 |
1938 |
- debug-print "No need to inform about HTTPoxy mitigation ... information was already shown for existing installation!" |
1939 |
- else |
1940 |
- _has_to_show_httpoxy_mitigation_notice=1 |
1941 |
- debug-print "Need to inform about HTTPoxy mitigation!" |
1942 |
- fi |
1943 |
- fi |
1944 |
- |
1945 |
- # Do we need to adjust permissions to fix CVE-2016-1247 (bug #605008)? |
1946 |
- # All branches up to 1.11 are affected |
1947 |
- local _need_to_fix_CVE2016_1247=1 |
1948 |
- |
1949 |
- if ! version_is_at_least "1.10" "${_replacing_version_branch}"; then |
1950 |
- # Updating from <1.10 |
1951 |
- _has_to_adjust_permissions=1 |
1952 |
- debug-print "Need to adjust permissions to fix CVE-2016-1247!" |
1953 |
- else |
1954 |
- # Updating from >=1.10 |
1955 |
- local _fixed_in_pvr= |
1956 |
- case "${_replacing_version_branch}" in |
1957 |
- "1.10") |
1958 |
- _fixed_in_pvr="1.10.2-r3" |
1959 |
- ;; |
1960 |
- "1.11") |
1961 |
- _fixed_in_pvr="1.11.6-r1" |
1962 |
- ;; |
1963 |
- *) |
1964 |
- # This should be any future branch. |
1965 |
- # If we run this code it is safe to assume that we have already |
1966 |
- # adjusted permissions or were never affected because user is |
1967 |
- # doing an update from previous version which was safe or did |
1968 |
- # the adjustments. Otherwise, we wouldn't hit this code path ... |
1969 |
- _fixed_in_pvr= |
1970 |
- esac |
1971 |
- |
1972 |
- if [[ -z "${_fixed_in_pvr}" ]] || version_is_at_least "${_fixed_in_pvr}" "${_replacing_version}"; then |
1973 |
- # We are updating an installation which should already be adjusted |
1974 |
- # or which was never affected |
1975 |
- _need_to_fix_CVE2016_1247=0 |
1976 |
- debug-print "Skipping CVE-2016-1247 ... existing installation should not be affected!" |
1977 |
- else |
1978 |
- _has_to_adjust_permissions=1 |
1979 |
- debug-print "Need to adjust permissions to fix CVE-2016-1247!" |
1980 |
- fi |
1981 |
- fi |
1982 |
- done |
1983 |
- |
1984 |
- if [[ ${_has_to_adjust_permissions} -eq 1 ]]; then |
1985 |
- # We do not DIE when chmod/chown commands are failing because |
1986 |
- # package is already merged on user's system at this stage |
1987 |
- # and we cannot retry without losing the information that |
1988 |
- # the existing installation needs to adjust permissions. |
1989 |
- # Instead we are going to a show a big warning ... |
1990 |
- |
1991 |
- if [[ ${_has_to_show_permission_warning} -eq 0 ]] && [[ ${_need_to_fix_CVE2013_0337} -eq 1 ]]; then |
1992 |
- ewarn "" |
1993 |
- ewarn "The world-readable bit (if set) has been removed from the" |
1994 |
- ewarn "following directories to mitigate a security bug" |
1995 |
- ewarn "(CVE-2013-0337, bug #458726):" |
1996 |
- ewarn "" |
1997 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
1998 |
- ewarn " ${EPREFIX%/}${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi}" |
1999 |
- ewarn "" |
2000 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
2001 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
2002 |
- ewarn "Furthermore nginx' temp directories got moved to '${EPREFIX%/}${NGINX_HOME_TMP}'" |
2003 |
- chmod o-rwx \ |
2004 |
- "${EPREFIX%/}"/var/log/nginx \ |
2005 |
- "${EPREFIX%/}"${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi} || \ |
2006 |
- _has_to_show_permission_warning=1 |
2007 |
- fi |
2008 |
- |
2009 |
- if [[ ${_has_to_show_permission_warning} -eq 0 ]] && [[ ${_need_to_fix_CVE2016_1247} -eq 1 ]]; then |
2010 |
- ewarn "" |
2011 |
- ewarn "The permissions on the following directory have been reset in" |
2012 |
- ewarn "order to mitigate a security bug (CVE-2016-1247, bug #605008):" |
2013 |
- ewarn "" |
2014 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
2015 |
- ewarn "" |
2016 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
2017 |
- ewarn "Also ensure that no other log directory used by any of your" |
2018 |
- ewarn "vhost(s) is not writeable for nginx user. Any of your log files" |
2019 |
- ewarn "used by nginx can be abused to escalate privileges!" |
2020 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
2021 |
- chown 0:nginx "${EPREFIX%/}"/var/log/nginx || _has_to_show_permission_warning=1 |
2022 |
- chmod 710 "${EPREFIX%/}"/var/log/nginx || _has_to_show_permission_warning=1 |
2023 |
- fi |
2024 |
- |
2025 |
- if [[ ${_has_to_show_permission_warning} -eq 1 ]]; then |
2026 |
- # Should never happen ... |
2027 |
- ewarn "" |
2028 |
- ewarn "*************************************************************" |
2029 |
- ewarn "*************** W A R N I N G ***************" |
2030 |
- ewarn "*************************************************************" |
2031 |
- ewarn "The one-time only attempt to adjust permissions of the" |
2032 |
- ewarn "existing nginx installation failed. Be aware that we will not" |
2033 |
- ewarn "try to adjust the same permissions again because now you are" |
2034 |
- ewarn "using a nginx version where we expect that the permissions" |
2035 |
- ewarn "are already adjusted or that you know what you are doing and" |
2036 |
- ewarn "want to keep custom permissions." |
2037 |
- ewarn "" |
2038 |
- fi |
2039 |
- fi |
2040 |
- |
2041 |
- # Sanity check for CVE-2016-1247 |
2042 |
- # Required to warn users who received the warning above and thought |
2043 |
- # they could fix it by unmerging and re-merging the package or have |
2044 |
- # unmerged a affected installation on purpose in the past leaving |
2045 |
- # /var/log/nginx on their system due to keepdir/non-empty folder |
2046 |
- # and are now installing the package again. |
2047 |
- local _sanity_check_testfile=$(mktemp --dry-run "${EPREFIX%/}"/var/log/nginx/.CVE-2016-1247.XXXXXXXXX) |
2048 |
- su -s /bin/sh -c "touch ${_sanity_check_testfile}" nginx >&/dev/null |
2049 |
- if [ $? -eq 0 ] ; then |
2050 |
- # Cleanup -- no reason to die here! |
2051 |
- rm -f "${_sanity_check_testfile}" |
2052 |
- |
2053 |
- ewarn "" |
2054 |
- ewarn "*************************************************************" |
2055 |
- ewarn "*************** W A R N I N G ***************" |
2056 |
- ewarn "*************************************************************" |
2057 |
- ewarn "Looks like your installation is vulnerable to CVE-2016-1247" |
2058 |
- ewarn "(bug #605008) because nginx user is able to create files in" |
2059 |
- ewarn "" |
2060 |
- ewarn " ${EPREFIX%/}/var/log/nginx" |
2061 |
- ewarn "" |
2062 |
- ewarn "Also ensure that no other log directory used by any of your" |
2063 |
- ewarn "vhost(s) is not writeable for nginx user. Any of your log files" |
2064 |
- ewarn "used by nginx can be abused to escalate privileges!" |
2065 |
- fi |
2066 |
- |
2067 |
- if [[ ${_has_to_show_httpoxy_mitigation_notice} -eq 1 ]]; then |
2068 |
- # HTTPoxy mitigation |
2069 |
- ewarn "" |
2070 |
- ewarn "This nginx installation comes with a mitigation for the HTTPoxy" |
2071 |
- ewarn "vulnerability for FastCGI, SCGI and uWSGI applications by setting" |
2072 |
- ewarn "the HTTP_PROXY parameter to an empty string per default when you" |
2073 |
- ewarn "are sourcing one of the default" |
2074 |
- ewarn "" |
2075 |
- ewarn " - 'fastcgi_params' or 'fastcgi.conf'" |
2076 |
- ewarn " - 'scgi_params'" |
2077 |
- ewarn " - 'uwsgi_params'" |
2078 |
- ewarn "" |
2079 |
- ewarn "files in your server block(s)." |
2080 |
- ewarn "" |
2081 |
- ewarn "If this is causing any problems for you make sure that you are sourcing the" |
2082 |
- ewarn "default parameters _before_ you set your own values." |
2083 |
- ewarn "If you are relying on user-supplied proxy values you have to remove the" |
2084 |
- ewarn "correlating lines from the file(s) mentioned above." |
2085 |
- ewarn "" |
2086 |
- fi |
2087 |
-} |