aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2004-12-07 17:07:43 +0800
committerosa <osa@FreeBSD.org>2004-12-07 17:07:43 +0800
commitf28d29de9ab42b7a8f8ed2a6d918fb2aedbc64a6 (patch)
tree5a59c0678eed43afe161b8086d782b6a19a7b535 /www
parentd26188cf89813019b4804f1ca95660bf55c7800a (diff)
downloadfreebsd-ports-gnome-f28d29de9ab42b7a8f8ed2a6d918fb2aedbc64a6.tar.gz
freebsd-ports-gnome-f28d29de9ab42b7a8f8ed2a6d918fb2aedbc64a6.tar.zst
freebsd-ports-gnome-f28d29de9ab42b7a8f8ed2a6d918fb2aedbc64a6.zip
Update to 0.1.12.
Fix link to WWWDATA directory (test link exist before make link). Add two new knobs: START_AFTER_INSTALL and STOP_BEFORE_REMOVE.
Diffstat (limited to 'www')
-rw-r--r--www/nginx-devel/Makefile24
-rw-r--r--www/nginx-devel/distinfo4
-rw-r--r--www/nginx-devel/pkg-plist5
-rw-r--r--www/nginx/Makefile24
-rw-r--r--www/nginx/distinfo4
-rw-r--r--www/nginx/pkg-plist5
6 files changed, 52 insertions, 14 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 2ba3a524d634..76a038c676a7 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nginx
-PORTVERSION= 0.1.11
+PORTVERSION= 0.1.12
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
@@ -46,9 +46,17 @@ PLIST_SUB+= WWWDATA="@comment "
PLIST_SUB+= WWWDATA=""
.endif
-PLIST_FILES+= etc/nginx/koi-win \
- etc/rc.d/nginx.sh \
- sbin/nginx
+.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
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
@@ -78,7 +86,13 @@ do-install:
${MKDIR} ${PREFIX}/www/nginx-dist
${INSTALL_DATA} ${WRKSRC}/html/index.html ${PREFIX}/www/nginx-dist
${ECHO_CMD} "" >>${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
- ${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx
+ [ -e ${PREFIX}/www/nginx ] || \
+ ${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-devel/distinfo b/www/nginx-devel/distinfo
index f2966cdd6d82..67229b3422fe 100644
--- a/www/nginx-devel/distinfo
+++ b/www/nginx-devel/distinfo
@@ -1,2 +1,2 @@
-MD5 (nginx-0.1.11.tar.gz) = a0fe15f59b0923c5d086b147f8c6bd0e
-SIZE (nginx-0.1.11.tar.gz) = 241476
+MD5 (nginx-0.1.12.tar.gz) = ef7ab5ea8ed4837b01559977a409f310
+SIZE (nginx-0.1.12.tar.gz) = 241950
diff --git a/www/nginx-devel/pkg-plist b/www/nginx-devel/pkg-plist
index 543e40b9de3d..c9ab18f7b2b3 100644
--- a/www/nginx-devel/pkg-plist
+++ b/www/nginx-devel/pkg-plist
@@ -1,4 +1,5 @@
@comment $FreeBSD$
+etc/nginx/koi-win
@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi
etc/nginx/mime.types-dist
@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
@@ -14,3 +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
+%%START_AFTER_INSTALL%%@exec %D/etc/rc.d/nginx.sh start
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index 2ba3a524d634..76a038c676a7 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nginx
-PORTVERSION= 0.1.11
+PORTVERSION= 0.1.12
CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
@@ -46,9 +46,17 @@ PLIST_SUB+= WWWDATA="@comment "
PLIST_SUB+= WWWDATA=""
.endif
-PLIST_FILES+= etc/nginx/koi-win \
- etc/rc.d/nginx.sh \
- sbin/nginx
+.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
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
@@ -78,7 +86,13 @@ do-install:
${MKDIR} ${PREFIX}/www/nginx-dist
${INSTALL_DATA} ${WRKSRC}/html/index.html ${PREFIX}/www/nginx-dist
${ECHO_CMD} "" >>${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
- ${LN} -sf ${PREFIX}/www/nginx-dist ${PREFIX}/www/nginx
+ [ -e ${PREFIX}/www/nginx ] || \
+ ${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 f2966cdd6d82..67229b3422fe 100644
--- a/www/nginx/distinfo
+++ b/www/nginx/distinfo
@@ -1,2 +1,2 @@
-MD5 (nginx-0.1.11.tar.gz) = a0fe15f59b0923c5d086b147f8c6bd0e
-SIZE (nginx-0.1.11.tar.gz) = 241476
+MD5 (nginx-0.1.12.tar.gz) = ef7ab5ea8ed4837b01559977a409f310
+SIZE (nginx-0.1.12.tar.gz) = 241950
diff --git a/www/nginx/pkg-plist b/www/nginx/pkg-plist
index 543e40b9de3d..c9ab18f7b2b3 100644
--- a/www/nginx/pkg-plist
+++ b/www/nginx/pkg-plist
@@ -1,4 +1,5 @@
@comment $FreeBSD$
+etc/nginx/koi-win
@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi
etc/nginx/mime.types-dist
@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
@@ -14,3 +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
+%%START_AFTER_INSTALL%%@exec %D/etc/rc.d/nginx.sh start