svn commit: r385283 - head/www/codeigniter
Baptiste Daroussin
bapt at FreeBSD.org
Sun May 3 15:41:44 UTC 2015
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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
- at 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
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/autoload.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/config.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/constants.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/database.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/doctypes.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/foreign_chars.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/hooks.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/migration.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/mimes.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/profiler.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/routes.php.sample
+ at sample %%WWWDIR%%/%%CI_CONF_DIR%%/smileys.php.sample
+ at 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
- at dirrm %%WWWDIR%%/system/libraries/javascript
- at dirrm %%WWWDIR%%/system/libraries/Cache/drivers
- at dirrm %%WWWDIR%%/system/libraries/Cache
- at dirrm %%WWWDIR%%/system/libraries
- at dirrm %%WWWDIR%%/system/language/english
- at dirrm %%WWWDIR%%/system/language
- at dirrm %%WWWDIR%%/system/helpers
- at dirrm %%WWWDIR%%/system/fonts
- at dirrm %%WWWDIR%%/system/database/drivers/sqlsrv
- at dirrm %%WWWDIR%%/system/database/drivers/sqlite
- at dirrm %%WWWDIR%%/system/database/drivers/postgre
- at dirrm %%WWWDIR%%/system/database/drivers/odbc
- at dirrm %%WWWDIR%%/system/database/drivers/pdo
- at dirrm %%WWWDIR%%/system/database/drivers/oci8
- at dirrm %%WWWDIR%%/system/database/drivers/mysqli
- at dirrm %%WWWDIR%%/system/database/drivers/mysql
- at dirrm %%WWWDIR%%/system/database/drivers/mssql
- at dirrm %%WWWDIR%%/system/database/drivers/cubrid
- at dirrm %%WWWDIR%%/system/database/drivers
- at dirrm %%WWWDIR%%/system/database
- at dirrm %%WWWDIR%%/system/core
- at dirrm %%WWWDIR%%/system
- at dirrm %%WWWDIR%%/application/views
- at dirrm %%WWWDIR%%/application/third_party
- at dirrm %%WWWDIR%%/application/models
- at dirrm %%WWWDIR%%/application/logs
- at dirrm %%WWWDIR%%/application/libraries
- at dirrm %%WWWDIR%%/application/language/english
- at dirrm %%WWWDIR%%/application/language
- at dirrm %%WWWDIR%%/application/hooks
- at dirrm %%WWWDIR%%/application/helpers
- at dirrm %%WWWDIR%%/application/errors
- at dirrm %%WWWDIR%%/application/core
- at dirrm %%WWWDIR%%/application/controllers
- at dirrmtry %%WWWDIR%%/application/config
- at dirrm %%WWWDIR%%/application/cache
- at dirrmtry %%WWWDIR%%/application
- at dirrmtry %%WWWDIR%%
+ at dir(%%WWWOWN%%,%%WWWGRP%%,) %%WWWDIR%%/application/cache
More information about the svn-ports-all
mailing list