1 |
commit: da4256a89bf28cc909f803e5e4b0a4748f1cda04 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 2 19:19:47 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 19:19:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da4256a8 |
7 |
|
8 |
www-servers/nginx: Remove old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
www-servers/nginx/Manifest | 3 - |
13 |
www-servers/nginx/nginx-1.9.6.ebuild | 695 ----------------------------------- |
14 |
2 files changed, 698 deletions(-) |
15 |
|
16 |
diff --git a/www-servers/nginx/Manifest b/www-servers/nginx/Manifest |
17 |
index 85b38ef..9631b07 100644 |
18 |
--- a/www-servers/nginx/Manifest |
19 |
+++ b/www-servers/nginx/Manifest |
20 |
@@ -1,7 +1,6 @@ |
21 |
DIST modsecurity-2.9.0.tar.gz 4246467 SHA256 e2bbf789966c1f80094d88d9085a81bde082b2054f8e38e0db571ca49208f434 SHA512 1af04f29bf23c51d03cdd3795c530f88b523a645aa02d776a6b23dcbc31decec7cd574919e5c7c7cf82684df2774062de5e465bddbbaf4c01a442c6d49401d3d WHIRLPOOL 1167ba6048a3ca05dcdabf03c67ae12720cca0cec74547fc223ee92ff76b6d5131785fa77b5f16da180e56590c851c192eaf02817b798e4d6f41fa6bfb2735a6 |
22 |
DIST nginx-1.8.0.tar.gz 832104 SHA256 23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5 SHA512 3e5d7e1b01839b2638251c47046149450b9b65985e611ef55e5953846e9eb0128c3708c695540ad4dfd0ce5e3060dfecb51213403048fab1a99dd5cea94f0038 WHIRLPOOL e4619e0e0454b86d725a21abe9300ad33ad700c4d577b33f1762b5af796093abd3c7b6afed38301dd0b2a235d6ff47db189b24fd19a5cbc777398bc237ae8534 |
23 |
DIST nginx-1.8.1.tar.gz 833473 SHA256 8f4b3c630966c044ec72715754334d1fdf741caa1d5795fb4646c27d09f797b7 SHA512 546eba1749af0034cb8b924d2432be2f0e82a75c545aa929391ef7234103c3f29376235a2ef1363b120e1825cda15aeb085a05f9ce3596c88466e112e82aa882 WHIRLPOOL cd399083fb14bdb3498f1cd91a1cb59a73d37f323ce7c2a32500c9443f654cb5449137708cf149a0126aedb77abec9d1eb3dce3121f0b378d7d70e8eb18062af |
24 |
-DIST nginx-1.9.6.tar.gz 884733 SHA256 ed501fc6d0eff9d3bc1049cc1ba3a3ac8c602de046acb2a4c108392bbfa865ea SHA512 d42199542585dc2c4feeeb5a86462b96ccd008a72a067d9fa83ed6171f098f4f515a62df2b4bf4b169b1aa78eccb6099701caea6a805de784a0f4bfe2ce92716 WHIRLPOOL 137643033860520610d707cb04f262e78e349e27ba6ed3fd5b91c95d4f8aeca49fa96721f58f809f81ed457040aa1c05d7f37400912376bc454829b491dd4983 |
25 |
DIST nginx-1.9.7.tar.gz 885562 SHA256 794bd217affdfce1c6263d9199c3961f387a2df9d57dcb42876faaf41c1748d5 SHA512 a3fa097164954b10120a0e7dca4b877da17c237f1e3ca47365aedf55ade2fe55b0f072404dcb909636b3afaa2b51f5c45b002b54424bd6b80ab76b835bbcc7de WHIRLPOOL 09a0b002d3cfc4650461c187d9192305208e38d738b2499109c3969c05aa8fb56d60730ab0a207bb64ffad5c450fb994b91a9a3ca1178633901ed236a4f3a245 |
26 |
DIST nginx_http_sticky_module_ng-1.2.5.tar.bz2 124072 SHA256 f975c033eb3c342f7247f6524774bbb727aaf630ed984576dbafe5de7a790c58 SHA512 d6ae723f739efb2f0548461931b1c395801684759962beda08067111426b1c9787ceaede91b0e984c023108fd17864c53c53925506f7e8e25ec8d2fc065585f6 WHIRLPOOL 1013c6a51f5989c8131392b3d9704d42c99f9727a673f6205878d0b7dfd265bb6042c1d30089603c9b38e339d48302e6873e77fe380b7e8edba25b71e9e84ba6 |
27 |
DIST nginx_http_sticky_module_ng-1.2.6.tar.bz2 124089 SHA256 e47b9fd435d7a5a3200f945a9745aaa7b9446495bda76df48f211129f88d6b26 SHA512 2632b04c94f523aa7c9726db182cba11d83e642c2db5798274e67fbef30de95d02e4e95cbfb98bc429d4244d630b5d9617405b43f728ae0117a5c134940c0ded WHIRLPOOL 1b754c02f834c6b4d4930e9c46b8c5accb6c9663718fb9296c92d79bc33206e66e49e4234ca4db9a5afcd42fa23273bdf0e675aa7b38927c4e46a85318c189eb |
28 |
@@ -13,10 +12,8 @@ DIST ngx_http_echo-0.57.tar.gz 65073 SHA256 8467237ca0fae74ca7a32fbd34fc6044df30 |
29 |
DIST ngx_http_echo-0.58.tar.gz 64779 SHA256 190fe3977dd1910e82059f30f9baae3da2ee6e6fb50f18c9bc2605a19dbb9626 SHA512 03bca117b2a7f9fa78450d24b2a25fcf19528a37d842dbd740e9ccf0f3ad6652d9927757f1317441438ec1e474211e2b4c84829015a51c5e25ca9f2dbd3809a0 WHIRLPOOL 0c3623f881cd127d1f3450f6e46456d98501d9d21f5292ec6bae877fa3020adbaae2dbb83f105c8c7eb0273fedd927753238d2399385721167680200c8b51a15 |
30 |
DIST ngx_http_fancyindex-0.3.5.tar.gz 14837 SHA256 e0998e83be58bc5787fa9243a76a9d21de3cd01088d3cf63177ba88a562634a1 SHA512 ddb4ab3e8e47e1c49680db3e9f648f7cd582c07f963204105118e61432fa1e80c3f1bce69ed689db383011a9c155184bcc7e931eeae20bbd7cbdb5d4eb35a0a8 WHIRLPOOL a45db854d75f05a59c6f5e67c652850b5410162e7852abda20bb6720d29cc716f25ce7ea93ef52f9ff3f11d6d3a744c1fa4c7a6270fc1bd6d42f6743accb8e73 |
31 |
DIST ngx_http_headers_more-0.26.tar.gz 28028 SHA256 d6bdc51f9e778a3b23e41a51cae542c1467a1e5e55c1329a7ffc454be084fb6f SHA512 842927de67d28f3cff596607f209d1004b6d49f1d45b861758405ed6fe6f7aab76ad63530ccdfff1c1947db1190dd65dee0a29f50026bfa7a39a9a051561cf88 WHIRLPOOL 0dc37c36717be40a07112388d913d20bc99d76f90604da618d5547f24d93c636c14c2cca18191ff5916b40ec0113da648cfc07e1c00b1853f2b15ce056d5f3d7 |
32 |
-DIST ngx_http_headers_more-0.261.tar.gz 28022 SHA256 03d1f5fbecba8565f247d87a38f5e4b6440b0a56d752bdd2b29af2f1c4aea480 SHA512 252b5adc86f114460a956b38cca448917124523730e95ffc822a953232da9835e5ee663c65077413d655a8887ac692872b5de115e3cf4123463df7a84f759c3f WHIRLPOOL d97828ac45a1641210544a8b3ee21d86a8c2160fa665352992822b9a4cd7b8b48f9816afc124007e73467237a53615bff23a5cfbfad48bd04fefb9843335f1ee |
33 |
DIST ngx_http_headers_more-0.28.tar.gz 26948 SHA256 67e5ca6cd9472938333c4530ab8c8b8bc9fe910a8cb237e5e5f1853e14725580 SHA512 ed39930ddb416ab3510c3649f296e55474584bf1e9c9855c2330c0ec04d208865d242f54c55dbac79a4871803197fd930c20396a3b70f0f5fb009318d3c12254 WHIRLPOOL 7c0455c6ac15a033e62126ff8bb246d3d0315a2b18c095bdb0867669daa2387a5dfa4fdfbf038b8392ac4ee42c671a49ac742bd28352b2f5fbcf6fee423df1a2 |
34 |
DIST ngx_http_lua-0.9.15.tar.gz 520190 SHA256 659fe4c201f4a4ae1007fa029cef472aaa837bf0904babb6158f83b86536c5b7 SHA512 1d809f873ced8e50422298bb4b730b8e7aaf442c11570cbe892fd73a414ff4f6d6eca7be8b2d2dbf57a136136b17d80596ee2f2f195dcb59776e78df5a94ae92 WHIRLPOOL caf128254f99d674eb370779c6e41c0b459be1c5a2baac7df1ff3498a38349bd2c140594eea3eb29c468a366e265421f90363886be73db0b3484cc6f386cb563 |
35 |
-DIST ngx_http_lua-0.9.17.tar.gz 540687 SHA256 68fba0cae22b11314968ba18d811991a95cade992aa76da3768af93d4b83b70f SHA512 3e140dff37443f2b2d9da28c4318741c7e8fb7e5d5f29b51745ed62517d3f5e873e1f86c0ade7e0d637aef0227c8a533699e8525292d8210f2b9eb41b3d7852a WHIRLPOOL a9e1e8a88b7339cb16f2e2f261afb81d175e14edd1b4987e300c7e0541a871a660128996f9b7de746f5846df4ff34d583379e8b9dae0658eca5438b0c146b96a |
36 |
DIST ngx_http_lua-0.9.19.tar.gz 542445 SHA256 2b41d4d2627fda76946f194aae6c2b4d89bb59afd792d397c6b481ee82c10eb4 SHA512 9467742c4f5ac164fd33263990bbc5719069a7549413486586406e007156719de77e95944db8201deb2f3e7fc4ce9aa4ada027f89f0e421117dc29018b2fed1c WHIRLPOOL 9853ee88a491fd3844975a8c920032e76f36ed8d7d34033f3a744acb7ed8116fd45efb75a37c918edb912d3c5d203f5c83111ec82b5ab8acdad13632e47df1e8 |
37 |
DIST ngx_http_naxsi-0.53-2.tar.gz 165690 SHA256 3eadff1d91995beae41b92733ade28091c2075a24ae37058f4d6aa90b0f4b660 SHA512 ada592f5e7f80a6d549cc435ee8720df01a788dc88cf27a7d55521bb7e4c66fa11b9ec28216aff7e13c70a5faf12cb745bd398b8a782ed4dea1eecd04b07e24c WHIRLPOOL c5b736dbe9bd66daf7e023f176a08f78225b61990781d7ad5a55d0f35391df7e05bf1b2623a6227e0355cf0204ef9eac1b9fa03aa62b3c0d6eac515f1213f270 |
38 |
DIST ngx_http_naxsi-0.54.tar.gz 163809 SHA256 9cc2c09405bc71f78ef26a8b6d70afcea3fccbe8125df70cb0cfc480133daba5 SHA512 91934bfd41495715269cc6e549d17f6da66f2bdd0c9a6821fa9096b694dd3927109c4aad2f8b327620ae7c34f76a0839ac16669cd8c65081bc01fa7f829c1d43 WHIRLPOOL ef68cfecc9849086527c3590744d3c0d73cec830c6cf1ebca63566a7444438757a85d0c79fa552c4763e0416a615f4cf8d99622e2f36d3713b7072138a82f5a8 |
39 |
|
40 |
diff --git a/www-servers/nginx/nginx-1.9.6.ebuild b/www-servers/nginx/nginx-1.9.6.ebuild |
41 |
deleted file mode 100644 |
42 |
index e82d214..0000000 |
43 |
--- a/www-servers/nginx/nginx-1.9.6.ebuild |
44 |
+++ /dev/null |
45 |
@@ -1,695 +0,0 @@ |
46 |
-# Copyright 1999-2015 Gentoo Foundation |
47 |
-# Distributed under the terms of the GNU General Public License v2 |
48 |
-# $Id$ |
49 |
- |
50 |
-EAPI=5 |
51 |
- |
52 |
-# Maintainer notes: |
53 |
-# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
54 |
-# - any http-module activates the main http-functionality and overrides USE=-http |
55 |
-# - keep the following requirements in mind before adding external modules: |
56 |
-# * alive upstream |
57 |
-# * sane packaging |
58 |
-# * builds cleanly |
59 |
-# * does not need a patch for nginx core |
60 |
-# - TODO: test the google-perftools module (included in vanilla tarball) |
61 |
- |
62 |
-# prevent perl-module from adding automagic perl DEPENDs |
63 |
-GENTOO_DEPEND_ON_PERL="no" |
64 |
- |
65 |
-# devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license) |
66 |
-DEVEL_KIT_MODULE_PV="0.2.19" |
67 |
-DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1" |
68 |
-DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz" |
69 |
-DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}" |
70 |
- |
71 |
-# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) |
72 |
-HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.1" |
73 |
-HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1" |
74 |
-HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz" |
75 |
-HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" |
76 |
- |
77 |
-# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) |
78 |
-HTTP_HEADERS_MORE_MODULE_PV="0.261" |
79 |
-HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}" |
80 |
-HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" |
81 |
-HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" |
82 |
- |
83 |
-# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license) |
84 |
-HTTP_CACHE_PURGE_MODULE_PV="2.3" |
85 |
-HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
86 |
-HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
87 |
-HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
88 |
- |
89 |
-# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
90 |
-HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
91 |
-HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
92 |
-HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
93 |
-HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
94 |
- |
95 |
-# http_fancyindex (https://github.com/aperezdc/ngx-fancyindex, BSD license) |
96 |
-HTTP_FANCYINDEX_MODULE_PV="0.3.5" |
97 |
-HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
98 |
-HTTP_FANCYINDEX_MODULE_URI="https://github.com/aperezdc/ngx-fancyindex/archive/v${HTTP_FANCYINDEX_MODULE_PV}.tar.gz" |
99 |
-HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
100 |
- |
101 |
-# http_lua (https://github.com/openresty/lua-nginx-module, BSD license) |
102 |
-HTTP_LUA_MODULE_PV="0.9.17" |
103 |
-HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}" |
104 |
-HTTP_LUA_MODULE_URI="https://github.com/openresty/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz" |
105 |
-HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}" |
106 |
- |
107 |
-# http_auth_pam (https://github.com/stogh/ngx_http_auth_pam_module/, http://web.iti.upv.es/~sto/nginx/, BSD-2 license) |
108 |
-HTTP_AUTH_PAM_MODULE_PV="1.4" |
109 |
-HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}" |
110 |
-HTTP_AUTH_PAM_MODULE_URI="https://github.com/stogh/ngx_http_auth_pam_module/archive/v${HTTP_AUTH_PAM_MODULE_PV}.tar.gz" |
111 |
-HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}" |
112 |
- |
113 |
-# http_upstream_check (https://github.com/yaoweibin/nginx_upstream_check_module, BSD license) |
114 |
-HTTP_UPSTREAM_CHECK_MODULE_PV="0.3.0" |
115 |
-HTTP_UPSTREAM_CHECK_MODULE_P="ngx_http_upstream_check-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
116 |
-HTTP_UPSTREAM_CHECK_MODULE_URI="https://github.com/yaoweibin/nginx_upstream_check_module/archive/v${HTTP_UPSTREAM_CHECK_MODULE_PV}.tar.gz" |
117 |
-HTTP_UPSTREAM_CHECK_MODULE_WD="${WORKDIR}/nginx_upstream_check_module-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
118 |
- |
119 |
-# http_metrics (https://github.com/zenops/ngx_metrics, BSD license) |
120 |
-HTTP_METRICS_MODULE_PV="0.1.1" |
121 |
-HTTP_METRICS_MODULE_P="ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
122 |
-HTTP_METRICS_MODULE_URI="https://github.com/madvertise/ngx_metrics/archive/v${HTTP_METRICS_MODULE_PV}.tar.gz" |
123 |
-HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
124 |
- |
125 |
-# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) |
126 |
-HTTP_NAXSI_MODULE_PV="0.54" |
127 |
-HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" |
128 |
-HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" |
129 |
-HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" |
130 |
- |
131 |
-# nginx-rtmp-module (https://github.com/arut/nginx-rtmp-module, BSD license) |
132 |
-RTMP_MODULE_PV="1.1.7" |
133 |
-RTMP_MODULE_P="ngx_rtmp-${RTMP_MODULE_PV}" |
134 |
-RTMP_MODULE_URI="https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_MODULE_PV}.tar.gz" |
135 |
-RTMP_MODULE_WD="${WORKDIR}/nginx-rtmp-module-${RTMP_MODULE_PV}" |
136 |
- |
137 |
-# nginx-dav-ext-module (https://github.com/arut/nginx-dav-ext-module, BSD license) |
138 |
-HTTP_DAV_EXT_MODULE_PV="0.0.3" |
139 |
-HTTP_DAV_EXT_MODULE_P="ngx_http_dav_ext-${HTTP_DAV_EXT_MODULE_PV}" |
140 |
-HTTP_DAV_EXT_MODULE_URI="https://github.com/arut/nginx-dav-ext-module/archive/v${HTTP_DAV_EXT_MODULE_PV}.tar.gz" |
141 |
-HTTP_DAV_EXT_MODULE_WD="${WORKDIR}/nginx-dav-ext-module-${HTTP_DAV_EXT_MODULE_PV}" |
142 |
- |
143 |
-# echo-nginx-module (https://github.com/agentzh/echo-nginx-module, BSD license) |
144 |
-HTTP_ECHO_MODULE_PV="0.58" |
145 |
-HTTP_ECHO_MODULE_P="ngx_http_echo-${HTTP_ECHO_MODULE_PV}" |
146 |
-HTTP_ECHO_MODULE_URI="https://github.com/agentzh/echo-nginx-module/archive/v${HTTP_ECHO_MODULE_PV}.tar.gz" |
147 |
-HTTP_ECHO_MODULE_WD="${WORKDIR}/echo-nginx-module-${HTTP_ECHO_MODULE_PV}" |
148 |
- |
149 |
-# mod_security for nginx (https://modsecurity.org/, Apache-2.0) |
150 |
-# keep the MODULE_P here consistent with upstream to avoid tarball duplication |
151 |
-HTTP_SECURITY_MODULE_PV="2.9.0" |
152 |
-HTTP_SECURITY_MODULE_P="modsecurity-${HTTP_SECURITY_MODULE_PV}" |
153 |
-HTTP_SECURITY_MODULE_URI="https://www.modsecurity.org/tarball/${HTTP_SECURITY_MODULE_PV}/${HTTP_SECURITY_MODULE_P}.tar.gz" |
154 |
-HTTP_SECURITY_MODULE_WD="${WORKDIR}/${HTTP_SECURITY_MODULE_P}" |
155 |
- |
156 |
-# push-stream-module (http://www.nginxpushstream.com, https://github.com/wandenberg/nginx-push-stream-module, GPL-3) |
157 |
-HTTP_PUSH_STREAM_MODULE_PV="0.5.1" |
158 |
-HTTP_PUSH_STREAM_MODULE_P="ngx_http_push_stream-${HTTP_PUSH_STREAM_MODULE_PV}" |
159 |
-HTTP_PUSH_STREAM_MODULE_URI="https://github.com/wandenberg/nginx-push-stream-module/archive/${HTTP_PUSH_STREAM_MODULE_PV}.tar.gz" |
160 |
-HTTP_PUSH_STREAM_MODULE_WD="${WORKDIR}/nginx-push-stream-module-${HTTP_PUSH_STREAM_MODULE_PV}" |
161 |
- |
162 |
-# sticky-module (https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng, BSD-2) |
163 |
-HTTP_STICKY_MODULE_PV="1.2.6" |
164 |
-HTTP_STICKY_MODULE_P="nginx_http_sticky_module_ng-${HTTP_STICKY_MODULE_PV}" |
165 |
-HTTP_STICKY_MODULE_URI="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/${HTTP_STICKY_MODULE_PV}.tar.bz2" |
166 |
-HTTP_STICKY_MODULE_WD="${WORKDIR}/nginx-goodies-nginx-sticky-module-ng-c78b7dd79d0d" |
167 |
- |
168 |
-# mogilefs-module (http://www.grid.net.ru/nginx/mogilefs.en.html, BSD-2) |
169 |
-HTTP_MOGILEFS_MODULE_PV="1.0.4" |
170 |
-HTTP_MOGILEFS_MODULE_P="ngx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
171 |
-HTTP_MOGILEFS_MODULE_URI="http://www.grid.net.ru/nginx/download/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}.tar.gz" |
172 |
-HTTP_MOGILEFS_MODULE_WD="${WORKDIR}/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
173 |
- |
174 |
-# memc-module (https://github.com/openresty/memc-nginx-module, BSD-2) |
175 |
-HTTP_MEMC_MODULE_PV="0.16" |
176 |
-HTTP_MEMC_MODULE_P="ngx_memc_module-${HTTP_MEMC_MODULE_PV}" |
177 |
-HTTP_MEMC_MODULE_URI="https://github.com/openresty/memc-nginx-module/archive/v${HTTP_MEMC_MODULE_PV}.tar.gz" |
178 |
-HTTP_MEMC_MODULE_WD="${WORKDIR}/memc-nginx-module-${HTTP_MEMC_MODULE_PV}" |
179 |
- |
180 |
-inherit eutils ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib |
181 |
- |
182 |
-DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
183 |
-HOMEPAGE="http://nginx.org" |
184 |
-SRC_URI="http://nginx.org/download/${P}.tar.gz |
185 |
- ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
186 |
- nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
187 |
- nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) |
188 |
- nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) |
189 |
- nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz ) |
190 |
- nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz ) |
191 |
- nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz ) |
192 |
- nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz ) |
193 |
- nginx_modules_http_upstream_check? ( ${HTTP_UPSTREAM_CHECK_MODULE_URI} -> ${HTTP_UPSTREAM_CHECK_MODULE_P}.tar.gz ) |
194 |
- nginx_modules_http_metrics? ( ${HTTP_METRICS_MODULE_URI} -> ${HTTP_METRICS_MODULE_P}.tar.gz ) |
195 |
- nginx_modules_http_naxsi? ( ${HTTP_NAXSI_MODULE_URI} -> ${HTTP_NAXSI_MODULE_P}.tar.gz ) |
196 |
- rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz ) |
197 |
- nginx_modules_http_dav_ext? ( ${HTTP_DAV_EXT_MODULE_URI} -> ${HTTP_DAV_EXT_MODULE_P}.tar.gz ) |
198 |
- nginx_modules_http_echo? ( ${HTTP_ECHO_MODULE_URI} -> ${HTTP_ECHO_MODULE_P}.tar.gz ) |
199 |
- nginx_modules_http_security? ( ${HTTP_SECURITY_MODULE_URI} -> ${HTTP_SECURITY_MODULE_P}.tar.gz ) |
200 |
- nginx_modules_http_push_stream? ( ${HTTP_PUSH_STREAM_MODULE_URI} -> ${HTTP_PUSH_STREAM_MODULE_P}.tar.gz ) |
201 |
- nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) |
202 |
- nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz ) |
203 |
- nginx_modules_http_memc? ( ${HTTP_MEMC_MODULE_URI} -> ${HTTP_MEMC_MODULE_P}.tar.gz )" |
204 |
- |
205 |
-LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ |
206 |
- nginx_modules_http_security? ( Apache-2.0 ) |
207 |
- nginx_modules_http_push_stream? ( GPL-3 )" |
208 |
- |
209 |
-SLOT="mainline" |
210 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
211 |
- |
212 |
-NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi |
213 |
-geo gzip limit_req limit_conn map memcached proxy referer rewrite scgi ssi |
214 |
-split_clients upstream_ip_hash userid uwsgi" |
215 |
-NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip gzip_static |
216 |
-image_filter mp4 perl random_index realip secure_link stub_status sub xslt" |
217 |
-NGINX_MODULES_MAIL="imap pop3 smtp" |
218 |
-NGINX_MODULES_3RD=" |
219 |
- http_upload_progress |
220 |
- http_headers_more |
221 |
- http_cache_purge |
222 |
- http_slowfs_cache |
223 |
- http_fancyindex |
224 |
- http_lua |
225 |
- http_auth_pam |
226 |
- http_upstream_check |
227 |
- http_metrics |
228 |
- http_naxsi |
229 |
- http_dav_ext |
230 |
- http_echo |
231 |
- http_security |
232 |
- http_push_stream |
233 |
- http_sticky |
234 |
- http_ajp |
235 |
- http_mogilefs |
236 |
- http_memc" |
237 |
- |
238 |
-IUSE="aio debug +http http2 +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp |
239 |
-selinux ssl threads userland_GNU vim-syntax" |
240 |
- |
241 |
-for mod in $NGINX_MODULES_STD; do |
242 |
- IUSE="${IUSE} +nginx_modules_http_${mod}" |
243 |
-done |
244 |
- |
245 |
-for mod in $NGINX_MODULES_OPT; do |
246 |
- IUSE="${IUSE} nginx_modules_http_${mod}" |
247 |
-done |
248 |
- |
249 |
-for mod in $NGINX_MODULES_MAIL; do |
250 |
- IUSE="${IUSE} nginx_modules_mail_${mod}" |
251 |
-done |
252 |
- |
253 |
-for mod in $NGINX_MODULES_3RD; do |
254 |
- IUSE="${IUSE} nginx_modules_${mod}" |
255 |
-done |
256 |
- |
257 |
-# Add so we can warn users updating about config changes |
258 |
-IUSE="${IUSE} nginx_modules_http_spdy" |
259 |
- |
260 |
-CDEPEND=" |
261 |
- pcre? ( >=dev-libs/libpcre-4.2 ) |
262 |
- pcre-jit? ( >=dev-libs/libpcre-8.20[jit] ) |
263 |
- ssl? ( dev-libs/openssl:0= ) |
264 |
- http2? ( >=dev-libs/openssl-1.0.1c:0= ) |
265 |
- http-cache? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
266 |
- nginx_modules_http_geoip? ( dev-libs/geoip ) |
267 |
- nginx_modules_http_gunzip? ( sys-libs/zlib ) |
268 |
- nginx_modules_http_gzip? ( sys-libs/zlib ) |
269 |
- nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
270 |
- nginx_modules_http_image_filter? ( media-libs/gd[jpeg,png] ) |
271 |
- nginx_modules_http_perl? ( >=dev-lang/perl-5.8 ) |
272 |
- nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 ) |
273 |
- nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
274 |
- nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt ) |
275 |
- nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) |
276 |
- nginx_modules_http_auth_pam? ( virtual/pam ) |
277 |
- nginx_modules_http_metrics? ( dev-libs/yajl ) |
278 |
- nginx_modules_http_dav_ext? ( dev-libs/expat ) |
279 |
- nginx_modules_http_security? ( >=dev-libs/libxml2-2.7.8 dev-libs/apr-util www-servers/apache )" |
280 |
-RDEPEND="${CDEPEND} |
281 |
- selinux? ( sec-policy/selinux-nginx ) |
282 |
- !www-servers/nginx:0" |
283 |
-DEPEND="${CDEPEND} |
284 |
- arm? ( dev-libs/libatomic_ops ) |
285 |
- libatomic? ( dev-libs/libatomic_ops )" |
286 |
-PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" |
287 |
- |
288 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
289 |
- nginx_modules_http_lua? ( nginx_modules_http_rewrite ) |
290 |
- nginx_modules_http_naxsi? ( pcre ) |
291 |
- nginx_modules_http_dav_ext? ( nginx_modules_http_dav ) |
292 |
- nginx_modules_http_metrics? ( nginx_modules_http_stub_status ) |
293 |
- nginx_modules_http_security? ( pcre ) |
294 |
- nginx_modules_http_push_stream? ( ssl )" |
295 |
- |
296 |
-pkg_setup() { |
297 |
- NGINX_HOME="/var/lib/nginx" |
298 |
- NGINX_HOME_TMP="${NGINX_HOME}/tmp" |
299 |
- |
300 |
- ebegin "Creating nginx user and group" |
301 |
- enewgroup ${PN} |
302 |
- enewuser ${PN} -1 -1 "${NGINX_HOME}" ${PN} |
303 |
- eend $? |
304 |
- |
305 |
- if use libatomic; then |
306 |
- ewarn "GCC 4.1+ features built-in atomic operations." |
307 |
- ewarn "Using libatomic_ops is only needed if using" |
308 |
- ewarn "a different compiler or a GCC prior to 4.1" |
309 |
- fi |
310 |
- |
311 |
- if [[ -n $NGINX_ADD_MODULES ]]; then |
312 |
- ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
313 |
- ewarn "This nginx installation is not supported!" |
314 |
- ewarn "Make sure you can reproduce the bug without those modules" |
315 |
- ewarn "_before_ reporting bugs." |
316 |
- fi |
317 |
- |
318 |
- if use !http; then |
319 |
- ewarn "To actually disable all http-functionality you also have to disable" |
320 |
- ewarn "all nginx http modules." |
321 |
- fi |
322 |
- |
323 |
- if use nginx_modules_http_ajp; then |
324 |
- eerror "The AJP module currently doesn't build for nginx >1.8." |
325 |
- eerror "It will be reintroduced with the 1.9 series when proven stable." |
326 |
- eerror "Either disable it or stick with nginx 1.7.x." |
327 |
- die "AJP module not supported" |
328 |
- fi |
329 |
- |
330 |
- if use nginx_modules_http_mogilefs && use threads; then |
331 |
- eerror "mogilefs won't compile with threads support." |
332 |
- eerror "Please disable either flag and try again." |
333 |
- die "Can't compile mogilefs with threads support" |
334 |
- fi |
335 |
-} |
336 |
- |
337 |
-src_prepare() { |
338 |
- epatch_user |
339 |
- |
340 |
- epatch "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch" |
341 |
- |
342 |
- if use nginx_modules_http_upstream_check; then |
343 |
- epatch "${FILESDIR}/check-1.9.2".patch |
344 |
- fi |
345 |
- |
346 |
- if use nginx_modules_http_lua; then |
347 |
- sed -i -e 's/-llua5.1/-llua/' "${HTTP_LUA_MODULE_WD}/config" || die |
348 |
- fi |
349 |
- |
350 |
- find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die |
351 |
- # We have config protection, don't rename etc files |
352 |
- sed -i 's:.default::' auto/install || die |
353 |
- # remove useless files |
354 |
- sed -i -e '/koi-/d' -e '/win-/d' auto/install || die |
355 |
- |
356 |
- # don't install to /etc/nginx/ if not in use |
357 |
- local module |
358 |
- for module in fastcgi scgi uwsgi ; do |
359 |
- if ! use nginx_modules_http_${module}; then |
360 |
- sed -i -e "/${module}/d" auto/install || die |
361 |
- fi |
362 |
- done |
363 |
-} |
364 |
- |
365 |
-src_configure() { |
366 |
- # mod_security needs to generate nginx/modsecurity/config before including it |
367 |
- if use nginx_modules_http_security; then |
368 |
- cd "${HTTP_SECURITY_MODULE_WD}" |
369 |
- if use luajit ; then |
370 |
- sed -i \ |
371 |
- -e 's|^\(LUA_PKGNAMES\)=.*|\1="luajit"|' \ |
372 |
- configure || die |
373 |
- fi |
374 |
- ./configure \ |
375 |
- --enable-standalone-module \ |
376 |
- $(use_enable pcre-jit) \ |
377 |
- $(use_with nginx_modules_http_lua lua) || die "configure failed for mod_security" |
378 |
- fi |
379 |
- |
380 |
- cd "${S}" |
381 |
- |
382 |
- local myconf=() http_enabled= mail_enabled= |
383 |
- |
384 |
- use aio && myconf+=( --with-file-aio ) |
385 |
- use debug && myconf+=( --with-debug ) |
386 |
- use http2 && myconf+=( --with-http_v2_module ) |
387 |
- use ipv6 && myconf+=( --with-ipv6 ) |
388 |
- use libatomic && myconf+=( --with-libatomic ) |
389 |
- use pcre && myconf+=( --with-pcre ) |
390 |
- use pcre-jit && myconf+=( --with-pcre-jit ) |
391 |
- use threads && myconf+=( --with-threads ) |
392 |
- |
393 |
- # HTTP modules |
394 |
- for mod in $NGINX_MODULES_STD; do |
395 |
- if use nginx_modules_http_${mod}; then |
396 |
- http_enabled=1 |
397 |
- else |
398 |
- myconf+=( --without-http_${mod}_module ) |
399 |
- fi |
400 |
- done |
401 |
- |
402 |
- for mod in $NGINX_MODULES_OPT; do |
403 |
- if use nginx_modules_http_${mod}; then |
404 |
- http_enabled=1 |
405 |
- myconf+=( --with-http_${mod}_module ) |
406 |
- fi |
407 |
- done |
408 |
- |
409 |
- if use nginx_modules_http_fastcgi; then |
410 |
- myconf+=( --with-http_realip_module ) |
411 |
- fi |
412 |
- |
413 |
- # third-party modules |
414 |
- if use nginx_modules_http_upload_progress; then |
415 |
- http_enabled=1 |
416 |
- myconf+=( --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD} ) |
417 |
- fi |
418 |
- |
419 |
- if use nginx_modules_http_headers_more; then |
420 |
- http_enabled=1 |
421 |
- myconf+=( --add-module=${HTTP_HEADERS_MORE_MODULE_WD} ) |
422 |
- fi |
423 |
- |
424 |
- if use nginx_modules_http_cache_purge; then |
425 |
- http_enabled=1 |
426 |
- myconf+=( --add-module=${HTTP_CACHE_PURGE_MODULE_WD} ) |
427 |
- fi |
428 |
- |
429 |
- if use nginx_modules_http_slowfs_cache; then |
430 |
- http_enabled=1 |
431 |
- myconf+=( --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD} ) |
432 |
- fi |
433 |
- |
434 |
- if use nginx_modules_http_fancyindex; then |
435 |
- http_enabled=1 |
436 |
- myconf+=( --add-module=${HTTP_FANCYINDEX_MODULE_WD} ) |
437 |
- fi |
438 |
- |
439 |
- if use nginx_modules_http_lua; then |
440 |
- http_enabled=1 |
441 |
- if use luajit; then |
442 |
- export LUAJIT_LIB=$(pkg-config --variable libdir luajit) |
443 |
- export LUAJIT_INC=$(pkg-config --variable includedir luajit) |
444 |
- else |
445 |
- export LUA_LIB=$(pkg-config --variable libdir lua) |
446 |
- export LUA_INC=$(pkg-config --variable includedir lua) |
447 |
- fi |
448 |
- myconf+=( --add-module=${DEVEL_KIT_MODULE_WD} ) |
449 |
- myconf+=( --add-module=${HTTP_LUA_MODULE_WD} ) |
450 |
- fi |
451 |
- |
452 |
- if use nginx_modules_http_auth_pam; then |
453 |
- http_enabled=1 |
454 |
- myconf+=( --add-module=${HTTP_AUTH_PAM_MODULE_WD} ) |
455 |
- fi |
456 |
- |
457 |
- if use nginx_modules_http_upstream_check; then |
458 |
- http_enabled=1 |
459 |
- myconf+=( --add-module=${HTTP_UPSTREAM_CHECK_MODULE_WD} ) |
460 |
- fi |
461 |
- |
462 |
- if use nginx_modules_http_metrics; then |
463 |
- http_enabled=1 |
464 |
- myconf+=( --add-module=${HTTP_METRICS_MODULE_WD} ) |
465 |
- fi |
466 |
- |
467 |
- if use nginx_modules_http_naxsi ; then |
468 |
- http_enabled=1 |
469 |
- myconf+=( --add-module=${HTTP_NAXSI_MODULE_WD} ) |
470 |
- fi |
471 |
- |
472 |
- if use rtmp ; then |
473 |
- http_enabled=1 |
474 |
- myconf+=( --add-module=${RTMP_MODULE_WD} ) |
475 |
- fi |
476 |
- |
477 |
- if use nginx_modules_http_dav_ext ; then |
478 |
- http_enabled=1 |
479 |
- myconf+=( --add-module=${HTTP_DAV_EXT_MODULE_WD} ) |
480 |
- fi |
481 |
- |
482 |
- if use nginx_modules_http_echo ; then |
483 |
- http_enabled=1 |
484 |
- myconf+=( --add-module=${HTTP_ECHO_MODULE_WD} ) |
485 |
- fi |
486 |
- |
487 |
- if use nginx_modules_http_security ; then |
488 |
- http_enabled=1 |
489 |
- myconf+=( --add-module=${HTTP_SECURITY_MODULE_WD}/nginx/modsecurity ) |
490 |
- fi |
491 |
- |
492 |
- if use nginx_modules_http_push_stream ; then |
493 |
- http_enabled=1 |
494 |
- myconf+=( --add-module=${HTTP_PUSH_STREAM_MODULE_WD} ) |
495 |
- fi |
496 |
- |
497 |
- if use nginx_modules_http_sticky ; then |
498 |
- http_enabled=1 |
499 |
- myconf+=( --add-module=${HTTP_STICKY_MODULE_WD} ) |
500 |
- fi |
501 |
- |
502 |
- if use nginx_modules_http_mogilefs ; then |
503 |
- http_enabled=1 |
504 |
- myconf+=( --add-module=${HTTP_MOGILEFS_MODULE_WD} ) |
505 |
- fi |
506 |
- |
507 |
- if use nginx_modules_http_memc ; then |
508 |
- http_enabled=1 |
509 |
- myconf+=( --add-module=${HTTP_MEMC_MODULE_WD} ) |
510 |
- fi |
511 |
- |
512 |
- if use http || use http-cache || use http2; then |
513 |
- http_enabled=1 |
514 |
- fi |
515 |
- |
516 |
- if [ $http_enabled ]; then |
517 |
- use http-cache || myconf+=( --without-http-cache ) |
518 |
- use ssl && myconf+=( --with-http_ssl_module ) |
519 |
- else |
520 |
- myconf+=( --without-http --without-http-cache ) |
521 |
- fi |
522 |
- |
523 |
- # MAIL modules |
524 |
- for mod in $NGINX_MODULES_MAIL; do |
525 |
- if use nginx_modules_mail_${mod}; then |
526 |
- mail_enabled=1 |
527 |
- else |
528 |
- myconf+=( --without-mail_${mod}_module ) |
529 |
- fi |
530 |
- done |
531 |
- |
532 |
- if [ $mail_enabled ]; then |
533 |
- myconf+=( --with-mail ) |
534 |
- use ssl && myconf+=( --with-mail_ssl_module ) |
535 |
- fi |
536 |
- |
537 |
- # custom modules |
538 |
- for mod in $NGINX_ADD_MODULES; do |
539 |
- myconf+=( --add-module=${mod} ) |
540 |
- done |
541 |
- |
542 |
- # https://bugs.gentoo.org/286772 |
543 |
- export LANG=C LC_ALL=C |
544 |
- tc-export CC |
545 |
- |
546 |
- if ! use prefix; then |
547 |
- myconf+=( --user=${PN}" "--group=${PN} ) |
548 |
- fi |
549 |
- |
550 |
- ./configure \ |
551 |
- --prefix="${EPREFIX}"/usr \ |
552 |
- --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \ |
553 |
- --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \ |
554 |
- --pid-path="${EPREFIX}"/run/${PN}.pid \ |
555 |
- --lock-path="${EPREFIX}"/run/lock/${PN}.lock \ |
556 |
- --with-cc-opt="-I${EROOT}usr/include" \ |
557 |
- --with-ld-opt="-L${EROOT}usr/$(get_libdir)" \ |
558 |
- --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \ |
559 |
- --http-client-body-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/client \ |
560 |
- --http-proxy-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/proxy \ |
561 |
- --http-fastcgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/fastcgi \ |
562 |
- --http-scgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/scgi \ |
563 |
- --http-uwsgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/uwsgi \ |
564 |
- "${myconf[@]}" || die "configure failed" |
565 |
- |
566 |
- # A purely cosmetic change that makes nginx -V more readable. This can be |
567 |
- # good if people outside the gentoo community would troubleshoot and |
568 |
- # question the users setup. |
569 |
- sed -i -e "s|${WORKDIR}|external_module|g" objs/ngx_auto_config.h || die |
570 |
-} |
571 |
- |
572 |
-src_compile() { |
573 |
- use nginx_modules_http_security && emake -C "${HTTP_SECURITY_MODULE_WD}" |
574 |
- |
575 |
- # https://bugs.gentoo.org/286772 |
576 |
- export LANG=C LC_ALL=C |
577 |
- emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" |
578 |
-} |
579 |
- |
580 |
-src_install() { |
581 |
- emake DESTDIR="${D%/}" install |
582 |
- |
583 |
- cp "${FILESDIR}"/nginx.conf "${ED}"etc/nginx/nginx.conf || die |
584 |
- |
585 |
- newinitd "${FILESDIR}"/nginx.initd-r2 nginx |
586 |
- |
587 |
- systemd_newunit "${FILESDIR}"/nginx.service-r1 nginx.service |
588 |
- |
589 |
- doman man/nginx.8 |
590 |
- dodoc CHANGES* README |
591 |
- |
592 |
- # just keepdir. do not copy the default htdocs files (bug #449136) |
593 |
- keepdir /var/www/localhost |
594 |
- rm -rf "${D}"usr/html || die |
595 |
- |
596 |
- # set up a list of directories to keep |
597 |
- local keepdir_list="${NGINX_HOME_TMP}"/client |
598 |
- local module |
599 |
- for module in proxy fastcgi scgi uwsgi; do |
600 |
- use nginx_modules_http_${module} && keepdir_list+=" ${NGINX_HOME_TMP}/${module}" |
601 |
- done |
602 |
- |
603 |
- keepdir /var/log/nginx ${keepdir_list} |
604 |
- |
605 |
- # this solves a problem with SELinux where nginx doesn't see the directories |
606 |
- # as root and tries to create them as nginx |
607 |
- fperms 0750 "${NGINX_HOME_TMP}" |
608 |
- fowners ${PN}:0 "${NGINX_HOME_TMP}" |
609 |
- |
610 |
- fperms 0700 /var/log/nginx ${keepdir_list} |
611 |
- fowners ${PN}:${PN} /var/log/nginx ${keepdir_list} |
612 |
- |
613 |
- # logrotate |
614 |
- insinto /etc/logrotate.d |
615 |
- newins "${FILESDIR}"/nginx.logrotate-r1 nginx |
616 |
- |
617 |
- if use nginx_modules_http_perl; then |
618 |
- cd "${S}"/objs/src/http/modules/perl/ |
619 |
- emake DESTDIR="${D}" INSTALLDIRS=vendor |
620 |
- perl_delete_localpod |
621 |
- fi |
622 |
- |
623 |
- if use nginx_modules_http_cache_purge; then |
624 |
- docinto ${HTTP_CACHE_PURGE_MODULE_P} |
625 |
- dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md} |
626 |
- fi |
627 |
- |
628 |
- if use nginx_modules_http_slowfs_cache; then |
629 |
- docinto ${HTTP_SLOWFS_CACHE_MODULE_P} |
630 |
- dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md} |
631 |
- fi |
632 |
- |
633 |
- if use nginx_modules_http_fancyindex; then |
634 |
- docinto ${HTTP_FANCYINDEX_MODULE_P} |
635 |
- dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst |
636 |
- fi |
637 |
- |
638 |
- if use nginx_modules_http_lua; then |
639 |
- docinto ${HTTP_LUA_MODULE_P} |
640 |
- dodoc "${HTTP_LUA_MODULE_WD}"/{Changes,README.markdown} |
641 |
- fi |
642 |
- |
643 |
- if use nginx_modules_http_auth_pam; then |
644 |
- docinto ${HTTP_AUTH_PAM_MODULE_P} |
645 |
- dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README.md,ChangeLog} |
646 |
- fi |
647 |
- |
648 |
- if use nginx_modules_http_upstream_check; then |
649 |
- docinto ${HTTP_UPSTREAM_CHECK_MODULE_P} |
650 |
- dodoc "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/{README,CHANGES} |
651 |
- fi |
652 |
- |
653 |
- if use nginx_modules_http_naxsi; then |
654 |
- insinto /etc/nginx |
655 |
- doins "${HTTP_NAXSI_MODULE_WD}"/../naxsi_config/naxsi_core.rules |
656 |
- fi |
657 |
- |
658 |
- if use rtmp; then |
659 |
- docinto ${RTMP_MODULE_P} |
660 |
- dodoc "${RTMP_MODULE_WD}"/{AUTHORS,README.md,stat.xsl} |
661 |
- fi |
662 |
- |
663 |
- if use nginx_modules_http_dav_ext; then |
664 |
- docinto ${HTTP_DAV_EXT_MODULE_P} |
665 |
- dodoc "${HTTP_DAV_EXT_MODULE_WD}"/README |
666 |
- fi |
667 |
- |
668 |
- if use nginx_modules_http_echo; then |
669 |
- docinto ${HTTP_ECHO_MODULE_P} |
670 |
- dodoc "${HTTP_ECHO_MODULE_WD}"/{README.markdown,doc/HttpEchoModule.wiki} |
671 |
- fi |
672 |
- |
673 |
- if use nginx_modules_http_security; then |
674 |
- docinto ${HTTP_SECURITY_MODULE_P} |
675 |
- dodoc "${HTTP_SECURITY_MODULE_WD}"/{CHANGES,README.TXT,authors.txt} |
676 |
- fi |
677 |
- |
678 |
- if use nginx_modules_http_push_stream; then |
679 |
- docinto ${HTTP_PUSH_STREAM_MODULE_P} |
680 |
- dodoc "${HTTP_PUSH_STREAM_MODULE_WD}"/{AUTHORS,CHANGELOG.textile,README.textile} |
681 |
- fi |
682 |
- |
683 |
- if use nginx_modules_http_sticky; then |
684 |
- docinto ${HTTP_STICKY_MODULE_P} |
685 |
- dodoc "${HTTP_STICKY_MODULE_WD}"/{README.md,Changelog.txt,docs/sticky.pdf} |
686 |
- fi |
687 |
- |
688 |
- if use nginx_modules_http_memc; then |
689 |
- docinto ${HTTP_MEMC_MODULE_P} |
690 |
- dodoc "${HTTP_MEMC_MODULE_WD}"/README.markdown |
691 |
- fi |
692 |
-} |
693 |
- |
694 |
-pkg_postinst() { |
695 |
- if use ssl; then |
696 |
- if [ ! -f "${EROOT}"etc/ssl/${PN}/${PN}.key ]; then |
697 |
- install_cert /etc/ssl/${PN}/${PN} |
698 |
- use prefix || chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
699 |
- fi |
700 |
- fi |
701 |
- |
702 |
- if use nginx_modules_http_spdy; then |
703 |
- ewarn "In nginx 1.9.5 the spdy module was superseded by http2." |
704 |
- ewarn "Update your configs and package.use accordingly." |
705 |
- fi |
706 |
- |
707 |
- if use nginx_modules_http_lua && use http2; then |
708 |
- ewarn "Lua 3rd party module author warns against using ${P} with" |
709 |
- ewarn "NGINX_MODULES_HTTP=\"lua http2\". For more info, see http://git.io/OldLsg" |
710 |
- fi |
711 |
- |
712 |
- # This is the proper fix for bug #458726/#469094, resp. CVE-2013-0337 for |
713 |
- # existing installations |
714 |
- local fix_perms=0 |
715 |
- |
716 |
- for rv in ${REPLACING_VERSIONS} ; do |
717 |
- version_compare ${rv} 1.4.1-r2 |
718 |
- [[ $? -eq 1 ]] && fix_perms=1 |
719 |
- done |
720 |
- |
721 |
- if [[ $fix_perms -eq 1 ]] ; then |
722 |
- ewarn "To fix a security bug (CVE-2013-0337, bug #458726) had the following" |
723 |
- ewarn "directories the world-readable bit removed (if set):" |
724 |
- ewarn " ${EPREFIX}/var/log/nginx" |
725 |
- ewarn " ${EPREFIX}${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi}" |
726 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
727 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
728 |
- ewarn "Furthermore nginx' temp directories got moved to ${NGINX_HOME_TMP}" |
729 |
- chmod -f o-rwx "${EPREFIX}"/var/log/nginx "${EPREFIX}${NGINX_HOME_TMP}"/{,client,proxy,fastcgi,scgi,uwsgi} |
730 |
- fi |
731 |
- |
732 |
- # If the nginx user can't change into or read the dir, display a warning. |
733 |
- # If su is not available we display the warning nevertheless since we can't check properly |
734 |
- su -s /bin/sh -c 'cd /var/log/nginx/ && ls' nginx >&/dev/null |
735 |
- if [ $? -ne 0 ] ; then |
736 |
- ewarn "Please make sure that the nginx user or group has at least" |
737 |
- ewarn "'rx' permissions on /var/log/nginx (default on a fresh install)" |
738 |
- ewarn "Otherwise you end up with empty log files after a logrotate." |
739 |
- fi |
740 |
-} |