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