svn commit: r359653 - head/www/bacula-web
Martin Wilke
miwi at FreeBSD.org
Sat Jun 28 04:44:36 UTC 2014
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
+ at 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
+ at unexec rmdir "/var/bacula-web/templates_c" >/dev/null 2>&1 || :
+ at unexec rmdir "/var/bacula-web" >/dev/null 2>&1 || :
More information about the svn-ports-all
mailing list