Lines 17-22
Link Here
|
17 |
# prevent perl-module from adding automagic perl DEPENDs |
17 |
# prevent perl-module from adding automagic perl DEPENDs |
18 |
GENTOO_DEPEND_ON_PERL="no" |
18 |
GENTOO_DEPEND_ON_PERL="no" |
19 |
|
19 |
|
|
|
20 |
# ngx_pagespeed (https://github.com/pagespeed/ngx_pagespeed, Apache 2 license) |
21 |
NGX_PAGESPEED_MODULE_PV="1.5.27.3-beta" |
22 |
NGX_PAGESPEED_MODULE_P="ngx_pagespeed" |
23 |
NGX_PAGESPEED_MODULE_WD=${WORKDIR}/${NGX_PAGESPEED_MODULE_P}-master |
24 |
# psol required for pagespeed |
25 |
NGX_PAGESPEED_PSOL_P="ngx_pagespeed_psol" |
26 |
NGX_PAGESPEED_PSOL_PV="1.5.27.3" |
27 |
NGX_PAGESPEED_PSOL_URI="https://dl.google.com/dl/page-speed/psol/${NGX_PAGESPEED_PSOL_PV}.tar.gz" |
28 |
NGX_PAGESPEED_PSOL_WD=${WORKDIR}/${NGX_PAGESPEED_MODULE_P}-${NGX_PAGESPEED_MODULE_PV} |
29 |
|
20 |
# syslog |
30 |
# syslog |
21 |
SYSLOG_MODULE_PV="0.25" |
31 |
SYSLOG_MODULE_PV="0.25" |
22 |
SYSLOG_MODULE_NGINX_PV="1.3.14" |
32 |
SYSLOG_MODULE_NGINX_PV="1.3.14" |
Lines 54-60
Link Here
|
54 |
HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
64 |
HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
55 |
HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
65 |
HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
56 |
|
66 |
|
57 |
# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
|
|
58 |
HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
67 |
HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
59 |
HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
68 |
HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
60 |
HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
69 |
HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
Lines 101-106
Link Here
|
101 |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
110 |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
102 |
HOMEPAGE="http://nginx.org" |
111 |
HOMEPAGE="http://nginx.org" |
103 |
SRC_URI="http://nginx.org/download/${P}.tar.gz |
112 |
SRC_URI="http://nginx.org/download/${P}.tar.gz |
|
|
113 |
nginx_modules_http_ngx_pagespeed? ( |
114 |
https://github.com/pagespeed/ngx_pagespeed/archive/master.zip -> ${NGX_PAGESPEED_MODULE_P}-${NGX_PAGESPEED_MODULE_PV}.zip |
115 |
${NGX_PAGESPEED_PSOL_URI} -> ${NGX_PAGESPEED_PSOL_P}-${NGX_PAGESPEED_PSOL_PV}.tar.gz |
116 |
) |
104 |
syslog? ( ${SYSLOG_MODULE_URI} -> ${SYSLOG_MODULE_P}.tar.gz ) |
117 |
syslog? ( ${SYSLOG_MODULE_URI} -> ${SYSLOG_MODULE_P}.tar.gz ) |
105 |
${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
118 |
${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
106 |
nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
119 |
nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
Lines 136-142
Link Here
|
136 |
http_auth_pam |
149 |
http_auth_pam |
137 |
http_upstream_check |
150 |
http_upstream_check |
138 |
http_metrics |
151 |
http_metrics |
139 |
http_naxsi" |
152 |
http_naxsi |
|
|
153 |
http_ngx_pagespeed" |
140 |
|
154 |
|
141 |
IUSE="aio debug +http +http-cache ipv6 libatomic +pcre pcre-jit selinux ssl |
155 |
IUSE="aio debug +http +http-cache ipv6 libatomic +pcre pcre-jit selinux ssl |
142 |
syslog userland_GNU vim-syntax" |
156 |
syslog userland_GNU vim-syntax" |
Lines 265-270
Link Here
|
265 |
fi |
279 |
fi |
266 |
done |
280 |
done |
267 |
|
281 |
|
|
|
282 |
if use nginx_modules_http_ngx_pagespeed; then |
283 |
mv ${WORKDIR}/psol ${NGX_PAGESPEED_MODULE_WD}/ |
284 |
cd ${WORKDIR}; epatch "${FILESDIR}/${P}-fix-syslog-pagespeed.patch"; cd ${S} |
285 |
myconf+="${myconf} --add-module=${NGX_PAGESPEED_MODULE_WD}" |
286 |
fi |
287 |
|
268 |
if use nginx_modules_http_fastcgi; then |
288 |
if use nginx_modules_http_fastcgi; then |
269 |
myconf+=" --with-http_realip_module" |
289 |
myconf+=" --with-http_realip_module" |
270 |
fi |
290 |
fi |