1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

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:
Sergey A. Osokin 2005-10-12 14:36:42 +00:00
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

View File

@ -6,7 +6,7 @@
#
PORTNAME= nginx
PORTVERSION= 0.2.6
PORTVERSION= 0.3.2
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@ -89,7 +89,7 @@ RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
post-extract:
@${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:
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \

View File

@ -1,2 +1,2 @@
MD5 (nginx-0.2.6.tar.gz) = 8e60eb03dd75226d21068f8d98362152
SIZE (nginx-0.2.6.tar.gz) = 329236
MD5 (nginx-0.3.2.tar.gz) = 848a0dd8f6362be8f361a62ea39d1539
SIZE (nginx-0.3.2.tar.gz) = 331121

View File

@ -23,6 +23,18 @@ name="nginx"
rcvar=`set_rcvar`
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
pidfile="${nginx_pidfile}"

View File

@ -6,7 +6,7 @@
#
PORTNAME= nginx
PORTVERSION= 0.2.6
PORTVERSION= 0.3.2
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@ -89,7 +89,7 @@ RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
post-extract:
@${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:
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \

View File

@ -1,2 +1,2 @@
MD5 (nginx-0.2.6.tar.gz) = 8e60eb03dd75226d21068f8d98362152
SIZE (nginx-0.2.6.tar.gz) = 329236
MD5 (nginx-0.3.2.tar.gz) = 848a0dd8f6362be8f361a62ea39d1539
SIZE (nginx-0.3.2.tar.gz) = 331121

View File

@ -23,6 +23,18 @@ name="nginx"
rcvar=`set_rcvar`
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
pidfile="${nginx_pidfile}"