diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-28 15:07:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-28 15:08:07 +0000 |
commit | 2f909b882e04b62efc306564821d6e67406ea2b2 (patch) | |
tree | 48a3d75536f0e8fc5fafd5c29b239543a6ba162f /main/roundcubemail/fix-dirs.patch | |
parent | c7b4b21b7b4160c862e30f0705d2c44dcedffdd9 (diff) | |
download | aports-2f909b882e04b62efc306564821d6e67406ea2b2.tar.bz2 aports-2f909b882e04b62efc306564821d6e67406ea2b2.tar.xz |
main/roundcubemail: fix config/temp/log dirs and depends
fixes #605
Diffstat (limited to 'main/roundcubemail/fix-dirs.patch')
-rw-r--r-- | main/roundcubemail/fix-dirs.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/roundcubemail/fix-dirs.patch b/main/roundcubemail/fix-dirs.patch new file mode 100644 index 000000000..e6b8ea995 --- /dev/null +++ b/main/roundcubemail/fix-dirs.patch @@ -0,0 +1,50 @@ +diff --git a/program/include/iniset.php b/program/include/iniset.php +index 92a2d90..5f7c0ad 100755 +--- a/program/include/iniset.php ++++ b/program/include/iniset.php +@@ -46,7 +46,7 @@ if (!defined('INSTALL_PATH')) { + } + + if (!defined('RCMAIL_CONFIG_DIR')) { +- define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); ++ define('RCMAIL_CONFIG_DIR', '/etc/roundcube'); + } + + // make sure path_separator is defined +diff --git a/program/include/main.inc b/program/include/main.inc +index 9206a62..85f9459 100644 +--- a/program/include/main.inc ++++ b/program/include/main.inc +@@ -1178,7 +1178,7 @@ function write_log($name, $line) + + // log_driver == 'file' is assumed here + if (empty($CONFIG['log_dir'])) +- $CONFIG['log_dir'] = INSTALL_PATH.'logs'; ++ $CONFIG['log_dir'] = '/var/log/roundcube'; + + // try to open specific log file for writing + $logfile = $CONFIG['log_dir'].'/'.$name; +diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php +index 19e1be3..d362487 100644 +--- a/program/include/rcube_config.php ++++ b/program/include/rcube_config.php +@@ -66,7 +66,7 @@ class rcube_config + + // fix paths + $this->prop['log_dir'] = $this->prop['log_dir'] ? realpath(unslashify($this->prop['log_dir'])) : INSTALL_PATH . 'logs'; +- $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : INSTALL_PATH . 'temp'; ++ $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : '/tmp'; + + // fix default imap folders encoding + foreach (array('drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox') as $folder) +--- ./installer/index.php.orig ++++ ./installer/index.php +@@ -4,7 +4,7 @@ + ini_set('display_errors', 1); + + define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../').'/'); +-define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); ++define('RCMAIL_CONFIG_DIR', '/etc/roundcube'); + + $include_path = INSTALL_PATH . 'program/lib' . PATH_SEPARATOR; + $include_path .= INSTALL_PATH . 'program' . PATH_SEPARATOR; |