Bug 190026

Summary: [patch] Add staging support to www/cmsmadesimple
Product: Ports & Packages Reporter: joe
Component: Individual Port(s)Assignee: Wen Heping <wen>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description joe 2014-05-20 19:20:00 UTC
Adds staging support to www/cmsmadesimple.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-20 19:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2014-05-22 10:39:31 UTC
State Changed
From-To: open->closed

y
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-05-22 10:39:50 UTC
Author: miwi
Date: Thu May 22 09:39:46 2014
New Revision: 354812
URL: http://svnweb.freebsd.org/changeset/ports/354812
QAT: https://qat.redports.org/buildarchive/r354812/

Log:
  - Stage support
  
  PR:		190026
  Submitted by:	Joseph Benden <joe@thrallingpenguin.com>

Modified:
  head/www/cmsmadesimple/Makefile

Modified: head/www/cmsmadesimple/Makefile
==============================================================================
--- head/www/cmsmadesimple/Makefile	Thu May 22 09:38:56 2014	(r354811)
+++ head/www/cmsmadesimple/Makefile	Thu May 22 09:39:46 2014	(r354812)
@@ -25,23 +25,22 @@ CMS_FILES=	favicon_cms.ico fileloc.php i
 WRITABLE_DIRS=	tmp tmp/templates_c tmp/cache \
 		uploads uploads/images modules
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 post-extract:
 	@cd ${WRKSRC} && ${RM} -f config.php
 
 do-install:
 .for i in ${CMS_DIRS}
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${WWWDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${WWWDIR}
 .endfor
 .for i in ${CMS_FILES}
-	@cd ${WRKSRC} && ${CP} ${i} ${WWWDIR}/${i}
+	@cd ${WRKSRC} && ${CP} ${i} ${STAGEDIR}${WWWDIR}/${i}
 .endfor
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	@${CHMOD} -R 755 ${WWWDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
 
-	@if [ ! -f ${WWWDIR}/config.php ]; then \
-	${TOUCH} ${WWWDIR}/config.php ; fi
+	@if [ ! -f ${STAGEDIR}${WWWDIR}/config.php ]; then \
+	${TOUCH} ${STAGEDIR}${WWWDIR}/config.php ; fi
 
 post-install:
 	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
@@ -50,12 +49,12 @@ post-install:
 		>> ${TMPPLIST}
 
 .for i in ${WRITABLE_DIRS}
-	@${CHMOD} 775 ${WWWDIR}/${i}
+	@${CHMOD} 775 ${STAGEDIR}${WWWDIR}/${i}
 	@${ECHO_CMD} '@exec ${CHMOD} 775 ${WWWDIR}/${i}' \
 		>> ${TMPPLIST}
 .endfor
 
-	@${CHMOD} 666 ${WWWDIR}/config.php
+	@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/config.php
 	@${ECHO_CMD} '@exec ${CHMOD} 666 ${WWWDIR}/config.php' \
 		>> ${TMPPLIST}
 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"