diff options
| author | Thomas Abthorpe <tabthorpe@FreeBSD.org> | 2008-01-09 13:51:22 +0000 |
|---|---|---|
| committer | Thomas Abthorpe <tabthorpe@FreeBSD.org> | 2008-01-09 13:51:22 +0000 |
| commit | f3e85cefd596c6d6f24b611edda4e62903c498a7 (patch) | |
| tree | 109a078fff11863360f2dced19d86aef3cdf7808 /www/cakephp13/files | |
| parent | Update to 2.12.5 (diff) | |
- Add new port www/cakephp-devel
PR: ports/119323
Submitted by: Greg Larkin <glarkin@sourcehosting.net>
Diffstat (limited to 'www/cakephp13/files')
| -rw-r--r-- | www/cakephp13/files/development-app-config-core.php.patch | 24 | ||||
| -rw-r--r-- | www/cakephp13/files/pkg-install.in | 29 |
2 files changed, 41 insertions, 12 deletions
diff --git a/www/cakephp13/files/development-app-config-core.php.patch b/www/cakephp13/files/development-app-config-core.php.patch index c32ab7e013be..f0986680c946 100644 --- a/www/cakephp13/files/development-app-config-core.php.patch +++ b/www/cakephp13/files/development-app-config-core.php.patch @@ -1,18 +1,18 @@ ---- app/config/core.php Mon Feb 19 13:45:27 2007 -+++ app/config/core.php Mon Feb 19 13:39:40 2007 -@@ -37,7 +37,7 @@ - * release/app/.htaccess - * release/app/webroot/.htaccess +--- app/config/core.php.orig Thu Jan 3 17:07:25 2008 ++++ app/config/core.php Thu Jan 3 17:09:11 2008 +@@ -56,7 +56,7 @@ + * + * And uncomment the App.baseUrl below: */ --// define ('BASE_URL', env('SCRIPT_NAME')); -+ define ('BASE_URL', env('SCRIPT_NAME')); +- //Configure::write('App.baseUrl', env('SCRIPT_NAME')); ++ Configure::write('App.baseUrl', env('SCRIPT_NAME')); /** - * Set debug level here: - * - 0: production -@@ -143,4 +143,4 @@ + * Uncomment the define below to use CakePHP admin routes. + * +@@ -226,4 +226,4 @@ + * ); */ - define('ACL_CLASSNAME', 'DB_ACL'); - define('ACL_FILENAME', 'dbacl' . DS . 'db_acl'); + Cache::config('default', array('engine' => 'File')); -?> \ No newline at end of file +?> diff --git a/www/cakephp13/files/pkg-install.in b/www/cakephp13/files/pkg-install.in new file mode 100644 index 000000000000..b063fb9897d9 --- /dev/null +++ b/www/cakephp13/files/pkg-install.in @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Fix up the permissions on directories and files when pkg_add is +# used to install the port +# +# Borrowed from the www/resin2 port +# + +set -e + +# Set up utilities +CHOWN=%%CHOWN%% +CHMOD=%%CHMOD%% +FIND=%%FIND%% +XARGS=%%XARGS%% + +# Set up variables +WWWOWN=%%WWWOWN%% +WWWGRP=%%WWWGRP%% +WWWDIR=%%WWWDIR%% + +if [ "$2" = "POST-INSTALL" ]; then + # We're called after the 'make install' process + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 + ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 +fi + +exit 0 |
