Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/nginx: nginx-1.3.15.ebuild ChangeLog
Date: Sun, 31 Mar 2013 01:55:23
Message-Id: 20130331015520.698132171E@flycatcher.gentoo.org
1 robbat2 13/03/31 01:55:20
2
3 Modified: ChangeLog
4 Added: nginx-1.3.15.ebuild
5 Log:
6 Version bump per bug #456224, as requested by actown@××××××.org.
7
8 (Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.345 www-servers/nginx/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.345&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.345&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.344&r2=1.345
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
20 retrieving revision 1.344
21 retrieving revision 1.345
22 diff -p -w -b -B -u -u -r1.344 -r1.345
23 --- ChangeLog 18 Feb 2013 14:30:19 -0000 1.344
24 +++ ChangeLog 31 Mar 2013 01:55:20 -0000 1.345
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-servers/nginx
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.344 2013/02/18 14:30:19 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.345 2013/03/31 01:55:20 robbat2 Exp $
30 +
31 +*nginx-1.3.15 (31 Mar 2013)
32 +
33 + 31 Mar 2013; Robin H. Johnson <robbat2@g.o> +nginx-1.3.15.ebuild,
34 + files/nginx.initd:
35 + Version bump per bug #456224, as requested by actown@××××××.org.
36
37 18 Feb 2013; Alexis Ballier <aballier@g.o> nginx-1.2.6-r1.ebuild,
38 nginx-1.3.11.ebuild:
39
40
41
42 1.1 www-servers/nginx/nginx-1.3.15.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/nginx/nginx-1.3.15.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/nginx/nginx-1.3.15.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nginx-1.3.15.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-1.3.15.ebuild,v 1.1 2013/03/31 01:55:20 robbat2 Exp $
52
53 EAPI="5"
54
55 # Maintainer notes:
56 # - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite
57 # - any http-module activates the main http-functionality and overrides USE=-http
58 # - keep the following requirements in mind before adding external modules:
59 # * alive upstream
60 # * sane packaging
61 # * builds cleanly
62 # * does not need a patch for nginx core
63 # - TODO: test the google-perftools module (included in vanilla tarball)
64
65 # prevent perl-module from adding automagic perl DEPENDs
66 GENTOO_DEPEND_ON_PERL="no"
67
68 # syslog
69 SYSLOG_MODULE_PV="0.25"
70 SYSLOG_MODULE_NGINX_PV="1.3.14"
71 SYSLOG_MODULE_P="ngx_syslog-${SYSLOG_MODULE_PV}"
72 SYSLOG_MODULE_URI="https://github.com/yaoweibin/nginx_syslog_patch/archive/v${SYSLOG_MODULE_PV}.tar.gz"
73 SYSLOG_MODULE_WD="${WORKDIR}/nginx_syslog_patch-${SYSLOG_MODULE_PV}"
74
75 # devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license)
76 DEVEL_KIT_MODULE_PV="0.2.17"
77 DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1"
78 DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz"
79 DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}"
80
81 # http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license)
82 HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.0"
83 HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1"
84 HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz"
85 HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}"
86
87 # http_headers_more (http://github.com/agentzh/headers-more-nginx-module, BSD license)
88 HTTP_HEADERS_MORE_MODULE_PV="0.19"
89 HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}-r1"
90 HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz"
91 HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}"
92
93 # http_push (http://pushmodule.slact.net/, MIT license)
94 HTTP_PUSH_MODULE_PV="0.692"
95 HTTP_PUSH_MODULE_P="ngx_http_push-${HTTP_PUSH_MODULE_PV}"
96 HTTP_PUSH_MODULE_URI="http://pushmodule.slact.net/downloads/nginx_http_push_module-${HTTP_PUSH_MODULE_PV}.tar.gz"
97 HTTP_PUSH_MODULE_WD="${WORKDIR}/nginx_http_push_module-${HTTP_PUSH_MODULE_PV}"
98
99 # http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license)
100 HTTP_CACHE_PURGE_MODULE_PV="2.1"
101 HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}"
102 HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz"
103 HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}"
104
105 # http_upload (http://www.grid.net.ru/nginx/upload.en.html, BSD license)
106 HTTP_UPLOAD_MODULE_PV="2.2.0"
107 HTTP_UPLOAD_MODULE_P="ngx_http_upload-${HTTP_UPLOAD_MODULE_PV}"
108 HTTP_UPLOAD_MODULE_URI="http://www.grid.net.ru/nginx/download/nginx_upload_module-${HTTP_UPLOAD_MODULE_PV}.tar.gz"
109 HTTP_UPLOAD_MODULE_WD="${WORKDIR}/nginx_upload_module-${HTTP_UPLOAD_MODULE_PV}"
110
111 # http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license)
112 HTTP_SLOWFS_CACHE_MODULE_PV="1.9"
113 HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}"
114 HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz"
115 HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}"
116
117 # http_fancyindex (http://wiki.nginx.org/NgxFancyIndex, BSD license)
118 HTTP_FANCYINDEX_MODULE_PV="0.3.1.1"
119 HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}"
120 HTTP_FANCYINDEX_MODULE_URI="http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/2034d0ad"
121 HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-ngx-fancyindex"
122
123 # http_lua (https://github.com/chaoslawful/lua-nginx-module, BSD license)
124 HTTP_LUA_MODULE_PV="0.7.11"
125 HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}"
126 HTTP_LUA_MODULE_URI="https://github.com/chaoslawful/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz"
127 HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}"
128
129 # http_auth_pam (http://web.iti.upv.es/~sto/nginx/, unknown license)
130 HTTP_AUTH_PAM_MODULE_PV="1.2"
131 HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}"
132 HTTP_AUTH_PAM_MODULE_URI="http://web.iti.upv.es/~sto/nginx/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}.tar.gz"
133 HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}"
134
135 inherit eutils ssl-cert toolchain-funcs perl-module flag-o-matic user
136
137 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
138 HOMEPAGE="http://nginx.org"
139 SRC_URI="http://nginx.org/download/${P}.tar.gz
140 syslog? ( ${SYSLOG_MODULE_URI} -> ${SYSLOG_MODULE_P}.tar.gz )
141 ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz
142 nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz )
143 nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz )
144 nginx_modules_http_push? ( ${HTTP_PUSH_MODULE_URI} -> ${HTTP_PUSH_MODULE_P}.tar.gz )
145 nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz )
146 nginx_modules_http_upload? ( ${HTTP_UPLOAD_MODULE_URI} -> ${HTTP_UPLOAD_MODULE_P}.tar.gz )
147 nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz )
148 nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz )
149 nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz )
150 nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz )"
151
152 LICENSE="BSD-2 BSD SSLeay MIT GPL-2"
153 SLOT="0"
154 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
155
156 NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi
157 geo gzip limit_req limit_conn map memcached proxy referer rewrite scgi ssi
158 split_clients upstream_ip_hash userid uwsgi"
159 NGINX_MODULES_OPT="addition dav degradation flv geoip gzip_static image_filter
160 mp4 perl random_index realip secure_link spdy stub_status sub xslt"
161 NGINX_MODULES_MAIL="imap pop3 smtp"
162 NGINX_MODULES_3RD="
163 http_upload_progress
164 http_headers_more
165 http_push
166 http_cache_purge
167 http_upload
168 http_slowfs_cache
169 http_fancyindex
170 http_lua
171 http_auth_pam"
172
173 IUSE="aio debug +http +http-cache ipv6 libatomic +pcre pcre-jit selinux ssl
174 syslog vim-syntax"
175
176 for mod in $NGINX_MODULES_STD; do
177 IUSE="${IUSE} +nginx_modules_http_${mod}"
178 done
179
180 for mod in $NGINX_MODULES_OPT; do
181 IUSE="${IUSE} nginx_modules_http_${mod}"
182 done
183
184 for mod in $NGINX_MODULES_MAIL; do
185 IUSE="${IUSE} nginx_modules_mail_${mod}"
186 done
187
188 for mod in $NGINX_MODULES_3RD; do
189 IUSE="${IUSE} nginx_modules_${mod}"
190 done
191
192 CDEPEND="
193 pcre? ( >=dev-libs/libpcre-4.2 )
194 pcre-jit? ( >=dev-libs/libpcre-8.20[jit] )
195 selinux? ( sec-policy/selinux-nginx )
196 ssl? ( dev-libs/openssl )
197 http-cache? ( userland_GNU? ( dev-libs/openssl ) )
198 nginx_modules_http_geo? ( dev-libs/geoip )
199 nginx_modules_http_gzip? ( sys-libs/zlib )
200 nginx_modules_http_gzip_static? ( sys-libs/zlib )
201 nginx_modules_http_image_filter? ( media-libs/gd[jpeg,png] )
202 nginx_modules_http_perl? ( >=dev-lang/perl-5.8 )
203 nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 )
204 nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl ) )
205 nginx_modules_http_spdy? ( >=dev-libs/openssl-1.0.1c )
206 nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt )
207 nginx_modules_http_lua? ( || ( dev-lang/lua dev-lang/luajit ) )
208 nginx_modules_http_auth_pam? ( virtual/pam )"
209 RDEPEND="${CDEPEND}"
210 DEPEND="${CDEPEND}
211 arm? ( dev-libs/libatomic_ops )
212 libatomic? ( dev-libs/libatomic_ops )"
213 PDEPEND="vim-syntax? ( app-vim/nginx-syntax )"
214 REQUIRED_USE="pcre-jit? ( pcre )"
215
216 pkg_setup() {
217 ebegin "Creating nginx user and group"
218 enewgroup ${PN}
219 enewuser ${PN} -1 -1 -1 ${PN}
220 eend $?
221
222 if use libatomic; then
223 ewarn "GCC 4.1+ features built-in atomic operations."
224 ewarn "Using libatomic_ops is only needed if using"
225 ewarn "a different compiler or a GCC prior to 4.1"
226 fi
227
228 if [[ -n $NGINX_ADD_MODULES ]]; then
229 ewarn "You are building custom modules via \$NGINX_ADD_MODULES!"
230 ewarn "This nginx installation is not supported!"
231 ewarn "Make sure you can reproduce the bug without those modules"
232 ewarn "_before_ reporting bugs."
233 fi
234
235 if use !http; then
236 ewarn "To actually disable all http-functionality you also have to disable"
237 ewarn "all nginx http modules."
238 fi
239 }
240
241 src_prepare() {
242 use syslog && epatch "${SYSLOG_MODULE_WD}"/syslog_${SYSLOG_MODULE_NGINX_PV}.patch
243
244 find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die
245 # We have config protection, don't rename etc files
246 sed -i 's:.default::' auto/install || die
247 # remove useless files
248 sed -i -e '/koi-/d' -e '/win-/d' auto/install || die
249 }
250
251 src_configure() {
252 local myconf= http_enabled= mail_enabled=
253
254 use aio && myconf+=" --with-file-aio --with-aio_module"
255 use debug && myconf+=" --with-debug"
256 use ipv6 && myconf+=" --with-ipv6"
257 use libatomic && myconf+=" --with-libatomic"
258 use pcre && myconf+=" --with-pcre"
259 use pcre-jit && myconf+=" --with-pcre-jit"
260
261 # syslog support
262 if use syslog; then
263 myconf+=" --add-module=${SYSLOG_MODULE_WD}"
264 fi
265
266 # HTTP modules
267 for mod in $NGINX_MODULES_STD; do
268 if use nginx_modules_http_${mod}; then
269 http_enabled=1
270 else
271 myconf+=" --without-http_${mod}_module"
272 fi
273 done
274
275 for mod in $NGINX_MODULES_OPT; do
276 if use nginx_modules_http_${mod}; then
277 http_enabled=1
278 myconf+=" --with-http_${mod}_module"
279 fi
280 done
281
282 if use nginx_modules_http_fastcgi; then
283 myconf+=" --with-http_realip_module"
284 fi
285
286 # third-party modules
287 if use nginx_modules_http_upload_progress; then
288 http_enabled=1
289 myconf+=" --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD}"
290 fi
291
292 if use nginx_modules_http_headers_more; then
293 http_enabled=1
294 myconf+=" --add-module=${HTTP_HEADERS_MORE_MODULE_WD}"
295 fi
296
297 if use nginx_modules_http_push; then
298 http_enabled=1
299 myconf+=" --add-module=${HTTP_PUSH_MODULE_WD}"
300 fi
301
302 if use nginx_modules_http_cache_purge; then
303 http_enabled=1
304 myconf+=" --add-module=${HTTP_CACHE_PURGE_MODULE_WD}"
305 fi
306
307 if use nginx_modules_http_upload; then
308 http_enabled=1
309 myconf+=" --add-module=${HTTP_UPLOAD_MODULE_WD}"
310 fi
311
312 if use nginx_modules_http_slowfs_cache; then
313 http_enabled=1
314 myconf+=" --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD}"
315 fi
316
317 if use nginx_modules_http_fancyindex; then
318 http_enabled=1
319 myconf+=" --add-module=${HTTP_FANCYINDEX_MODULE_WD}"
320 fi
321
322 if use nginx_modules_http_lua; then
323 http_enabled=1
324 myconf+=" --add-module=${DEVEL_KIT_MODULE_WD}"
325 myconf+=" --add-module=${HTTP_LUA_MODULE_WD}"
326 fi
327
328 if use nginx_modules_http_auth_pam; then
329 http_enabled=1
330 myconf+=" --add-module=${HTTP_AUTH_PAM_MODULE_WD}"
331 fi
332
333 if use http || use http-cache; then
334 http_enabled=1
335 fi
336
337 if [ $http_enabled ]; then
338 use http-cache || myconf+=" --without-http-cache"
339 use ssl && myconf+=" --with-http_ssl_module"
340 else
341 myconf+=" --without-http --without-http-cache"
342 fi
343
344 # MAIL modules
345 for mod in $NGINX_MODULES_MAIL; do
346 if use nginx_modules_mail_${mod}; then
347 mail_enabled=1
348 else
349 myconf+=" --without-mail_${mod}_module"
350 fi
351 done
352
353 if [ $mail_enabled ]; then
354 myconf+=" --with-mail"
355 use ssl && myconf+=" --with-mail_ssl_module"
356 fi
357
358 # custom modules
359 for mod in $NGINX_ADD_MODULES; do
360 myconf+=" --add-module=${mod}"
361 done
362
363 # https://bugs.gentoo.org/286772
364 export LANG=C LC_ALL=C
365 tc-export CC
366
367 if ! use prefix; then
368 myconf+=" --user=${PN} --group=${PN}"
369 fi
370
371 ./configure \
372 --prefix="${EPREFIX}"/usr \
373 --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \
374 --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \
375 --pid-path="${EPREFIX}"/run/${PN}.pid \
376 --lock-path="${EPREFIX}"/var/lock/${PN}.lock \
377 --with-cc-opt="-I${EROOT}usr/include" \
378 --with-ld-opt="-L${EROOT}usr/lib" \
379 --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \
380 --http-client-body-temp-path="${EPREFIX}"/var/tmp/${PN}/client \
381 --http-proxy-temp-path="${EPREFIX}"/var/tmp/${PN}/proxy \
382 --http-fastcgi-temp-path="${EPREFIX}"/var/tmp/${PN}/fastcgi \
383 --http-scgi-temp-path="${EPREFIX}"/var/tmp/${PN}/scgi \
384 --http-uwsgi-temp-path="${EPREFIX}"/var/tmp/${PN}/uwsgi \
385 ${myconf} || die "configure failed"
386 }
387
388 src_compile() {
389 # https://bugs.gentoo.org/286772
390 export LANG=C LC_ALL=C
391 emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}"
392 }
393
394 src_install() {
395 emake DESTDIR="${D}" install
396
397 cp "${FILESDIR}"/nginx.conf "${ED}"/etc/nginx/nginx.conf || die
398
399 newinitd "${FILESDIR}"/nginx.initd nginx
400
401 doman man/nginx.8
402 dodoc CHANGES* README
403
404 # just keepdir. do not copy the default htdocs files (bug #449136)
405 keepdir /var/www/localhost
406 rm -rf "${D}"/usr/html || die
407
408 # logrotate
409 insinto /etc/logrotate.d
410 newins "${FILESDIR}"/nginx.logrotate nginx
411
412 if use nginx_modules_http_perl; then
413 cd "${S}"/objs/src/http/modules/perl/
414 einstall DESTDIR="${D}" INSTALLDIRS=vendor
415 fixlocalpod
416 fi
417
418 if use syslog; then
419 docinto ${SYSLOG_MODULE_P}
420 dodoc "${SYSLOG_MODULE_WD}"/README
421 fi
422
423 if use nginx_modules_http_push; then
424 docinto ${HTTP_PUSH_MODULE_P}
425 dodoc "${HTTP_PUSH_MODULE_WD}"/{changelog.txt,protocol.txt,README}
426 fi
427
428 if use nginx_modules_http_cache_purge; then
429 docinto ${HTTP_CACHE_PURGE_MODULE_P}
430 dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md}
431 fi
432
433 if use nginx_modules_http_upload; then
434 docinto ${HTTP_UPLOAD_MODULE_P}
435 dodoc "${HTTP_UPLOAD_MODULE_WD}"/{Changelog,README}
436 fi
437
438 if use nginx_modules_http_slowfs_cache; then
439 docinto ${HTTP_SLOWFS_CACHE_MODULE_P}
440 dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md}
441 fi
442
443 if use nginx_modules_http_fancyindex; then
444 docinto ${HTTP_FANCYINDEX_MODULE_P}
445 dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst
446 fi
447
448 if use nginx_modules_http_lua; then
449 docinto ${HTTP_LUA_MODULE_P}
450 dodoc "${HTTP_LUA_MODULE_WD}"/{Changes,README.markdown}
451 fi
452
453 if use nginx_modules_http_auth_pam; then
454 docinto ${HTTP_AUTH_PAM_MODULE_P}
455 dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README,ChangeLog}
456 fi
457 }
458
459 pkg_postinst() {
460 if use ssl; then
461 if [ ! -f "${EROOT}"/etc/ssl/${PN}/${PN}.key ]; then
462 install_cert /etc/ssl/${PN}/${PN}
463 use prefix || chown ${PN}:${PN} "${EROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem}
464 fi
465 fi
466 }