Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jun 2014 04:44:35 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359653 - head/www/bacula-web
Message-ID:  <201406280444.s5S4iZGh022718@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sat Jun 28 04:44:35 2014
New Revision: 359653
URL: http://svnweb.freebsd.org/changeset/ports/359653
QAT: https://qat.redports.org/buildarchive/r359653/

Log:
  - Stage support
  
  PR:		190012

Modified:
  head/www/bacula-web/Makefile
  head/www/bacula-web/pkg-plist

Modified: head/www/bacula-web/Makefile
==============================================================================
--- head/www/bacula-web/Makefile	Sat Jun 28 04:43:59 2014	(r359652)
+++ head/www/bacula-web/Makefile	Sat Jun 28 04:44:35 2014	(r359653)
@@ -22,7 +22,6 @@ OPTIONS_DEFAULT=	PGSQL
 
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MPGSQL}
@@ -39,17 +38,15 @@ USE_PHP+=		mysql
 
 do-install:
 	@${ECHO} "Installing in ${PREFIX}/www/bacula-web"
-	${MKDIR} ${PREFIX}/www/bacula-web
-	${CP} -R ${WRKSRC}/bacula-web/* ${PREFIX}/www/bacula-web
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/bacula-web
-	if [ -f ${PREFIX}/www/bacula-web/configs/bacula.conf ]; then \
-		${CP} ${PREFIX}/www/bacula-web/configs/bacula.conf ${PREFIX}/etc/bacula-web.conf.sample; \
-		${RM} -rf ${PREFIX}/www/bacula-web/configs; \
-	fi
+	${MKDIR} ${STAGEDIR}${PREFIX}/www/bacula-web
+	${CP} -R ${WRKSRC}/bacula-web/* ${STAGEDIR}${PREFIX}/www/bacula-web
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/www/bacula-web
+	${MV} ${STAGEDIR}${PREFIX}/www/bacula-web/configs/bacula.conf ${STAGEDIR}${PREFIX}/etc/bacula-web.conf.sample; \
+	${RM} -rf ${STAGEDIR}${PREFIX}/www/bacula-web/configs; \
 
 	if [ ! -f /var/bacula-web/templates_c ]; then \
-		${MKDIR} /var/bacula-web/templates_c; \
-		${CHOWN} -R ${WWWOWN}:${WWWGRP} /var/bacula-web/templates_c; \
+		${MKDIR} ${STAGEDIR}/var/bacula-web/templates_c; \
+		${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/var/bacula-web/templates_c; \
 	fi
 
 post-install:

Modified: head/www/bacula-web/pkg-plist
==============================================================================
--- head/www/bacula-web/pkg-plist	Sat Jun 28 04:43:59 2014	(r359652)
+++ head/www/bacula-web/pkg-plist	Sat Jun 28 04:44:35 2014	(r359653)
@@ -1,4 +1,4 @@
-etc/bacula-web.conf.sample
+@sample etc/bacula-web.conf.sample
 www/bacula-web/CONTACT
 www/bacula-web/COPYING
 www/bacula-web/ChangeLog
@@ -221,3 +221,5 @@ www/bacula-web/tsmarty2c.php
 @dirrm www/bacula-web/external_packages/phplot
 @dirrm www/bacula-web/external_packages
 @dirrm www/bacula-web
+@unexec rmdir "/var/bacula-web/templates_c" >/dev/null 2>&1 || :
+@unexec rmdir "/var/bacula-web" >/dev/null 2>&1 || :



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406280444.s5S4iZGh022718>