ports/190320: [patch] Add staging support to www/phpwebapp
Joseph Benden
joe at thrallingpenguin.com
Tue May 27 17:30:00 UTC 2014
>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 at 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}/, at 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}/, at dirrm ,' >> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/www/data 2>/dev/null || true" >> ${TMPPLIST}
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list