From owner-svn-ports-head@FreeBSD.ORG Fri Jun 6 13:01:17 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E43E0B7C; Fri, 6 Jun 2014 13:01:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B79042E12; Fri, 6 Jun 2014 13:01:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s56D1H0v024894; Fri, 6 Jun 2014 13:01:17 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s56D1H1C024893; Fri, 6 Jun 2014 13:01:17 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201406061301.s56D1H1C024893@svn.freebsd.org> From: Martin Wilke Date: Fri, 6 Jun 2014 13:01:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r356774 - head/www/cakephp11 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2014 13:01:18 -0000 Author: miwi Date: Fri Jun 6 13:01:17 2014 New Revision: 356774 URL: http://svnweb.freebsd.org/changeset/ports/356774 QAT: https://qat.redports.org/buildarchive/r356774/ Log: - Stage support PR: 190018 Modified: head/www/cakephp11/Makefile Modified: head/www/cakephp11/Makefile ============================================================================== --- head/www/cakephp11/Makefile Fri Jun 6 13:00:41 2014 (r356773) +++ head/www/cakephp11/Makefile Fri Jun 6 13:01:17 2014 (r356774) @@ -22,7 +22,7 @@ NO_BUILD= yes USE_PHP= pcre session WANT_PHP_WEB= yes -DEFAULT_PHP_VER=5 +DEFAULT_VERSIONS= php=5 SUB_FILES= pkg-message @@ -36,7 +36,6 @@ PLIST_SUB+= CONFDIR=${CONFDIR_REL} CONFDIR= ${PREFIX}/${CONFDIR_REL} CONFDIR_REL= ${APACHEETCDIR}/Includes -NO_STAGE= yes .include WITH_PHP_CGI?= /cgi-bin/php @@ -97,19 +96,20 @@ confighelp: @${ECHO_MSG} "" do-install: - @${MKDIR} ${WWWDIR} + @${MKDIR} ${STAGEDIR}${WWWDIR} @${CP} -R ${WRKSRC}/.htaccess \ ${WRKSRC}/app \ ${WRKSRC}/cake \ ${WRKSRC}/index.php \ - ${WRKSRC}/vendors ${WWWDIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} - @${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 - @${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 + ${WRKSRC}/vendors ${STAGEDIR}${WWWDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} + @${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 + @${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 post-install: - @if [ -d "${CONFDIR}" ]; then \ - ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/cakephp.conf; \ + @${MKDIR} ${STAGEDIR}${CONFDIR} + @if [ -d "${STAGEDIR}${CONFDIR}" ]; then \ + ${CP} ${WRKDIR}/${CONF} ${STAGEDIR}${CONFDIR}/cakephp.conf; \ else \ ${ECHO_MSG} "" ; \ ${ECHO_MSG} "Please check your Apache 2.x installation -" ; \ @@ -118,11 +118,8 @@ post-install: ${ECHO_MSG} "" ; \ ${FALSE} ; \ fi -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR} -.endif - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${STAGEDIR}${DOCSDIR} .if ${CGI_EXT} == "-cgi" @${ECHO_MSG} "" @${ECHO_MSG} "Your CakePHP installation was configured to use the PHP CGI binary."