diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2006-09-16 01:23:16 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2006-09-16 01:23:16 +0200 |
commit | 5e0469182c13f52184751dcac2710c0516671a9c (patch) | |
tree | b5b8f7e2c2580a5eb27b3ad52bda9f6c12d2a540 | |
parent | add my release of clamassassin to add only 3 dash instead of 5 (diff) | |
download | portage-5e0469182c13f52184751dcac2710c0516671a9c.tar.xz |
Add rouncube ebuild (svn)
-rw-r--r-- | www-apps/roundcube/Manifest | 11 | ||||
-rw-r--r-- | www-apps/roundcube/files/digest-roundcube-9999 | 1 | ||||
-rw-r--r-- | www-apps/roundcube/files/postinstall-en.txt | 55 | ||||
-rw-r--r-- | www-apps/roundcube/roundcube-9999.ebuild | 111 |
4 files changed, 178 insertions, 0 deletions
diff --git a/www-apps/roundcube/Manifest b/www-apps/roundcube/Manifest new file mode 100644 index 00000000..b1666ca4 --- /dev/null +++ b/www-apps/roundcube/Manifest @@ -0,0 +1,11 @@ +AUX postinstall-en.txt 1665 RMD160 843b4d96345577a74d42d0a69c7d92ff5d82c830 SHA1 ce763e5f12c21b325035418ffc140ffdf6ec6a0c SHA256 29c3d7d6b13b68a6a8e9ca93defc0b6f36a2d4e638ed9421b41d5e3a57eadb2b +MD5 97fff2d63553cb30c5640e900d9e9574 files/postinstall-en.txt 1665 +RMD160 843b4d96345577a74d42d0a69c7d92ff5d82c830 files/postinstall-en.txt 1665 +SHA256 29c3d7d6b13b68a6a8e9ca93defc0b6f36a2d4e638ed9421b41d5e3a57eadb2b files/postinstall-en.txt 1665 +EBUILD roundcube-9999.ebuild 3352 RMD160 f33335f3c1a4d4e8906aa9443515daacf02e23cb SHA1 8d598dd8651a6c6a6f7b62e281990f1439d9199f SHA256 1e821514b875620bdd79c1a8870104aa0507d8c24a966b3c1ae2b4c14e2a6bf3 +MD5 84d77d7079abcdf5a9a2f997c73e4ef7 roundcube-9999.ebuild 3352 +RMD160 f33335f3c1a4d4e8906aa9443515daacf02e23cb roundcube-9999.ebuild 3352 +SHA256 1e821514b875620bdd79c1a8870104aa0507d8c24a966b3c1ae2b4c14e2a6bf3 roundcube-9999.ebuild 3352 +MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-roundcube-9999 1 +RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-roundcube-9999 1 +SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-roundcube-9999 1 diff --git a/www-apps/roundcube/files/digest-roundcube-9999 b/www-apps/roundcube/files/digest-roundcube-9999 new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/www-apps/roundcube/files/digest-roundcube-9999 @@ -0,0 +1 @@ + diff --git a/www-apps/roundcube/files/postinstall-en.txt b/www-apps/roundcube/files/postinstall-en.txt new file mode 100644 index 00000000..f5279f70 --- /dev/null +++ b/www-apps/roundcube/files/postinstall-en.txt @@ -0,0 +1,55 @@ +Almost done! + +1. Setup the database tables: + + For MySQL: + + New install: + Create the database: + mysql -u root -p create DB_NAME + + Create the needed tables: + mysql -u root -p < /usr/share/webapps/roundcube-svn/VERSION/sqlscripts/mysql/VERSION_create.sql DB_NAME + + Create roundcube_webmail MySQL user: + mysql -u root -p -e "GRANT ALL ON DB_NAME.* TO DB_USER@localhost IDENTIFIED BY 'DB_PASSWORD';FLUSH PRIVILEGES;" + + + Update from 0.1-20051007: + mysql -u root -p < /usr/share/webapps/roundcube-svn/VERSION/sqlscripts/mysql/0.1-20051007_to_VERSION.sql DB_NAME + + + For SQLite: + + New install: + sqlite -init /usr/share/webapps/roundcube-svn/VERSION/sqlscripts/sqlite/VERSION_create.sql DB_NAME + + + For PostgreSQL: + + New install: + Create roundcube_webmail PostgreSQL user:: + createuser DB_USER + + Create the database: + createdb -O DB_USER DB_NAME + + Create the needed tables: + psql DB_NAME + DB_NAME =# ALTER USER DB_USER WITH PASSWORD 'DB_PASSWORD'; + DB_NAME =# \c - DB_NAME + DB_NAME => \i /usr/share/webapps/roundcube-svn/VERSION/sqlscripts/pqsql/VERSION_create.sql + + +2. Edit the files: db.inc.php and main.inc.php in the config sub-directory of +the roundcube_webmail installation. In order to connect to the database you'll +need to change the following line in db.inc.php to look something like this: + +For MySQL: + $rcmail_config['db_dsnw'] = 'mysql://roundcube:roundcube@localhost/roundcube'; + +For SQLite: + $rcmail_config['db_dsnw'] = 'sqlite://./sqlite.db?mode=0646'; + + +3. Finally, point your browser to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} diff --git a/www-apps/roundcube/roundcube-9999.ebuild b/www-apps/roundcube/roundcube-9999.ebuild new file mode 100644 index 00000000..35019cd2 --- /dev/null +++ b/www-apps/roundcube/roundcube-9999.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit subversion webapp eutils + +ESVN_REPO_URI="https://svn.roundcube.net/trunk/roundcubemail" +ESVN_PROJECT="roundcubemail" + +DESCRIPTION="A browser-based multilingual IMAP client using AJAX - (sources from SVN)" +HOMEPAGE="http://www.roundcube.net" +SRC_URI="" + +LICENSE="GPL-2" +KEYWORDS="~x86" + +S=${WORKDIR}/${ESVN_PROJECT} + +IUSE="mysql postgresql sqlite" + +RDEPEND="mysql? (>=dev-db/mysql-4) + sqlite? (dev-db/sqlite) + postgresql? (dev-db/postgresql) + !mysql? (!sqlite(!postgresql(dev-db/mysql))) + virtual/httpd-php + dev-php/PEAR-DB" + +pkg_setup() { + eerror "This is a LIVE SVN ebuild." + eerror "That means there are NO promises it will work." + eerror "If it fails to build, FIX THE CODE YOURSELF" + eerror "before reporting any issues." + if use mysql ; then + if ! built_with_use virtual/httpd-php mysql ; then + eerror "PHP is missing MySQL support." + eerror "Please add 'mysql' to your USE flags, and re-emerge PHP." + die "PHP needs mysql support" + fi + fi + webapp_pkg_setup +} + +src_unpack() { + subversion_src_unpack + mv ${S}/config/db.inc.php.dist ${S}/config/db.inc.php + mv ${S}/config/main.inc.php.dist ${S}/config/main.inc.php + cd "${S}" + find . -type d -name "CVS" -exec rm -rf "{}" ";" 1>/dev/null 2>&1 +} + +src_install () { + webapp_src_preinst + + cd "${S}" + + local docs="CHANGELOG README UPGRADING" + + # handle documentation files + # + # NOTE that doc files go into /usr/share/doc as normal; they do NOT + # get installed per vhost! + dodoc ${docs} + for foo in ${docs} INSTALL; do + rm -f ${foo} + done + + # copy the app's main files + # + einfo "Installing main files" + cp -R . ${D}/${MY_HTDOCSDIR} + rm -rf ${D}/${MY_HTDOCSDIR}/SQL + + # Directories needed to be owned by web server + # + webapp_serverowned ${MY_HTDOCSDIR}/logs + webapp_serverowned ${MY_HTDOCSDIR}/temp + + # add the post-installation instructions + # + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + + # install the SQL scripts available to us + # NOTE: We support all the differend SQL backends + # + if use mysql ; then + webapp_sqlscript mysql SQL/mysql.initial.sql + cp SQL/mysql.update.sql ${T}/mysql.update-0.1-20051007-to-${PV}.sql + webapp_sqlscript mysql ${T}/mysql.update-0.1-20051007-to-${PV}.sql 0.1-20051007 + fi + if use postgresql ; then + webapp_sqlscript postgres SQL/postgres.initial.sql + fi + if use sqlite ; then + webapp_sqlscript sqlite SQL/sqlite.initial.sql + fi + + # Identify the configuration files that this app uses + # + webapp_configfile ${MY_HTDOCSDIR}/config/db.inc.php + webapp_configfile ${MY_HTDOCSDIR}/config/main.inc.php + + # all done + # + # now we let the eclass strut its stuff ;-) + # + webapp_src_install +} + +pkg_postinst () { + webapp_pkg_postinst +} |