diff options
author | Peter Volkov <pva@gentoo.org> | 2011-10-01 20:29:56 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2011-10-01 20:29:56 +0000 |
commit | 8489b5a8f92879b4db432c24a83b92269d1943f3 (patch) | |
tree | 800ecb8b4f81ab1cc339fdf8d05fe503d16a9d73 /mail-client/roundcube | |
parent | Version bump. (diff) | |
download | gentoo-2-8489b5a8f92879b4db432c24a83b92269d1943f3.tar.gz gentoo-2-8489b5a8f92879b4db432c24a83b92269d1943f3.tar.bz2 gentoo-2-8489b5a8f92879b4db432c24a83b92269d1943f3.zip |
Version bump.
(Portage version: 2.1.10.19/cvs/Linux x86_64)
Diffstat (limited to 'mail-client/roundcube')
-rw-r--r-- | mail-client/roundcube/ChangeLog | 8 | ||||
-rw-r--r-- | mail-client/roundcube/files/postinstall-en-0.6.txt | 73 | ||||
-rw-r--r-- | mail-client/roundcube/files/postupgrade-en-0.6.txt | 41 | ||||
-rw-r--r-- | mail-client/roundcube/roundcube-0.6.ebuild | 76 |
4 files changed, 197 insertions, 1 deletions
diff --git a/mail-client/roundcube/ChangeLog b/mail-client/roundcube/ChangeLog index 12c95bff5110..35e773ee50cc 100644 --- a/mail-client/roundcube/ChangeLog +++ b/mail-client/roundcube/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-client/roundcube # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/ChangeLog,v 1.57 2011/08/25 02:47:36 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/ChangeLog,v 1.58 2011/10/01 20:29:56 pva Exp $ + +*roundcube-0.6 (01 Oct 2011) + + 01 Oct 2011; Peter Volkov <pva@gentoo.org> +roundcube-0.6.ebuild, + +files/postinstall-en-0.6.txt, +files/postupgrade-en-0.6.txt: + Version bump. 25 Aug 2011; Tim Harder <radhermit@gentoo.org> -roundcube-0.5.1.ebuild, -roundcube-0.5.3.ebuild: diff --git a/mail-client/roundcube/files/postinstall-en-0.6.txt b/mail-client/roundcube/files/postinstall-en-0.6.txt new file mode 100644 index 000000000000..fc9672e909fa --- /dev/null +++ b/mail-client/roundcube/files/postinstall-en-0.6.txt @@ -0,0 +1,73 @@ +0. DATABASE SETUP + +* MySQL +------- + +For MySQL it's recommended to create the database for RoundCube with utf-8 +charset. Here's an example of the init procedure: + +# mysql +> CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; +> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost + IDENTIFIED BY 'password'; +> quit + +# mysql roundcubemail < ${MY_INSTALLDIR}/SQL/mysql.initial.sql + +* SQLite +-------- +Here is an example how you can setup the sqlite.db for roundcube: + +# sqlite -init SQL/sqlite.initial.sql sqlite.db + +Make sure your configuration points to the sqlite.db file and that the +webserver can write to the file and the directory containing the file. + +* PostgreSQL +------------ +To use RoundCube with PostgreSQL support you have to follow these +simple steps, which have to be done as the postgres system user (or +which ever is the database superuser): + +$ createuser roundcube +$ createdb -O roundcube roundcubemail +$ psql roundcubemail + +roundcubemail =# ALTER USER roundcube WITH PASSWORD 'the_new_password'; +roundcubemail =# \c - roundcube +roundcubemail => \i ${MY_INSTALLDIR}/SQL/postgres.initial.sql + + +1. ROUNDCUBE CONFIGURATION + +Modify the files in ${MY_INSTALLDIR}/config/* to suit your local environment + +Details about the config parameters can be found in the config files. +See http://trac.roundcube.net/wiki/Howto_Install for even more guidance. + + +2. PHP CONFIGURATION + + - error_reporting E_ALL & ~E_NOTICE (or lower) + - memory_limit > 16MB (increase as suitable to support large attachments) + - file_uploads enabled (for attachment upload features) + - session.auto_start disabled + - zend.ze1_compatibility_mode disabled + - suhosin.session.encrypt disabled + - mbstring.func_overload disabled + - magic_quotes_runtime disabled + + +3. WEBSERVER CONFIGURATION + +Access through your webserver to at least the following directories should be denied: + + * /conf + * /temp + * /logs + +Roundcube uses .htaccess files to protect these directories if you are using Apache; +be sure to allow override of the Limit directives to get them taken into account. + +If you are NOT using Apache, it is your responsibility to take care of the above as +needed by your webserver. diff --git a/mail-client/roundcube/files/postupgrade-en-0.6.txt b/mail-client/roundcube/files/postupgrade-en-0.6.txt new file mode 100644 index 000000000000..0ee605b0bb64 --- /dev/null +++ b/mail-client/roundcube/files/postupgrade-en-0.6.txt @@ -0,0 +1,41 @@ +Upgrade instructions for roundcube +---------------------------------- + +* Web browser instructions + +1. temporary set 'enable_installer' to true in your local config/main.inc.php +file. + +2. in your browser open +http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/installer/ +and choose "3 Test config". + +3. Let the update script/installer check your configuration and update your +config files and database schema as suggested by the updater. + +4. Make sure 'enable_installer' is set to false again. + +* Alternative update + +As an alternative to procedure outlined in "Web browser instructions" to +execute: + $ cd ${MY_SERVERCONFIGDIR}/bin + $ chmod +x bin/*.sh + $ ./bin/update.sh + $ chmod -x bin/*.sh +This will check your configuration and update your config files and database +schema as suggested by the updater. + + +* Post-Upgrade Activities + +1. Check .htaccess settings (some php settings could become required) +2. If you're using build-in addressbook, run indexing script + $ cd ${MY_SERVERCONFIGDIR}/bin + $ chmod +x bin/*.sh + $ ./bin/indexcontacts.sh. + $ chmod -x bin/*.sh +3. When upgrading from version older than 0.6-beta you should make sure your +folder settings contain namespace prefix. For example Courier users should add +INBOX. prefix to folder names in main configuration file. + diff --git a/mail-client/roundcube/roundcube-0.6.ebuild b/mail-client/roundcube/roundcube-0.6.ebuild new file mode 100644 index 000000000000..8a61e9366c7f --- /dev/null +++ b/mail-client/roundcube/roundcube-0.6.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/roundcube-0.6.ebuild,v 1.1 2011/10/01 20:29:56 pva Exp $ + +EAPI="2" + +inherit webapp depend.php + +MY_PN="${PN}mail" +MY_P="${MY_PN}-${PV/_/-}" +DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface" +HOMEPAGE="http://roundcube.net" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" + +# roundcube is GPL-licensed, the rest of the licenses here are +# for bundled PEAR components, googiespell and utf8.class.php +LICENSE="GPL-2 BSD PHP-2.02 PHP-3 MIT public-domain" +KEYWORDS="~amd64 ~x86" +IUSE="ldap mysql postgres ssl spell +sqlite" + +DEPEND="" +RDEPEND=">=dev-lang/php-5.3[crypt,iconv,json,ldap?,postgres?,session,sqlite?,sockets,ssl?,xml,unicode] + spell? ( dev-lang/php[curl,spell] ) + >=dev-php/PEAR-MDB2-2.5.0_beta3 + >=dev-php/PEAR-Mail_Mime-1.8.1 + >=dev-php/PEAR-Net_SMTP-1.4.2 + >=dev-php/PEAR-Net_IDNA2-0.1.1 + >=dev-php/PEAR-Auth_SASL-1.0.3" + +need_httpd_cgi +need_php_httpd + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + webapp_pkg_setup + + use mysql && require_php_with_any_use mysql mysqli + + # add some warnings about optional functionality + if ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external; then + ewarn "IMAP quota display will not work correctly without GD support in PHP." + ewarn "Recompile PHP with either gd or gd-external in USE if you want this feature." + ewarn + fi +} + +src_prepare() { + cp config/db.inc.php{.dist,} || die + cp config/main.inc.php{.dist,} || die +} + +src_install() { + webapp_src_preinst + dodoc CHANGELOG INSTALL README UPGRADING + + insinto "${MY_HTDOCSDIR}" + doins -r [[:lower:]]* SQL + doins .htaccess + + webapp_serverowned "${MY_HTDOCSDIR}"/logs + webapp_serverowned "${MY_HTDOCSDIR}"/temp + + webapp_configfile "${MY_HTDOCSDIR}"/config/{db,main}.inc.php + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-0.6.txt + webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en-0.6.txt + webapp_postupgrade_txt en UPGRADING + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + ewarn "When upgrading from version older than 0.6-beta you should make sure your" + ewarn "folder settings contain namespace prefix. For example Courier users should" + ewarn "add INBOX. prefix to folder names in main configuration file." +} |