svn commit: r329124 - in head/www/phprecipebook: . files

Guido Falsi madpilot at FreeBSD.org
Wed Oct 2 22:56:48 UTC 2013


Author: madpilot
Date: Wed Oct  2 22:56:47 2013
New Revision: 329124
URL: http://svnweb.freebsd.org/changeset/ports/329124

Log:
  - Support staging

Modified:
  head/www/phprecipebook/Makefile
  head/www/phprecipebook/files/pkg-message.in   (contents, props changed)

Modified: head/www/phprecipebook/Makefile
==============================================================================
--- head/www/phprecipebook/Makefile	Wed Oct  2 22:56:34 2013	(r329123)
+++ head/www/phprecipebook/Makefile	Wed Oct  2 22:56:47 2013	(r329124)
@@ -23,7 +23,6 @@ OPTIONS_SINGLE=	BACKEND
 OPTIONS_SINGLE_BACKEND=	MYSQL PGSQL
 OPTIONS_DEFAULT=	MYSQL
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMYSQL}
@@ -40,14 +39,11 @@ post-extract:
 	@${CHMOD} -R u+w ${WRKSRC}
 
 do-install:
-	@${CP} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
-	@if [ ! -f ${WWWDIR}/custom_inc.php ]; then \
-		${CP} ${WWWDIR}/custom_inc.php.sample \
-		${WWWDIR}/custom_inc.php ; fi
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+	${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
 
 post-install:
-	@${SED} -e 's|%%RECIPEDIR%%|${WWWDIR}|' ${PKGMESSAGE}
+	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
 
 .include <bsd.port.mk>

Modified: head/www/phprecipebook/files/pkg-message.in
==============================================================================
--- head/www/phprecipebook/files/pkg-message.in	Wed Oct  2 22:56:34 2013	(r329123)
+++ head/www/phprecipebook/files/pkg-message.in	Wed Oct  2 22:56:47 2013	(r329124)
@@ -1,9 +1,9 @@
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 Please read:
 
-%%RECIPEDIR%%/docs/INSTALL.UNIX
+%%WWWDIR%%/docs/INSTALL.UNIX
 
 If you are upgrading then read this too:
 
-%%RECIPEDIR%%/docs/UPGRADE.TXT
+%%WWWDIR%%/docs/UPGRADE.TXT
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


More information about the svn-ports-head mailing list