mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Update to 0.5.26.
Fix rc script functionality for extra configtest_cmd command. (*) <ChangeLog> *) Bugfix: in SSI parsing. </ChangeLog> Spotted by: Andrey Y. Ostanovsky < andrey at ostanovsky dot spb dot ru > (*)
This commit is contained in:
parent
a974b4a487
commit
b2dd0344b2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193757
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= nginx
|
||||
PORTVERSION= 0.5.25
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 0.5.26
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://sysoev.ru/nginx/
|
||||
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (nginx-0.5.25.tar.gz) = de49b8521d79e7774c89a9268ae5a89a
|
||||
SHA256 (nginx-0.5.25.tar.gz) = 21aa716b0ed5d60ab7baa1475eda1f236d02b2cdac363f595b45cdf15a636c37
|
||||
SIZE (nginx-0.5.25.tar.gz) = 471439
|
||||
MD5 (nginx-0.5.26.tar.gz) = 6fa28b4e752208a47257982731e23983
|
||||
SHA256 (nginx-0.5.26.tar.gz) = 90f143b1e07af27cdceb60ed69b88cb6720d622ddc2ee93fd30c8a831441bb1d
|
||||
SIZE (nginx-0.5.26.tar.gz) = 471489
|
||||
|
@ -23,22 +23,22 @@ name="nginx"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/nginx"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
pidfile="${nginx_pidfile}"
|
||||
|
||||
extra_commands="configtest reload"
|
||||
|
||||
configtest_cmd="configtest_cmd"
|
||||
configtest_cmd() {
|
||||
echo "Configuration syntax test for ${name}."
|
||||
if ${command} -t; then
|
||||
if ${command} ${nginx_flags} -t; then
|
||||
:
|
||||
else
|
||||
err 8 "FATAL: bad config for ${name}"
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
pidfile="${nginx_pidfile}"
|
||||
|
||||
start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${nginx_flags}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user