- Stage support
PR: 190012
This commit is contained in:
parent
3c39b88aa5
commit
f4c6176c07
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359653
@ -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:
|
||||
|
@ -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 || :
|
||||
|
Loading…
Reference in New Issue
Block a user