svn commit: r329121 - head/www/ajaxplorer
Guido Falsi
madpilot at FreeBSD.org
Wed Oct 2 22:55:19 UTC 2013
Author: madpilot
Date: Wed Oct 2 22:55:18 2013
New Revision: 329121
URL: http://svnweb.freebsd.org/changeset/ports/329121
Log:
- Support staging
Modified:
head/www/ajaxplorer/Makefile
Modified: head/www/ajaxplorer/Makefile
==============================================================================
--- head/www/ajaxplorer/Makefile Wed Oct 2 22:48:09 2013 (r329120)
+++ head/www/ajaxplorer/Makefile Wed Oct 2 22:55:18 2013 (r329121)
@@ -18,7 +18,6 @@ DOS2UNIX_REGEX= .*\.php
WANT_PHP_WEB= yes
SUB_FILES= pkg-deinstall pkg-install pkg-message
-NO_STAGE= yes
post-patch:
@${RM} -f ${WRKSRC}/plugins/gui.ajax/res/themes/vision/images/mimes/16/._users-folder.png
@${MV} ${WRKSRC}/conf/bootstrap_conf.php ${WRKDIR}/bootstrap_conf.php.sample
@@ -26,24 +25,13 @@ post-patch:
@${MV} ${WRKSRC}/conf/bootstrap_repositories.php ${WRKDIR}/bootstrap_repositories.php.sample
do-install:
- ${MKDIR} ${WWWDIR}
- (cd ${WRKSRC} && ${COPYTREE_SHARE} "* .htaccess" ${WWWDIR})
- ${INSTALL_DATA} ${WRKDIR}/bootstrap_*.php.sample ${WWWDIR}/conf
- ${INSTALL_DATA} ${FILESDIR}/4.2.3-5.0.0-db-upgrade.sql ${WWWDIR}/conf
- ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+ ${MKDIR} ${STAGEDIR}${WWWDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} "* .htaccess" ${STAGEDIR}${WWWDIR})
+ ${INSTALL_DATA} ${WRKDIR}/bootstrap_*.php.sample ${STAGEDIR}${WWWDIR}/conf
+ ${INSTALL_DATA} ${FILESDIR}/4.2.3-5.0.0-db-upgrade.sql ${STAGEDIR}${WWWDIR}/conf
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
post-install:
- @if [ ! -f ${WWWDIR}/conf/bootstrap_conf.php ]; then \
- ${CP} -p ${WWWDIR}/conf/bootstrap_conf.php.sample ${WWWDIR}/conf/bootstrap_conf.php ; \
- fi
- @if [ ! -f ${WWWDIR}/conf/bootstrap_context.php ]; then \
- ${CP} -p ${WWWDIR}/conf/bootstrap_context.php.sample ${WWWDIR}/conf/bootstrap_context.php ; \
- fi
- @if [ ! -f ${WWWDIR}/conf/bootstrap_repositories.php ]; then \
- ${CP} -p ${WWWDIR}/conf/bootstrap_repositories.php.sample ${WWWDIR}/conf/bootstrap_repositories.php ; \
- fi
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list