1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

www/freenginx-devel: Update to 1.27.4

Update to 1.27.4, fix Invalid root path

PR:	280401
Sponsored by:	Netzkommune GmbH
This commit is contained in:
Jochen Neumeister 2024-11-25 18:45:11 +01:00
parent e665046fdd
commit beaad8dead
6 changed files with 12 additions and 12 deletions

View File

@ -375,9 +375,9 @@ post-install:
${CAT} ${WRKSRC}/conf/nginx.conf >> ${STAGEDIR}${ETCDIR}/nginx.conf-dist
post-install-WWW-on:
${MKDIR} ${STAGEDIR}${PREFIX}/www/nginx-dist
(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/nginx-dist && \
${TOUCH} ${STAGEDIR}${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING)
${MKDIR} ${STAGEDIR}${PREFIX}/www/freenginx-dist
(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/freenginx-dist && \
${TOUCH} ${STAGEDIR}${PREFIX}/www/freenginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING)
.endif
.include <bsd.port.post.mk>

View File

@ -1,4 +1,4 @@
TIMESTAMP = 1725787707
TIMESTAMP = 1732461845
SHA256 (freenginx-1.27.2.tar.gz) = e43500ff3e75a33a101a253cc252e7ebadc4a3d17e04951e77e719dda68b97d1
SIZE (freenginx-1.27.2.tar.gz) = 1224762
SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae

View File

@ -44,7 +44,7 @@ command="%%PREFIX%%/sbin/nginx"
_pidprefix="%%NGINX_RUNDIR%%"
pidfile="${_pidprefix}/${name}.pid"
_tmpprefix="%%NGINX_TMPDIR%%"
required_files=%%PREFIX%%/etc/nginx/nginx.conf
required_files=%%PREFIX%%/etc/freenginx/nginx.conf
extra_commands="reload configtest upgrade gracefulstop"
[ -z "$nginx_enable" ] && nginx_enable="NO"

View File

@ -32,7 +32,7 @@
location / {
- root html;
+ root %%PREFIX%%/www/nginx;
+ root %%PREFIX%%/www/freenginx;
index index.html index.htm;
}
@ -41,7 +41,7 @@
error_page 500 502 503 504 /50x.html;
location = /50x.html {
- root html;
+ root %%PREFIX%%/www/nginx-dist;
+ root %%PREFIX%%/www/freenginx-dist;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80

View File

@ -19,7 +19,7 @@ details.
Default path for the NGINX dynamic modules is
%%PREFIX%%/libexec/nginx.
%%PREFIX%%/libexec/freenginx.
EOM
}
]

View File

@ -94,11 +94,11 @@ share/vim/vimfiles/ftdetect/nginx.vim
share/vim/vimfiles/ftplugin/nginx.vim
share/vim/vimfiles/indent/nginx.vim
share/vim/vimfiles/syntax/nginx.vim
%%WWW%%@postexec mkdir -p -m 755 %D/www/nginx-dist
%%WWW%%@postexec mkdir -p -m 755 %D/www/freenginx-dist
%%WWW%%@postexec if [ ! -d %D/www/freenginx/ ] ; then ln -fs %D/www/freenginx-dist %D/www/freenginx; fi
%%WWW%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
%%WWW%%www/nginx-dist/index.html
%%WWW%%www/nginx-dist/50x.html
%%WWW%%www/freenginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
%%WWW%%www/freenginx-dist/index.html
%%WWW%%www/freenginx-dist/50x.html
%%WWW%%@postexec chmod a-w %D/www/freenginx-dist
%%WWW%%@postunexec if [ -L %D/www/freenginx ]; then rm -f %D/www/freenginx; fi
@dir %%NGINX_TMPDIR%%