aboutsummaryrefslogtreecommitdiffstats
path: root/www/nginx
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2013-11-04 21:20:45 +0800
committerosa <osa@FreeBSD.org>2013-11-04 21:20:45 +0800
commitb9208f8b05f68691a35cc667ad0ca65d497cd4f8 (patch)
tree0f7cc07b7af0848ad38823e40e9ab8b08cc5596a /www/nginx
parente512804b2b0e2d276c551979ac632bd7ff445543 (diff)
downloadfreebsd-ports-gnome-b9208f8b05f68691a35cc667ad0ca65d497cd4f8.tar.gz
freebsd-ports-gnome-b9208f8b05f68691a35cc667ad0ca65d497cd4f8.tar.zst
freebsd-ports-gnome-b9208f8b05f68691a35cc667ad0ca65d497cd4f8.zip
Stagefy.
Thanks to: danfe
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/Makefile36
-rw-r--r--www/nginx/pkg-plist1
2 files changed, 14 insertions, 23 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index 6f9129d4df7a..45ede4ce786c 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -193,7 +193,6 @@ VIDEO_DESC= Video module support
WANT_GNOME= yes
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPASSENGER}
@@ -217,9 +216,6 @@ SUB_LIST+= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP} \
NGINX_RUNDIR=${NGINX_RUNDIR} \
NGINX_TMPDIR=${NGINX_TMPDIR}
-.if !defined(NO_INSTALL_MANPAGES)
-MAN8= nginx.8
-.endif
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--prefix=${ETCDIR} \
@@ -987,40 +983,36 @@ do-build:
@cd ${WRKSRC} && ${MAKE}
do-install:
- ${MKDIR} ${ETCDIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${STAGEDIR}${PREFIX}/sbin
.for i in koi-utf koi-win win-utf
- ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}
.endfor
.for i in fastcgi_params mime.types nginx.conf scgi_params uwsgi_params
- [ -f ${ETCDIR}/${i} ] || \
- ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${ETCDIR}/${i}-dist
+ ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}/${i}-dist
.endfor
.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MWWW)
- ${MKDIR} ${PREFIX}/www/nginx-dist
+ ${MKDIR} ${STAGEDIR}${PREFIX}/www/nginx-dist
.for i in index.html 50x.html
- ${INSTALL_DATA} ${WRKSRC}/html/${i} ${PREFIX}/www/nginx-dist
+ ${INSTALL_DATA} ${WRKSRC}/html/${i} ${STAGEDIR}${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
+ ${ECHO_CMD} "" >>${STAGEDIR}${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
.endif
.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MHTTP_PERL)
- ${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
${INSTALL_PROGRAM} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
- ${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
+ ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.bs \
- ${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
+ ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
- ${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/
+ ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/
.endif
.if ${PORT_OPTIONS:MNAXSI}
${INSTALL_DATA} \
${WRKDIR}/naxsi-core-${NGINX_NAXSI_VERSION}/naxsi_config/naxsi_core.rules \
- ${ETCDIR}
+ ${STAGEDIR}${ETCDIR}
.endif
post-install:
@@ -1030,9 +1022,7 @@ post-install:
${ECHO_CMD} ${SITE_PERL_REL}/${PERL_ARCH}/nginx.pm >> ${TMPPLIST}
${ECHO_CMD} @dirrm ${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx >> ${TMPPLIST}
.endif
-.if !defined(NO_INSTALL_MANPAGES)
- @${INSTALL_MAN} ${WRKSRC}/objs/nginx.8 ${MAN8PREFIX}/man/man8
-.endif
+ @${INSTALL_MAN} ${WRKSRC}/objs/nginx.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
.if ${PORT_OPTIONS:MNAXSI}
${ECHO_CMD} etc/nginx/naxsi_core.rules >> ${TMPPLIST}
diff --git a/www/nginx/pkg-plist b/www/nginx/pkg-plist
index 45c6d7311039..4c939ef54e72 100644
--- a/www/nginx/pkg-plist
+++ b/www/nginx/pkg-plist
@@ -28,3 +28,4 @@
%%WWWDATA%%@dirrmtry www/nginx-dist
sbin/nginx
@unexec if [ -z ${UPGRADE_PORT} ] ; then rm -fr %%NGINX_TMPDIR%%; fi
+man/man8/nginx.8.gz