Bug 190042 - [patch] Add staging support to www/e107
Summary: [patch] Add staging support to www/e107
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 00:50 UTC by joe
Modified: 2014-05-22 15:30 UTC (History)
0 users

See Also:


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

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2014-05-21 00:50:11 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-22 15:23:48 UTC
Author: wen
Date: Thu May 22 14:23:43 2014
New Revision: 354852
URL: http://svnweb.freebsd.org/changeset/ports/354852
QAT: https://qat.redports.org/buildarchive/r354852/

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

Modified:
  head/www/e107/Makefile

Modified: head/www/e107/Makefile
==============================================================================
--- head/www/e107/Makefile	Thu May 22 14:21:30 2014	(r354851)
+++ head/www/e107/Makefile	Thu May 22 14:23:43 2014	(r354852)
@@ -8,14 +8,11 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 DISTNAME=	${PORTNAME}_${PORTVERSION}_full
 
 MAINTAINER=	wen@FreeBSD.org
-COMMENT=	A content management system written in PHP
+COMMENT=	Content management system written in PHP
 
 USE_PHP=	mysql xml
 WRKSRC=		${WRKDIR}/e107
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
 NO_BUILD=	yes
 PLIST=		${WRKDIR}/plist
 SUB_FILES=	pkg-message
@@ -35,16 +32,16 @@ pre-install:
 	@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dirrm ${E107DIR}#g" >> ${PLIST}
 
 do-install:
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	@${CHMOD} -R 755 ${WWWDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
 
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
+	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
 		>> ${TMPPLIST}
-	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' \
+	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' \
 		>> ${TMPPLIST}
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
_______________________________________________
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-22 15:23:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!