Update to 0.3.2.
Update port infrastructure: files/nginx.sh -> files/nginx.sh.in. Add configtest extra command for nginx.sh script (1). Submitted by: skv (1)
This commit is contained in:
parent
eaf4bb0abf
commit
c8de2d3306
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145115
6 changed files with 32 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= nginx
|
PORTNAME= nginx
|
||||||
PORTVERSION= 0.2.6
|
PORTVERSION= 0.3.2
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://sysoev.ru/nginx/
|
MASTER_SITES= http://sysoev.ru/nginx/
|
||||||
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
||||||
|
@ -89,7 +89,7 @@ RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||||
${FILESDIR}/nginx.sh > ${WRKSRC}/nginx.sh
|
${FILESDIR}/nginx.sh.in > ${WRKSRC}/nginx.sh
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
|
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
MD5 (nginx-0.2.6.tar.gz) = 8e60eb03dd75226d21068f8d98362152
|
MD5 (nginx-0.3.2.tar.gz) = 848a0dd8f6362be8f361a62ea39d1539
|
||||||
SIZE (nginx-0.2.6.tar.gz) = 329236
|
SIZE (nginx-0.3.2.tar.gz) = 331121
|
||||||
|
|
|
@ -23,6 +23,18 @@ name="nginx"
|
||||||
rcvar=`set_rcvar`
|
rcvar=`set_rcvar`
|
||||||
command="%%PREFIX%%/sbin/nginx"
|
command="%%PREFIX%%/sbin/nginx"
|
||||||
|
|
||||||
|
extra_commands="configtest"
|
||||||
|
|
||||||
|
configtest_cmd="configtest_cmd"
|
||||||
|
configtest_cmd() {
|
||||||
|
echo "Configuration syntax test for ${name}."
|
||||||
|
if ${command} -t; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
err 8 "FATAL: bad config for ${name}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
|
|
||||||
pidfile="${nginx_pidfile}"
|
pidfile="${nginx_pidfile}"
|
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= nginx
|
PORTNAME= nginx
|
||||||
PORTVERSION= 0.2.6
|
PORTVERSION= 0.3.2
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://sysoev.ru/nginx/
|
MASTER_SITES= http://sysoev.ru/nginx/
|
||||||
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
MASTER_SITES+= ${MASTER_SITE_LOCAL}
|
||||||
|
@ -89,7 +89,7 @@ RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||||
${FILESDIR}/nginx.sh > ${WRKSRC}/nginx.sh
|
${FILESDIR}/nginx.sh.in > ${WRKSRC}/nginx.sh
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
|
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
MD5 (nginx-0.2.6.tar.gz) = 8e60eb03dd75226d21068f8d98362152
|
MD5 (nginx-0.3.2.tar.gz) = 848a0dd8f6362be8f361a62ea39d1539
|
||||||
SIZE (nginx-0.2.6.tar.gz) = 329236
|
SIZE (nginx-0.3.2.tar.gz) = 331121
|
||||||
|
|
|
@ -23,6 +23,18 @@ name="nginx"
|
||||||
rcvar=`set_rcvar`
|
rcvar=`set_rcvar`
|
||||||
command="%%PREFIX%%/sbin/nginx"
|
command="%%PREFIX%%/sbin/nginx"
|
||||||
|
|
||||||
|
extra_commands="configtest"
|
||||||
|
|
||||||
|
configtest_cmd="configtest_cmd"
|
||||||
|
configtest_cmd() {
|
||||||
|
echo "Configuration syntax test for ${name}."
|
||||||
|
if ${command} -t; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
err 8 "FATAL: bad config for ${name}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
|
|
||||||
pidfile="${nginx_pidfile}"
|
pidfile="${nginx_pidfile}"
|
Loading…
Reference in a new issue