Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180796 - mail-client/squirrelmail-1.4.10a /var/local/squirrelmail/data/ doesn't exists
Summary: mail-client/squirrelmail-1.4.10a /var/local/squirrelmail/data/ doesn't exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-03 22:45 UTC by Christophe PEREZ
Modified: 2007-06-14 06:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2007-06-03 22:45:17 UTC
After upgrading my squirrelmail, I can't loggin.
/var/local/squirrelmail/data/ doesn't exist.
I know I can create it and give it right permission, but I think this is an ebuild issue, no ?
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2007-06-05 08:56:31 UTC
when you ran etc-update you merged the default config. cd to where you installed squirrelmail with webapp-config (/var/www/localhost/squirrelmail if you have USE=-vhosts) and go into the config dir and run conf.pl.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-06-05 09:31:04 UTC
Eh... If you really insist on doing this differently from upstream (yeah, /var/local is kinda stupid, would likely choose something else), then you should make the default config *usable*  - as you did in 1.5.1-r4, i.e., stick something like this to the ebuild:

<snip>
sed -i "s:'/var/local/squirrelmail/data':SM_PATH . 'data/':" config/config.php
</snip>

Plus kindly note that moving the dir outside of documentroot was done on purpose for security reasons - http://www.squirrelmail.org/wiki/DataAndAttachmentsDirectories
so if you move it back, you should use .htaccess or whatever to limit access there.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2007-06-05 09:56:59 UTC
Uh... I have no control over where YOU install the web application.  No matter what I set the default to, it doesn't matter.  YOU choose where the web root is on YOUR system.  This information is not available at the time the ebuild installs the files.  If you want this kind of feature, make a feature request with the webapp-config maintainers.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-06-05 10:05:23 UTC
Eh... the config file takes relative paths, for starters. The default config is broken for anyone, as said above, this already works correctly in 1.5.1.

Also, sure you know where it gets installed - see http://www.gentoo.org/proj/en/webapps/webapp-eclass.xml
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2007-06-14 06:14:07 UTC
Ok, it defaults now to the relative path, but I still don't like that.  I'd rather it be setup by a competent sysadmin than default like this...