1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Install 4 additional files from distro.

Bump PORTREVISION.
This commit is contained in:
Sergey A. Osokin 2006-06-30 12:45:38 +00:00
parent df02bee8b8
commit 296a626db3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=166655
4 changed files with 22 additions and 4 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= nginx
PORTVERSION= 0.3.51
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@ -85,7 +86,9 @@ do-install:
${MKDIR} ${PREFIX}/etc/nginx ${NGINX_TMPDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${NGINX_TMPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/conf/koi-win ${PREFIX}/etc/nginx
.for i in koi-win koi-utf win-utf fastcgi_params
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx
.endfor
.for i in mime.types nginx.conf
[ -f ${PREFIX}/etc/nginx/${i} ] || \
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx
@ -93,7 +96,9 @@ do-install:
.endfor
.if !defined(WITHOUT_WWW)
${MKDIR} ${PREFIX}/www/nginx-dist
${INSTALL_DATA} ${WRKSRC}/html/index.html ${PREFIX}/www/nginx-dist
.for i in index.html 50x.html
${INSTALL_DATA} ${WRKSRC}/html/${i} ${PREFIX}/www/nginx-dist
.endfor
${ECHO_CMD} "" >>${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
[ -e ${PREFIX}/www/nginx ] || \
${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx

View File

@ -1,5 +1,8 @@
@comment $FreeBSD$
etc/nginx/fastcgi_params
etc/nginx/koi-utf
etc/nginx/koi-win
etc/nginx/win-utf
@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi
etc/nginx/mime.types-dist
@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
@ -12,6 +15,7 @@ etc/nginx/nginx.conf-dist
%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
%%WWWDATA%%@exec [ -d %D/www/nginx/ ] || ln -fs %B %D/www/nginx
%%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%%@dirrm www/nginx-dist

View File

@ -7,6 +7,7 @@
PORTNAME= nginx
PORTVERSION= 0.3.51
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@ -85,7 +86,9 @@ do-install:
${MKDIR} ${PREFIX}/etc/nginx ${NGINX_TMPDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${NGINX_TMPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/conf/koi-win ${PREFIX}/etc/nginx
.for i in koi-win koi-utf win-utf fastcgi_params
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx
.endfor
.for i in mime.types nginx.conf
[ -f ${PREFIX}/etc/nginx/${i} ] || \
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${PREFIX}/etc/nginx
@ -93,7 +96,9 @@ do-install:
.endfor
.if !defined(WITHOUT_WWW)
${MKDIR} ${PREFIX}/www/nginx-dist
${INSTALL_DATA} ${WRKSRC}/html/index.html ${PREFIX}/www/nginx-dist
.for i in index.html 50x.html
${INSTALL_DATA} ${WRKSRC}/html/${i} ${PREFIX}/www/nginx-dist
.endfor
${ECHO_CMD} "" >>${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
[ -e ${PREFIX}/www/nginx ] || \
${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx

View File

@ -1,5 +1,8 @@
@comment $FreeBSD$
etc/nginx/fastcgi_params
etc/nginx/koi-utf
etc/nginx/koi-win
etc/nginx/win-utf
@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi
etc/nginx/mime.types-dist
@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
@ -12,6 +15,7 @@ etc/nginx/nginx.conf-dist
%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
%%WWWDATA%%@exec [ -d %D/www/nginx/ ] || ln -fs %B %D/www/nginx
%%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%%@dirrm www/nginx-dist