summaryrefslogtreecommitdiff
path: root/www/nginx
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2006-05-10 09:55:02 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2006-05-10 09:55:02 +0000
commit7954ba035cca716ca86981c7f6fdf1d15b9802f8 (patch)
tree08be3fd48bb14be9ae6ccf8e408487cdb289e0c8 /www/nginx
parentUpdate to 0.20 (diff)
Update to 0.3.45.
Update port infrastructure. Add compiler's debug flag if WITH_DEBUG defined. Add prefix NGINX_ for port's variables (VARDIR, LOGDIR, TMPDIR) for prevent conflict with system variables. Remove STOP_BEFORE_REMOVE and START_AFTER_INSTALL knobs.
Notes
Notes: svn path=/head/; revision=161907
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/Makefile55
-rw-r--r--www/nginx/distinfo6
-rw-r--r--www/nginx/pkg-plist9
3 files changed, 22 insertions, 48 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index dfae64407ea6..3e0178dea591 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nginx
-PORTVERSION= 0.3.40
+PORTVERSION= 0.3.45
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
@@ -15,29 +15,30 @@ MASTER_SITE_SUBDIR= osa
MAINTAINER= osa@FreeBSD.org
COMMENT= Robust and small WWW server
-VARDIR?= ${DESTDIR}/var
-LOGDIR?= ${VARDIR}/log
-RUNDIR?= ${VARDIR}/run
-TMPDIR?= ${VARDIR}/tmp/nginx
+NGINX_VARDIR?= ${DESTDIR}/var
+NGINX_LOGDIR?= ${NGINX_VARDIR}/log
+NGINX_RUNDIR?= ${NGINX_VARDIR}/run
+NGINX_TMPDIR?= ${NGINX_VARDIR}/tmp/nginx
HTTP_PORT?= 80
-USE_RC_SUBR= yes
+USE_RC_SUBR= nginx.sh
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--prefix=${PREFIX}/etc/nginx \
--with-cc-opt="-I ${LOCALBASE}/include" \
--with-ld-opt="-L ${LOCALBASE}/lib" \
--conf-path=${PREFIX}/etc/nginx/nginx.conf \
--sbin-path=${PREFIX}/sbin/nginx \
- --pid-path=${RUNDIR}/nginx.pid \
- --http-client-body-temp-path=${TMPDIR}/client_body_temp \
- --http-proxy-temp-path=${TMPDIR}/proxy_temp \
- --http-fastcgi-temp-path=${TMPDIR}/fastcgi_temp \
- --http-log-path=${LOGDIR}/nginx-access.log \
- --error-log-path=${LOGDIR}/nginx-error.log \
+ --pid-path=${NGINX_RUNDIR}/nginx.pid \
+ --http-client-body-temp-path=${NGINX_TMPDIR}/client_body_temp \
+ --http-proxy-temp-path=${NGINX_TMPDIR}/proxy_temp \
+ --http-fastcgi-temp-path=${NGINX_TMPDIR}/fastcgi_temp \
+ --http-log-path=${NGINX_LOGDIR}/nginx-access.log \
+ --error-log-path=${NGINX_LOGDIR}/nginx-error.log \
--with-http_stub_status_module \
--user=${WWWOWN} --group=${WWWGRP}
.if defined(WITH_DEBUG)
+CFLAGS+= -g
CONFIGURE_ARGS+=--with-debug
STRIP= #do not strip if nginx with debug information
.endif
@@ -70,25 +71,7 @@ PLIST_SUB+= WWWDATA="@comment "
PLIST_SUB+= WWWDATA=""
.endif
-.if defined(STOP_BEFORE_REMOVE)
-PLIST_SUB+= STOP_BEFORE_REMOVE=""
-.else
-PLIST_SUB+= STOP_BEFORE_REMOVE="@comment "
-.endif
-
-.if defined(START_AFTER_INSTALL)
-PLIST_SUB+= START_AFTER_INSTALL=""
-.else
-PLIST_SUB+= START_AFTER_INSTALL="@comment "
-.endif
-
-PLIST_SUB+= TMPDIR=${TMPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
-
-RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
-post-extract:
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/nginx.sh.in > ${WRKSRC}/nginx.sh
+PLIST_SUB+= NGINX_TMPDIR=${NGINX_TMPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
post-patch:
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
@@ -99,9 +82,8 @@ do-build:
@cd ${WRKSRC} && ${MAKE}
do-install:
- ${MKDIR} ${PREFIX}/etc/nginx ${TMPDIR}
- ${CHOWN} ${WWWOWN}:${WWWGRP} ${TMPDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/nginx.sh ${PREFIX}/etc/rc.d
+ ${MKDIR} ${PREFIX}/etc/nginx ${NGINX_TMPDIR}
+ ${CHOWN} ${WWWOWN}:${WWWGRP} ${NGINX_TMPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/conf/koi-win ${PREFIX}/etc/nginx
.for i in mime.types nginx.conf
@@ -117,9 +99,4 @@ do-install:
${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx
.endif
-post-install:
-.if defined(START_AFTER_INSTALL)
- ${PREFIX}/etc/rc.d/nginx.sh start
-.endif
-
.include <bsd.port.mk>
diff --git a/www/nginx/distinfo b/www/nginx/distinfo
index 09458aacc00c..2cc5c52ddbe9 100644
--- a/www/nginx/distinfo
+++ b/www/nginx/distinfo
@@ -1,3 +1,3 @@
-MD5 (nginx-0.3.40.tar.gz) = f2c8338962228ed1dc9cb0fff1fbd10b
-SHA256 (nginx-0.3.40.tar.gz) = 6e5fb751c431b5f8280557f0c8a627df7f6ee5772449fffa6a348ad8f93404e5
-SIZE (nginx-0.3.40.tar.gz) = 387838
+MD5 (nginx-0.3.45.tar.gz) = 3593cd8531e553756007ce4898a8eda8
+SHA256 (nginx-0.3.45.tar.gz) = 96daa0c9704f39730c3c9926af89d2f24daa2e415c0838ef379faf3a049e3b3c
+SIZE (nginx-0.3.45.tar.gz) = 393378
diff --git a/www/nginx/pkg-plist b/www/nginx/pkg-plist
index 460817a8abeb..b83273443850 100644
--- a/www/nginx/pkg-plist
+++ b/www/nginx/pkg-plist
@@ -15,10 +15,7 @@ etc/nginx/nginx.conf-dist
%%WWWDATA%%@exec chmod a-w www/nginx-dist
%%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi
%%WWWDATA%%@dirrm www/nginx-dist
-%%STOP_BEFORE_REMOVE%%@unexec %D/etc/rc.d/nginx.sh stop || true
sbin/nginx
-etc/rc.d/nginx.sh
-@exec [ -d %%TMPDIR%% ] || mkdir -p %%TMPDIR%%
-@exec chown %%WWWOWN%%:%%WWWGRP%% %%TMPDIR%%
-@unexec rm -fr %%TMPDIR%%
-%%START_AFTER_INSTALL%%@exec %D/etc/rc.d/nginx.sh start
+@exec [ -d %%NGINX_TMPDIR%% ] || mkdir -p %%NGINX_TMPDIR%%
+@exec chown %%WWWOWN%%:%%WWWGRP%% %%NGINX_TMPDIR%%
+@unexec rm -fr %%NGINX_TMPDIR%%