diff options
author | osa <osa@FreeBSD.org> | 2016-04-30 07:08:12 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2016-04-30 07:08:12 +0800 |
commit | c7e47def13d152c2ca89d7b27740057dd1c98161 (patch) | |
tree | 2734a6f93861a851f6ed2bb067fdd1b8e1a84e6a /www | |
parent | f183e744679a1a0f98847619177fc19bcb9e1336 (diff) | |
download | freebsd-ports-gnome-c7e47def13d152c2ca89d7b27740057dd1c98161.tar.gz freebsd-ports-gnome-c7e47def13d152c2ca89d7b27740057dd1c98161.tar.zst freebsd-ports-gnome-c7e47def13d152c2ca89d7b27740057dd1c98161.zip |
Change the MODULESDIR from ${ETCDIR}/modules to ${PREFIX}/libexec/${PORTNAME}.
Bump PORTREVISION.
PR: 209151
Diffstat (limited to 'www')
-rw-r--r-- | www/nginx-devel/Makefile | 9 | ||||
-rw-r--r-- | www/nginx/Makefile | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile index 196b3c57f981..84a0012bec10 100644 --- a/www/nginx-devel/Makefile +++ b/www/nginx-devel/Makefile @@ -3,6 +3,7 @@ PORTNAME= nginx PORTVERSION= 1.10.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://nginx.org/download/ MASTER_SITES+= LOCAL/osa @@ -270,7 +271,7 @@ CONFIGURE_ARGS+=--prefix=${ETCDIR} \ --user=${WWWOWN} --group=${WWWGRP} .if !empty(PORT_OPTIONS:MDSO) -MODULESDIR= ${ETCDIR}/modules +MODULESDIR= ${PREFIX}/libexec/${PORTNAME} CONFIGURE_ARGS+=--modules-path=${MODULESDIR} .endif @@ -1282,9 +1283,9 @@ post-install: (cd ${STAGEDIR}${PREFIX} && ${FIND} ${MODULESDIR:S|${PREFIX}/||} \ ! -type d >>${TMPPLIST}) # Update nginx.conf-dist with a list of staged dynamic modules - (cd ${STAGEDIR}${ETCDIR} && \ - ${FIND} ${MODULESDIR:S|${ETCDIR}/||} -type f -name '*.so' \ - -exec ${ECHO_CMD} "load_module {};" \; \ + (cd ${STAGEDIR} && \ + ${FIND} ${MODULESDIR:S|^/||} -type f -name '*.so' \ + -exec ${ECHO_CMD} "load_module /{};" \; \ >>${STAGEDIR}${ETCDIR}/nginx.conf-dist && \ ${CAT} ${WRKSRC}/conf/nginx.conf \ >>${STAGEDIR}${ETCDIR}/nginx.conf-dist) diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 3cec40abdc98..43743bbacf64 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -3,6 +3,7 @@ PORTNAME= nginx PORTVERSION= 1.10.0 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= www MASTER_SITES= http://nginx.org/download/ @@ -270,7 +271,7 @@ CONFIGURE_ARGS+=--prefix=${ETCDIR} \ --user=${WWWOWN} --group=${WWWGRP} .if !empty(PORT_OPTIONS:MDSO) -MODULESDIR= ${ETCDIR}/modules +MODULESDIR= ${PREFIX}/libexec/${PORTNAME} CONFIGURE_ARGS+=--modules-path=${MODULESDIR} .endif @@ -1282,9 +1283,9 @@ post-install: (cd ${STAGEDIR}${PREFIX} && ${FIND} ${MODULESDIR:S|${PREFIX}/||} \ ! -type d >>${TMPPLIST}) # Update nginx.conf-dist with a list of staged dynamic modules - (cd ${STAGEDIR}${ETCDIR} && \ - ${FIND} ${MODULESDIR:S|${ETCDIR}/||} -type f -name '*.so' \ - -exec ${ECHO_CMD} "load_module {};" \; \ + (cd ${STAGEDIR} && \ + ${FIND} ${MODULESDIR:S|^/||} -type f -name '*.so' \ + -exec ${ECHO_CMD} "load_module /{};" \; \ >>${STAGEDIR}${ETCDIR}/nginx.conf-dist && \ ${CAT} ${WRKSRC}/conf/nginx.conf \ >>${STAGEDIR}${ETCDIR}/nginx.conf-dist) |