ports/190316: [patch] Add staging support to www/phpgedview
Joseph Benden
joe at thrallingpenguin.com
Tue May 27 15:50:00 UTC 2014
>Number: 190316
>Category: ports
>Synopsis: [patch] Add staging support to www/phpgedview
>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 15:50: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/phpgedview.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/www/phpgedview/Makefile b/www/phpgedview/Makefile
index 91c1aec..1e0ad5c 100644
--- a/www/phpgedview/Makefile
+++ b/www/phpgedview/Makefile
@@ -25,7 +25,6 @@ OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= SQLITE
DB_DESC= Data storage
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
@@ -48,19 +47,13 @@ post-extract:
.endfor
do-install:
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media
- @${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/index ${STAGEDIR}${WWWDIR}/media
+ @${CHMOD} -R u+w ${STAGEDIR}${WWWDIR}/index ${STAGEDIR}${WWWDIR}/media
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST}
post-install:
-.for f in ${DISTATE}
- @if [ ! -f ${WWWDIR}/${f} ]; then \
- ${CP} -p ${WWWDIR}/${f}-dist ${WWWDIR}/${f}; \
- ${CHMOD} a+w ${WWWDIR}/${f}; \
- fi
-.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list