freebsd-ports/www/nginx-devel/pkg-plist
Sergey A. Osokin bffdc23e01 [1] Don't remove NGINX_TMPDIR directory, if port upgrade running. (*)
[2] Add extra command upgrade for rc, allowing to change binary
on-the-fly without loosing any single request.

Remove empty string from rc.
Bump PORTREVISION.

[1,2] Problems reported by:	Maxim Dounin aka mdounin at mdounin dot ru
PR's:				125762,125766
(*) Undocumented feature from:	skv@
2008-07-22 05:55:18 +00:00

24 lines
1.2 KiB
Text

@comment $FreeBSD$
%%ETCDIR%%/fastcgi_params
%%ETCDIR%%/koi-utf
%%ETCDIR%%/koi-win
%%ETCDIR%%/win-utf
@unexec if cmp -s %D/%%ETCDIR%%/mime.types-dist %D/%%ETCDIR%%/mime.types; then rm -f %D/%%ETCDIR%%/mime.types; fi
%%ETCDIR%%/mime.types-dist
@exec if [ ! -f %D/%%ETCDIR%%/mime.types ] ; then cp -p %D/%F %B/mime.types; fi
@unexec if cmp -s %D/%%ETCDIR%%/nginx.conf-dist %D/%%ETCDIR%%/nginx.conf; then rm -f %D/%%ETCDIR%%/nginx.conf; fi
%%ETCDIR%%/nginx.conf-dist
@exec if [ ! -f %D/%%ETCDIR%%/nginx.conf ] ; then cp -p %D/%F %B/nginx.conf; fi
@dirrmtry %%ETCDIR%%
%%WWWDATA%%@exec mkdir -p -m 755 www/nginx-dist
%%WWWDATA%%@exec if [ ! -d %D/www/nginx/ ] ; then ln -fs %D/www/nginx-dist %D/www/nginx; fi
%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
%%WWWDATA%%www/nginx-dist/index.html
%%WWWDATA%%www/nginx-dist/50x.html
%%WWWDATA%%@exec chmod a-w www/nginx-dist
%%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi
%%WWWDATA%%@dirrmtry www/nginx-dist
sbin/nginx
@exec [ -d %%NGINX_TMPDIR%% ] || mkdir -p %%NGINX_TMPDIR%%
@exec chown %%WWWOWN%%:%%WWWGRP%% %%NGINX_TMPDIR%%
@unexec if [ -z ${UPGRADE_PORT} ] ; then rm -fr %%NGINX_TMPDIR%%; fi