Bug 190043 - [patch] Add staging support to www/efront
Summary: [patch] Add staging support to www/efront
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-21 01:00 UTC by joe
Modified: 2014-05-22 15:20 UTC (History)
0 users

See Also:


Attachments
file.diff (906 bytes, patch)
2014-05-21 01:00 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-21 01:00:02 UTC
Adds staging support to www/efront.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-21 01:00:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-05-22 15:16:32 UTC
Author: wen
Date: Thu May 22 14:16:26 2014
New Revision: 354846
URL: http://svnweb.freebsd.org/changeset/ports/354846
QAT: https://qat.redports.org/buildarchive/r354846/

Log:
  - Stage support [1]
  - Pet portlint
  
  PR:		190043 [1]
  Submitted by:	Joseph Benden <joe@thrallingpenguin.com> [1]

Modified:
  head/www/efront/Makefile
  head/www/efront/pkg-descr

Modified: head/www/efront/Makefile
==============================================================================
--- head/www/efront/Makefile	Thu May 22 14:13:39 2014	(r354845)
+++ head/www/efront/Makefile	Thu May 22 14:16:26 2014	(r354846)
@@ -9,7 +9,7 @@ MASTER_SITES=	SF/${PORTNAME}learning/${P
 DISTNAME=	${PORTNAME}_${PORTVERSION}_build8242
 
 MAINTAINER=	wen@FreeBSD.org
-COMMENT=	A Elearning and Human Capital Development platform
+COMMENT=	Elearning and Human Capital Development platform
 
 USES=		zip
 USE_PHP=	mbstring zip iconv zlib spl ldap
@@ -21,25 +21,22 @@ EFRONT_DIRS=	libraries PEAR \
 NO_BUILD=	yes
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
 do-install:
-	@if [ ! -f ${WWWDIR} ]; then \
-		${MKDIR} ${WWWDIR} ; fi
+	${MKDIR} ${STAGEDIR}${WWWDIR}
 .for i in ${EFRONT_FILES}
-	@cd ${WRKDIR} && ${CP} ${i} ${WWWDIR}
+	@cd ${WRKDIR} && ${CP} ${i} ${STAGEDIR}${WWWDIR}
 .endfor
 .for i in ${EFRONT_DIRS}
-	@cd ${WRKDIR} && ${COPYTREE_SHARE} ${i} ${WWWDIR}
+	@cd ${WRKDIR} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${WWWDIR}
 .endfor
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	@${CHMOD} -R 755 ${WWWDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
 
 post-install:
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
+	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
 		>> ${TMPPLIST}
-	@${ECHO_CMD} '@exec ${CHMOD} 755 -R ${WWWDIR}' \
+	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' \
 		>> ${TMPPLIST}
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/www/efront/pkg-descr
==============================================================================
--- head/www/efront/pkg-descr	Thu May 22 14:13:39 2014	(r354845)
+++ head/www/efront/pkg-descr	Thu May 22 14:16:26 2014	(r354846)
@@ -1,4 +1,4 @@
 eFront is an easy to use, visually attractive, SCORM compatible, eLearning
 and Human Capital Development system.
 
-WWW:   http://www.efrontlearning.net/
+WWW: http://www.efrontlearning.net/
_______________________________________________
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 freebsd_triage 2014-05-22 15:16:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!