Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 17:24:29 GMT
From:      Joseph Benden <joe@thrallingpenguin.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190320: [patch] Add staging support to www/phpwebapp
Message-ID:  <201405271724.s4RHOTZa063478@cgiserv.freebsd.org>
Resent-Message-ID: <201405271730.s4RHU0Tk053585@freefall.freebsd.org>

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

>Number:         190320
>Category:       ports
>Synopsis:       [patch] Add staging support to www/phpwebapp
>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 17:30: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/phpwebapp.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/phpwebapp/Makefile b/www/phpwebapp/Makefile
index 7a9f15b..2075153 100644
--- a/www/phpwebapp/Makefile
+++ b/www/phpwebapp/Makefile
@@ -14,14 +14,13 @@ WANT_PHP_WEB=	yes
 NO_BUILD=	yes
 PHPWEBAPP?=	${PREFIX}/www/data/web_app
 
-NO_STAGE=	yes
 do-install:
-	${MKDIR} -p ${PREFIX}/www/data
-	${CP} -R ${WRKSRC}/web_app/ ${PHPWEBAPP}
-	@${FIND} ${PHPWEBAPP} ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${PHPWEBAPP} -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+	${MKDIR} -p ${STAGEDIR}${PREFIX}/www/data
+	${CP} -R ${WRKSRC}/web_app/ ${STAGEDIR}${PHPWEBAPP}
+	@${FIND} ${STAGEDIR}${PHPWEBAPP} ! -type d | \
+		${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
+	@${FIND} ${STAGEDIR}${PHPWEBAPP} -type d | ${SORT} -r | \
+		${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 	@${ECHO_CMD} "@unexec rmdir %D/www/data 2>/dev/null || true" >> ${TMPPLIST}
 
 .include <bsd.port.mk>


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



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