From owner-svn-ports-head@FreeBSD.ORG Sun May 3 15:41:44 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5787262; Sun, 3 May 2015 15:41:44 +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 919D01A08; Sun, 3 May 2015 15:41:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t43FfiO3051148; Sun, 3 May 2015 15:41:44 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t43FfiU5051146; Sun, 3 May 2015 15:41:44 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201505031541.t43FfiU5051146@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sun, 3 May 2015 15:41:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385283 - head/www/codeigniter 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.20 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: Sun, 03 May 2015 15:41:44 -0000 Author: bapt Date: Sun May 3 15:41:43 2015 New Revision: 385283 URL: https://svnweb.freebsd.org/changeset/ports/385283 Log: Fix staging done wrong While here: Use @sample Only the cache directory needs to be owned by WWWOWN Remove useless @dirrm Modified: head/www/codeigniter/Makefile head/www/codeigniter/pkg-plist Modified: head/www/codeigniter/Makefile ============================================================================== --- head/www/codeigniter/Makefile Sun May 3 15:20:17 2015 (r385282) +++ head/www/codeigniter/Makefile Sun May 3 15:41:43 2015 (r385283) @@ -3,6 +3,7 @@ PORTNAME= codeigniter PORTVERSION= 2.1.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://downloads.codeigniter.com/reactor/ \ http://www.codeigniter.org.tw/download_files/ @@ -13,21 +14,18 @@ COMMENT= Framework for developing PHP we USES= zip -NEED_ROOT=yes - CONFLICTS= codeigniter-1.[0-9]* NO_BUILD= yes USE_PHP= session pcre WANT_PHP_WEB= yes +PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} CI_SYS_DIR= system CI_CONF_DIR= application/config WRKSRC= ${WRKDIR}/CodeIgniter-${PORTVERSION} PORTDOCS= * -LATEST_LINK= codeigniter-devel - # These are all user-configurable files that we'll install CI_CONF_FILES= index.php ${CI_CONF_DIR}/autoload.php \ ${CI_CONF_DIR}/config.php ${CI_CONF_DIR}/constants.php \ @@ -126,15 +124,6 @@ do-install: @for i in ${CI_CONF_FILES}; do \ ${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${WWWDIR}/$$i.sample; \ done - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ - ${STAGEDIR}${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} - @${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 - @${ECHO_CMD} '@exec ${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | \ - ${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST} - @${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 - @${ECHO_CMD} '@exec ${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | \ - ${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST} post-install: .if ${PORT_OPTIONS:MAPACHE} Modified: head/www/codeigniter/pkg-plist ============================================================================== --- head/www/codeigniter/pkg-plist Sun May 3 15:20:17 2015 (r385282) +++ head/www/codeigniter/pkg-plist Sun May 3 15:41:43 2015 (r385283) @@ -2,45 +2,19 @@ %%WWWDIR%%/application/cache/.htaccess %%WWWDIR%%/application/cache/index.html %%WWWDIR%%/application/config/index.html -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php ]; then cp -p %D/%F %B/autoload.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/config.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php ]; then cp -p %D/%F %B/config.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/config.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php ]; then cp -p %D/%F %B/constants.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/constants.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/database.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php ]; then cp -p %D/%F %B/database.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/database.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php ]; then cp -p %D/%F %B/doctypes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php ]; then cp -p %D/%F %B/foreign_chars.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php ]; then cp -p %D/%F %B/hooks.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php ]; then cp -p %D/%F %B/migration.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/migration.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php ]; then cp -p %D/%F %B/mimes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php ]; then cp -p %D/%F %B/profiler.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php ]; then cp -p %D/%F %B/routes.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/routes.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php ]; then cp -p %D/%F %B/smileys.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php has not been overwritten"; fi -@unexec if cmp -s %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php.sample %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php; then rm -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php has not been removed"; fi -%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php.sample -@exec if [ ! -f %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php ]; then cp -p %D/%F %B/user_agents.php; else %%ECHO_MSG%% "===> Customized %D/%%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php has not been overwritten"; fi +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/config.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/constants.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/database.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/migration.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/routes.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php.sample +@sample %%WWWDIR%%/%%CI_CONF_DIR%%/user_agents.php.sample %%WWWDIR%%/application/controllers/index.html %%WWWDIR%%/application/controllers/welcome.php %%WWWDIR%%/application/core/index.html @@ -206,41 +180,4 @@ %%WWWDIR%%/system/libraries/Zip.php %%WWWDIR%%/system/libraries/index.html %%WWWDIR%%/system/libraries/javascript/Jquery.php -@dirrm %%WWWDIR%%/system/libraries/javascript -@dirrm %%WWWDIR%%/system/libraries/Cache/drivers -@dirrm %%WWWDIR%%/system/libraries/Cache -@dirrm %%WWWDIR%%/system/libraries -@dirrm %%WWWDIR%%/system/language/english -@dirrm %%WWWDIR%%/system/language -@dirrm %%WWWDIR%%/system/helpers -@dirrm %%WWWDIR%%/system/fonts -@dirrm %%WWWDIR%%/system/database/drivers/sqlsrv -@dirrm %%WWWDIR%%/system/database/drivers/sqlite -@dirrm %%WWWDIR%%/system/database/drivers/postgre -@dirrm %%WWWDIR%%/system/database/drivers/odbc -@dirrm %%WWWDIR%%/system/database/drivers/pdo -@dirrm %%WWWDIR%%/system/database/drivers/oci8 -@dirrm %%WWWDIR%%/system/database/drivers/mysqli -@dirrm %%WWWDIR%%/system/database/drivers/mysql -@dirrm %%WWWDIR%%/system/database/drivers/mssql -@dirrm %%WWWDIR%%/system/database/drivers/cubrid -@dirrm %%WWWDIR%%/system/database/drivers -@dirrm %%WWWDIR%%/system/database -@dirrm %%WWWDIR%%/system/core -@dirrm %%WWWDIR%%/system -@dirrm %%WWWDIR%%/application/views -@dirrm %%WWWDIR%%/application/third_party -@dirrm %%WWWDIR%%/application/models -@dirrm %%WWWDIR%%/application/logs -@dirrm %%WWWDIR%%/application/libraries -@dirrm %%WWWDIR%%/application/language/english -@dirrm %%WWWDIR%%/application/language -@dirrm %%WWWDIR%%/application/hooks -@dirrm %%WWWDIR%%/application/helpers -@dirrm %%WWWDIR%%/application/errors -@dirrm %%WWWDIR%%/application/core -@dirrm %%WWWDIR%%/application/controllers -@dirrmtry %%WWWDIR%%/application/config -@dirrm %%WWWDIR%%/application/cache -@dirrmtry %%WWWDIR%%/application -@dirrmtry %%WWWDIR%% +@dir(%%WWWOWN%%,%%WWWGRP%%,) %%WWWDIR%%/application/cache