Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 14:13:41 GMT
From:      Joseph Benden <joe@thrallingpenguin.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190306: [patch] Add staging support to www/opencart
Message-ID:  <201405271413.s4REDfaU054656@cgiserv.freebsd.org>
Resent-Message-ID: <201405271420.s4REK0mo085157@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190306
>Category:       ports
>Synopsis:       [patch] Add staging support to www/opencart
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 27 14:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Benden
>Release:        FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014     root@lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support to www/opencart.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/opencart/Makefile b/www/opencart/Makefile
index b4e32db..6f80961 100644
--- a/www/opencart/Makefile
+++ b/www/opencart/Makefile
@@ -20,27 +20,26 @@ WRKSRC=		${WRKDIR}/${PORTNAME}_v${PORTVERSION}/upload
 NO_BUILD=	yes
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 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}
-	@${CHMOD} -R 0755 ${WWWDIR}/image/
+	@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/image/
 	@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/image/' \
 		>> ${TMPPLIST}
-	@${CHMOD} -R 0755 ${WWWDIR}/system/cache/
+	@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/system/cache/
 	@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/system/cache/' \
 		>> ${TMPPLIST}
-	@${CHMOD} -R 0755 ${WWWDIR}/download/
+	@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/download/
 	@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/download/' \
 		>> ${TMPPLIST}
-	@${CHMOD} 0755 ${WWWDIR}/config.php
+	@${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/config.php
 	@${ECHO_CMD} '@exec ${CHMOD} 0755 ${WWWDIR}/config.php' \
 		>> ${TMPPLIST}
-	@${CHMOD} 0755 ${WWWDIR}/admin/config.php
+	@${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/admin/config.php
 	@${ECHO_CMD} '@exec ${CHMOD} 0755 ${WWWDIR}/admin/config.php' \
 		>> ${TMPPLIST}
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405271413.s4REDfaU054656>