freebsd-ports/mail/squirrelmail/files/patch-config-config_default.php
Edwin Groothuis 5140d21c9d mail/squirrelmail - Port Docs in wrong location
Installation of mail/squirrelmail places the ports documentation
	in PREFIX/squirrelmail, and you are not able to not install
	the documentation with NOPORTDOCS.

    - installs all documentation to the DOCSDIR directory
     - fixes security of the port by moving the attachment
       and user preferences out of the web servers document
       root (moves default data_dir & attachment_dir from
       SQUIRRELDIR/data to sub-directorys under
       /var/spool/squirrelmail) as recommended on the
       SquirrelMail web site.
     - adds a periodic/daily script to clean the attachment
       directory of abandoned files (disabled by default)
     - location of squirrelmail can be set by either defining
       SQUIRRELDIR or WITHOUT_WWWDIR when patching and installing
       the port.
     - BENTO FIX: The /var/spool/squirrelmail directory is
       created by pkg-install, but it wasn't being uninstalled.
       Connditionalized the creation of this directory depending
       on how the BATCH variable is set. A message in pkg-deinstall
       advises the port user to remove it if no longer needed.

PR:		ports/50840
Submitted by:	Scot W. Hetzel <hetzels@westbend.net>
Approved by:	Maintainer timeout
2004-01-13 09:14:24 +00:00

20 lines
618 B
PHP

--- config/config_default.php.orig Thu Aug 21 03:14:08 2003
+++ config/config_default.php Tue Jan 13 00:57:57 2004
@@ -220,7 +220,7 @@
* $data_dir = SM_PATH . 'data/';
*/
global $data_dir;
-$data_dir = SM_PATH . 'data/';
+$data_dir = '/var/spool/squirrelmail/pref/';
/**
* Path to directory used for storing attachments while a mail is
@@ -236,7 +236,7 @@
* + It should probably be another directory than data_dir.
*/
global $attachment_dir;
-$attachment_dir = "$data_dir";
+$attachment_dir = '/var/spool/squirrelmail/attach/';
/* Hash level used for data directory. */
global $dir_hash_level;