From 23b37497fe5d7997af6eb6424f4a6d5ffdfc2a6b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 29 Oct 2007 21:11:52 +0000 Subject: [PATCH] New upstream version ! --- debian/README.Debian | 8 ++++- debian/changelog | 7 ++-- debian/conf/apache.conf | 12 +++++++ debian/control | 1 + debian/control.in | 1 + debian/patches/dbconfig-common_support.patch | 2 +- debian/patches/series | 1 + debian/patches/use_packaged_tinymce.patch | 37 ++++++++++++++++++++ debian/rules | 21 +++-------- 9 files changed, 70 insertions(+), 20 deletions(-) create mode 100644 debian/patches/use_packaged_tinymce.patch diff --git a/debian/README.Debian b/debian/README.Debian index 32aa70e..32c5d82 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,4 +1,10 @@ For better compatibility, the schema used for MySQL is the one targeted at MySQL 4.0, not the one for MySQL 4.1 or MySQL 5.x. - -- Vincent Bernat , Tue, 22 May 2007 21:17:27 +0200 +To use tinymce editor: + - install tinymce package + - uncomment the first block in /etc/apache*/conf.d/roundcube + - set $rcmail_config['enable_htmleditor'] to TRUE in + /etc/roundcube/main.inc.php + + -- Vincent Bernat , Mon, 29 Oct 2007 21:39:09 +0100 diff --git a/debian/changelog b/debian/changelog index 4f748ce..2b5fb6e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,11 @@ -roundcube (0.1~rc1-4) unstable; urgency=low +roundcube (0.1~rc2-1) unstable; urgency=low + * New upstream, thanks to Nicolas Stransky (Closes: #447503). This + release support tinymce as HTML editor. Look at README.Debian for more + information. * Update Galician debconf template, thanks to Jacobo Tarrio (Closes: #447943). - -- + -- Vincent Bernat Mon, 29 Oct 2007 22:08:43 +0100 roundcube (0.1~rc1-3) unstable; urgency=low diff --git a/debian/conf/apache.conf b/debian/conf/apache.conf index b4447d4..9431b56 100644 --- a/debian/conf/apache.conf +++ b/debian/conf/apache.conf @@ -1,3 +1,14 @@ +# Uncomment this to use tinymce (you need tinymce package) +# See README.Debian for more details + +# Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/ +# +# Options Indexes MultiViews FollowSymLinks +# AllowOverride None +# Order allow,deny +# allow from all +# + # This alias does not work properly with several hosts on your apache server # Uncomment it to use it # Alias /roundcube /var/lib/roundcube @@ -28,3 +39,4 @@ Order allow,deny Deny from all + diff --git a/debian/control b/debian/control index b998456..73feb4d 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Standards-Version: 3.7.2 Package: roundcube Architecture: all Depends: dbconfig-common, debconf | debconf-2.0, apache2 | httpd, php5, php5-mcrypt, roundcube-db, php-db, php-auth, php-net-smtp, php-net-socket, php-mail-mime, ucf, ${misc:Depends} +Suggests: tinymce Description: skinnable AJAX based webmail solution for IMAP servers RoundCube Webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality diff --git a/debian/control.in b/debian/control.in index 0ff756a..5691d75 100644 --- a/debian/control.in +++ b/debian/control.in @@ -10,6 +10,7 @@ Standards-Version: 3.7.2 Package: roundcube Architecture: all Depends: dbconfig-common, debconf | debconf-2.0, apache2 | httpd, php5, php5-mcrypt, roundcube-db, php-db, php-auth, php-net-smtp, php-net-socket, php-mail-mime, ucf, ${misc:Depends} +Suggests: tinymce Description: skinnable AJAX based webmail solution for IMAP servers RoundCube Webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality diff --git a/debian/patches/dbconfig-common_support.patch b/debian/patches/dbconfig-common_support.patch index 8e1f71d..ec4a2a8 100644 --- a/debian/patches/dbconfig-common_support.patch +++ b/debian/patches/dbconfig-common_support.patch @@ -6,7 +6,7 @@ -// PEAR database DSN for read/write operations -// format is db_provider://user:password@host/databse --// currentyl suported db_providers: mysql, pgsql, sqlite +-// currently supported db_providers: mysql, sqlite - -$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; -// postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail'; diff --git a/debian/patches/series b/debian/patches/series index 70787a4..bde2b5d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ dbconfig-common_support.patch correct_install_path.patch +use_packaged_tinymce.patch diff --git a/debian/patches/use_packaged_tinymce.patch b/debian/patches/use_packaged_tinymce.patch new file mode 100644 index 0000000..db835fa --- /dev/null +++ b/debian/patches/use_packaged_tinymce.patch @@ -0,0 +1,37 @@ +--- roundcube_0.1-rc2/program/js/editor.js 2007-06-09 01:47:57.000000000 +0200 ++++ roundcube_0.1-rc2/program/js/editor.js 2007-10-29 21:47:07.000000000 +0100 +@@ -27,10 +27,7 @@ + theme_advanced_buttons3 : '', + theme_advanced_toolbar_location : 'top', + theme_advanced_toolbar_align : 'left', +- extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]', +- content_css : skin_path + '/editor_content.css', +- popups_css : skin_path + '/editor_popup.css', +- editor_css : skin_path + '/editor_ui.css' ++ extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]' + }); + } + +--- roundcube_0.1-rc2/program/steps/settings/edit_identity.inc 2007-04-28 20:07:12.000000000 +0200 ++++ roundcube_0.1-rc2/program/steps/settings/edit_identity.inc 2007-10-29 21:46:33.000000000 +0100 +@@ -49,9 +49,6 @@ + $OUTPUT->include_script('tiny_mce/tiny_mce_src.js'); + $OUTPUT->add_script("tinyMCE.init({ mode : 'specific_textareas'," . + "apply_source_formatting : true," . +- "content_css : '\$__skin_path' + '/editor_content.css'," . +- "popups_css : '\$__skin_path' + '/editor_popups.css'," . +- "editor_css : '\$__skin_path' + '/editor_ui.css'," . + "theme : 'advanced'," . + "theme_advanced_toolbar_location : 'top'," . + "theme_advanced_toolbar_align : 'left'," . +--- roundcube_0.1-rc2/program/steps/mail/sendmail.inc 2007-09-26 10:13:21.000000000 +0200 ++++ roundcube_0.1-rc2/program/steps/mail/sendmail.inc 2007-10-29 22:04:20.000000000 +0100 +@@ -108,7 +108,7 @@ + if (! in_array($image_name, $included_images)) + { + // add the image to the MIME message +- $img_file = $INSTALL_PATH . '/' . $searchstr . $image_name; ++ $img_file = '/usr/share/tinymce/www/plugins/emotions/images/' . $image_name; + if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name)) + $OUTPUT->show_message("emoticonerror", 'error'); + diff --git a/debian/rules b/debian/rules index ad615aa..4d4aaea 100755 --- a/debian/rules +++ b/debian/rules @@ -8,13 +8,6 @@ include /usr/share/cdbs/1/rules/patchsys-quilt.mk # Then check manually if everything's ok binary-install/roundcube:: - # Removing PEAR classes that are provided via strd packages - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/Auth - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/DB - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/DB.php - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/Mail - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/Net - rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/lib/PEAR.php # Symlink all that is in /usr/share/roundcube to /var/lib/roundcube find debian/roundcube/usr/share/roundcube -maxdepth 1 -mindepth 1 | \ while read i; do \ @@ -34,16 +27,12 @@ binary-install/roundcube:: install -m 0644 $(CURDIR)/SQL/sqlite.initial.sql $(CURDIR)/debian/roundcube/usr/share/dbconfig-common/data/roundcube/install/sqlite install -m 0644 $(CURDIR)/SQL/sqlite.update.sql $(CURDIR)/debian/roundcube/usr/share/dbconfig-common/data/roundcube/upgrade/sqlite/0.1~rc1~dfsg-1 # Some files are executable while not being scripts or binary... - chmod -x $(CURDIR)/debian/roundcube/usr/share/roundcube/program/include/rcube_mdb2.inc - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/images/icons/plus.gif - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/common.css - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/images/display/loading.gif - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/images/buttons/up_arrow.png - chmod -x $(CURDIR)/debian/roundcube/usr/share/roundcube/program/include/rcube_db.inc - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/images/buttons/down_arrow.png - chmod -x $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/googiespell.css - chmod -x $(CURDIR)/debian/roundcube/usr/share/roundcube/program/js/googiespell.js find $(CURDIR)/debian/roundcube/usr/share/roundcube/program/localization -type f -print0 | xargs -0 chmod -x + # Remove files shipped in tinymce package + rm -rf $(CURDIR)/debian/roundcube/usr/share/roundcube/program/js/tiny_mce + for f in colorpicker.css editor_content.css editor_popup.css editor_ui.css; do \ + rm $(CURDIR)/debian/roundcube/var/lib/roundcube/skins/default/$$f; \ + done clean:: debconf-updatepo -- 2.39.2