From owner-svn-ports-all@FreeBSD.ORG Sun May 25 05:10:20 2014 Return-Path: Delivered-To: svn-ports-all@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 C94B85CF; Sun, 25 May 2014 05:10:20 +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 B66DD2D4E; Sun, 25 May 2014 05:10:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4P5AKDh027162; Sun, 25 May 2014 05:10:20 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4P5AKKT027160; Sun, 25 May 2014 05:10:20 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201405250510.s4P5AKKT027160@svn.freebsd.org> From: Martin Wilke Date: Sun, 25 May 2014 05:10:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355111 - head/www/bblog X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2014 05:10:21 -0000 Author: miwi Date: Sun May 25 05:10:20 2014 New Revision: 355111 URL: http://svnweb.freebsd.org/changeset/ports/355111 QAT: https://qat.redports.org/buildarchive/r355111/ Log: - Stage support PR: 190014 Submitted by: Joseph Benden .if ${PORT_OPTIONS:MGD} @@ -44,18 +43,19 @@ pre-patch: .endif do-install: - @${MKDIR} ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${BBLOGDIR} - @${CHGRP} -R ${WWWGRP} ${PREFIX}/${BBLOGDIR} - @${CHMOD} 755 ${PREFIX}/${BBLOGDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${BBLOGDIR} + @${CHGRP} -R ${WWWGRP} ${STAGEDIR}${PREFIX}/${BBLOGDIR} + @${CHMOD} 755 ${STAGEDIR}${PREFIX}/${BBLOGDIR} .for f in archives.php documentation.txt htaccess-cleanurls index.php item rss.php search.php section - ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${BBLOGDIR} + ${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${BBLOGDIR} .endfor - @${CP} -Rv ${WRKSRC}/* ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl} - @${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/compiled_templates/ - @${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/ - @${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/favorites.xml - @${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php + @${CP} -Rv ${WRKSRC}/* ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl} + @${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/compiled_templates/ + @${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/ + @${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/favorites.xml + @${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php + @${MV} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php.sample post-install: @${CAT} ${PKGMESSAGE} Modified: head/www/bblog/pkg-plist ============================================================================== --- head/www/bblog/pkg-plist Sun May 25 05:09:50 2014 (r355110) +++ head/www/bblog/pkg-plist Sun May 25 05:10:20 2014 (r355111) @@ -1,3 +1,5 @@ +@owner %%WWWOWN%% +@group %%WWWGRP%% %%WWWDOCROOT%%/%%BBLOGURL%%/archives.php %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/bBlog_plugins/admin.comments.php %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/bBlog_plugins/admin.links.php @@ -52,7 +54,9 @@ %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/bblog.css %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/cache/favorites.xml %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/compiled_templates/this_file_is_here_so_the_directory_is_extracted -%%WWWDOCROOT%%/%%BBLOGURL%%/bblog/config.php +@unexec if cmp -s %D/%%WWWDOCROOT%%/%%BBLOGURL%%/bblog/config.php %D/%%WWWDOCROOT%%/%%BBLOGURL%%/bblog/config.php.sample; then rm -f %D/%%WWWDOCROOT%%/%%BBLOGURL%%/bblog/config.php; fi +%%WWWDOCROOT%%/%%BBLOGURL%%/bblog/config.php.sample +@exec cp -n %D/%F %B/config.php %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/cp.css %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/docs/LICENCE.txt %%WWWDOCROOT%%/%%BBLOGURL%%/bblog/docs/README.txt