Bug 190008 - [patch] Add staging support to www/atutor
Summary: [patch] Add staging support to www/atutor
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-20 15:30 UTC by joe
Modified: 2014-05-20 16:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.27 KB, patch)
2014-05-20 15:30 UTC, joe
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description joe 2014-05-20 15:30:00 UTC
Adds staging support to www/atutor.

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

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2014-05-20 16:23:48 UTC
Author: wen
Date: Tue May 20 15:23:45 2014
New Revision: 354650
URL: http://svnweb.freebsd.org/changeset/ports/354650
QAT: https://qat.redports.org/buildarchive/r354650/

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

Modified:
  head/www/atutor/Makefile

Modified: head/www/atutor/Makefile
==============================================================================
--- head/www/atutor/Makefile	Tue May 20 15:14:13 2014	(r354649)
+++ head/www/atutor/Makefile	Tue May 20 15:23:45 2014	(r354650)
@@ -8,12 +8,11 @@ MASTER_SITES=	SF/${PORTNAME}/ATutor%202/
 DISTNAME=	ATutor-${PORTVERSION}
 
 MAINTAINER=	wen@FreeBSD.org
-COMMENT=	An Open Source Web-based Learning Content Management System (LCMS)
+COMMENT=	Open Source Web-based Learning Content Management System (LCMS)
 
 USE_PHP=	session mbstring zlib mysql
 WRKSRC=		${WRKDIR}/ATutor
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 NO_BUILD=	yes
@@ -30,15 +29,15 @@ pre-install:
 	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dirrm ${ATUTDIR}?g" >> ${PLIST}
 
 do-install:
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
 	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
 		${WWWDIR}' >> ${TMPPLIST}
-	@${FIND} ${WWWDIR} -type d -exec ${CHMOD} a+x {} \;
-	@${INSTALL_DATA} -d ${ATUTDATDIR}
-	@${CHMOD} 777 ${ATUTDATDIR}
+	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} a+x {} \;
+	@${INSTALL_DATA} -d ${STAGEDIR}${ATUTDATDIR}
+	@${CHMOD} 777 ${STAGEDIR}${ATUTDATDIR}
 	@${ECHO_CMD} '@exec ${CHMOD} 777 ${ATUTDATDIR}' >> ${TMPPLIST}
-	@${CHMOD} 666 ${WWWDIR}/${ATUTCONFIG}
+	@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/${ATUTCONFIG}
 	@${ECHO_CMD} '@exec ${CHMOD} 666 \
 		${WWWDIR}/${ATUTCONFIG}' >> ${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"
Comment 3 Wen Heping freebsd_committer 2014-05-20 16:25:25 UTC
State Changed
From-To: open->closed

Committed. Thanks!