ports/190318: [patch] Add staging support to www/phpmp

Joseph Benden joe at thrallingpenguin.com
Tue May 27 17:10:00 UTC 2014


>Number:         190318
>Category:       ports
>Synopsis:       [patch] Add staging support to www/phpmp
>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:10: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/phpmp.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/phpmp/Makefile b/www/phpmp/Makefile
index 92bb347..ecf40b0 100644
--- a/www/phpmp/Makefile
+++ b/www/phpmp/Makefile
@@ -17,18 +17,13 @@ USE_PHP=	pcre sockets
 PHPMP?=		${WWWDIR_REL}
 PLIST_SUB+=	PHPMP=${PHPMP}
 
-NO_STAGE=	yes
 do-install:
-	@${MKDIR} ${PREFIX}/${PHPMP}
-	@${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMP}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMP}
-	@${CHMOD} -R 755 ${PREFIX}/${PHPMP}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${PHPMP}
+	@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${PHPMP}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PHPMP}
+	@${CHMOD} -R 755 ${STAGEDIR}${PREFIX}/${PHPMP}
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
-	@if [ ! -f ${PREFIX}/${PHPMP}/config.php ]; then \
-		${CP} -p ${PREFIX}/${PHPMP}/config.php.sample \
-			${PREFIX}/${PHPMP}/config.php ; \
-	fi
 
 .include <bsd.port.mk>


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


More information about the freebsd-ports-bugs mailing list