Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= nginx |
4 |
PORTNAME= nginx |
5 |
PORTVERSION= 1.10.1 |
5 |
PORTVERSION= 1.10.1 |
|
|
6 |
PORTREVISION= 1 |
6 |
PORTEPOCH= 2 |
7 |
PORTEPOCH= 2 |
7 |
CATEGORIES= www |
8 |
CATEGORIES= www |
8 |
MASTER_SITES= http://nginx.org/download/ |
9 |
MASTER_SITES= http://nginx.org/download/ |
Lines 244-256
Link Here
|
244 |
.endif |
245 |
.endif |
245 |
|
246 |
|
246 |
NGINX_VARDIR?= /var |
247 |
NGINX_VARDIR?= /var |
247 |
NGINX_LOGDIR?= ${NGINX_VARDIR}/log |
248 |
NGINX_LOGDIR?= ${NGINX_VARDIR}/log/nginx |
248 |
NGINX_RUNDIR?= ${NGINX_VARDIR}/run |
249 |
NGINX_RUNDIR?= ${NGINX_VARDIR}/run |
249 |
NGINX_TMPDIR?= ${NGINX_VARDIR}/tmp/nginx |
250 |
NGINX_TMPDIR?= ${NGINX_VARDIR}/tmp/nginx |
250 |
HTTP_PORT?= 80 |
251 |
HTTP_PORT?= 80 |
251 |
|
252 |
|
252 |
NGINX_ACCESSLOG?= ${NGINX_LOGDIR}/nginx-access.log |
253 |
NGINX_ACCESSLOG?= ${NGINX_LOGDIR}/access.log |
253 |
NGINX_ERRORLOG?= ${NGINX_LOGDIR}/nginx-error.log |
254 |
NGINX_ERRORLOG?= ${NGINX_LOGDIR}/error.log |
254 |
|
255 |
|
255 |
CONFLICTS?= nginx-devel-1.* |
256 |
CONFLICTS?= nginx-devel-1.* |
256 |
USE_RC_SUBR= nginx |
257 |
USE_RC_SUBR= nginx |
Lines 503-509
Link Here
|
503 |
.endif |
504 |
.endif |
504 |
|
505 |
|
505 |
.if ${PORT_OPTIONS:MHTTP_JSON_STATUS} |
506 |
.if ${PORT_OPTIONS:MHTTP_JSON_STATUS} |
506 |
NGINX_JSON_STATUS_VERSION= 1d2f303 |
507 |
NGINX_JSON_STATUS_VERSION= 1d2f303 |
507 |
GH_ACCOUNT+= nginx-modules:json_status |
508 |
GH_ACCOUNT+= nginx-modules:json_status |
508 |
GH_PROJECT+= ngx_http_json_status_module:json_status |
509 |
GH_PROJECT+= ngx_http_json_status_module:json_status |
509 |
GH_TAGNAME+= ${NGINX_JSON_STATUS_VERSION}:json_status |
510 |
GH_TAGNAME+= ${NGINX_JSON_STATUS_VERSION}:json_status |
Lines 653-659
Link Here
|
653 |
.endif |
654 |
.endif |
654 |
|
655 |
|
655 |
.if ${PORT_OPTIONS:MHTTP_UPLOAD} |
656 |
.if ${PORT_OPTIONS:MHTTP_UPLOAD} |
656 |
GIT_UPLOAD_VERSION= aba1e3f34c |
657 |
GIT_UPLOAD_VERSION= aba1e3f34c |
657 |
GH_ACCOUNT+= vkholodkov:upload |
658 |
GH_ACCOUNT+= vkholodkov:upload |
658 |
GH_PROJECT+= nginx-upload-module:upload |
659 |
GH_PROJECT+= nginx-upload-module:upload |
659 |
GH_TAGNAME+= ${GIT_UPLOAD_VERSION}:upload |
660 |
GH_TAGNAME+= ${GIT_UPLOAD_VERSION}:upload |
Lines 1103-1109
Link Here
|
1103 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-calio-iconv-nginx-module-config |
1104 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-calio-iconv-nginx-module-config |
1104 |
.endif |
1105 |
.endif |
1105 |
|
1106 |
|
1106 |
PLIST_SUB+= NGINX_TMPDIR=${NGINX_TMPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} |
1107 |
PLIST_SUB+= NGINX_TMPDIR=${NGINX_TMPDIR} NGINX_LOGDIR=${NGINX_LOGDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} |
1107 |
|
1108 |
|
1108 |
USERS?= ${WWWOWN} |
1109 |
USERS?= ${WWWOWN} |
1109 |
GROUPS?=${WWWGRP} |
1110 |
GROUPS?=${WWWGRP} |
Lines 1133-1139
Link Here
|
1133 |
|
1134 |
|
1134 |
post-patch: |
1135 |
post-patch: |
1135 |
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \ |
1136 |
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \ |
1136 |
s!%%PREFIX%%!${PREFIX}!' \ |
1137 |
s!%%PREFIX%%!${PREFIX}!; \ |
|
|
1138 |
s!%%NGINX_ERRORLOG%%!${NGINX_ERRORLOG}!' \ |
1137 |
${WRKSRC}/conf/nginx.conf |
1139 |
${WRKSRC}/conf/nginx.conf |
1138 |
.if ${PORT_OPTIONS:MHTTP_ACCESSKEY} |
1140 |
.if ${PORT_OPTIONS:MHTTP_ACCESSKEY} |
1139 |
@${REINPLACE_CMD} \ |
1141 |
@${REINPLACE_CMD} \ |
Lines 1239-1244
Link Here
|
1239 |
${MKDIR} ${STAGEDIR}${MODULESDIR} |
1241 |
${MKDIR} ${STAGEDIR}${MODULESDIR} |
1240 |
.endif |
1242 |
.endif |
1241 |
${MKDIR} ${STAGEDIR}${NGINX_TMPDIR} |
1243 |
${MKDIR} ${STAGEDIR}${NGINX_TMPDIR} |
|
|
1244 |
${MKDIR} ${STAGEDIR}${NGINX_LOGDIR} |
1242 |
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${STAGEDIR}${PREFIX}/sbin |
1245 |
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${STAGEDIR}${PREFIX}/sbin |
1243 |
.for i in koi-utf koi-win win-utf |
1246 |
.for i in koi-utf koi-win win-utf |
1244 |
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR} |
1247 |
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR} |