Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329565 - mail-client/roundcube config files
Summary: mail-client/roundcube config files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 11:31 UTC by Andrii Yurchuk
Modified: 2010-09-28 05:39 UTC (History)
0 users

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 Andrii Yurchuk 2010-07-23 11:31:33 UTC
Roundcube distribution has 2 config files in regards to database and main configuration: main.inc.php.dist and db.inc.php.dist. After unpacking the distribution tarball into virtualhost directory you have to copy these 2 files to main.inc.php and db.inc.php.dist. Actually you may just rename them instead of copying, which the current ebuild actually does, but if you will not have the files main.inc.php.dist and db.inc.php.dist, you will not be able to create your configuration in Roundcube web-based installer. If you click the 'Create config' link in web-based installer and click 'Update config' button, you will get warnings instead of generated config files:

[Warning: could not read the config template file]

Currently the ebuild just renames those two config templates:

src_prepare() {
    mv config/db.inc.php{.dist,}
    mv config/main.inc.php{.dist,}
}

I suggest fixing the ebuild to actually copy them to db.inc.php and main.inc.php instead of renaming, so that the web-based installer was fully functional:

src_prepare() {
    cp config/db.inc.php{.dist,}
    cp config/main.inc.php{.dist,}
}

Reproducible: Always

Steps to Reproduce:
1. Emerge mail-client/roundcube
2. Install it with webapp-config
3. Go to it's web-based installer
4. Click 'Create config' link
5. Click 'Update config' button

Actual Results:  
The web-based configuration cannot create config files since the config files templates are not accessible

Expected Results:  
main.inc.php.dist and db.inc.php.dist are left intact so that the web-based installer could create config files from them
Comment 1 Tim Harder gentoo-dev 2010-09-28 05:39:51 UTC
Fixed in the latest revision bump.