]> git.donarmstrong.com Git - roundcube.git/commitdiff
Imported Debian patch 0.2~alpha-1
authorVincent Bernat <bernat@debian.org>
Sun, 22 Jun 2008 10:05:44 +0000 (12:05 +0200)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 17:36:43 +0000 (19:36 +0200)
15 files changed:
debian/changelog
debian/conf/apache.conf
debian/conf/lighttpd.conf
debian/control
debian/patches/correct_install_path.patch
debian/patches/disable-tinymce-spellchecker.patch [deleted file]
debian/patches/fix-too-old-php-mail-mime.patch [deleted file]
debian/patches/fix_login.patch [new file with mode: 0644]
debian/patches/messageid-headers-ordering.patch [deleted file]
debian/patches/mysql-update-fix.patch [deleted file]
debian/patches/series
debian/patches/use_packaged_tinymce.patch
debian/roundcube-core.README.Debian
debian/rules
debian/watch

index 72b02554117b2dd63040687763223ad7bed2df4f..f50281aaad30b47048986d596728c89f5dddced7 100644 (file)
@@ -1,3 +1,19 @@
+roundcube (0.2~alpha-1) experimental; urgency=low
+
+  * New upstream release
+  * Update debian/watch file to correctly consider those new releases
+  * Remove the following patches:
+      + messageid-headers-ordering
+      + mysql-update-fix
+      + disable-tinymce-spellchecker
+  * Update the following patches:
+      + correct_install_path
+      + use_packaged_tinymce
+  * Add a new patch to fix a login problem
+  * Depends on tinymce >= 3
+
+ -- Vincent Bernat <bernat@debian.org>  Sun, 22 Jun 2008 12:05:44 +0200
+
 roundcube (0.1.1-7) unstable; urgency=low
 
   * Another fix for incorrect tinymce path. This should be the last one!
index 0ab1eb3175398d5e7e5936a9f87118fa5690d71c..79e3d41b7df6e336d2960ac9d202a5aa29c90f2e 100644 (file)
@@ -1,10 +1,10 @@
 # Those aliases do not work properly with several hosts on your apache server
 # Uncomment them to use it or adapt them to your configuration
-#    Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce2/www/
+#    Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
 #    Alias /roundcube /var/lib/roundcube
 
-# Access to tinymce2 files
-<Directory "/usr/share/tinymce2/www/">
+# Access to tinymce files
+<Directory "/usr/share/tinymce/www/">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride None
       Order allow,deny
index 11e8d509ab52e3e4ae67e03303edf95ce720f7a1..d64b232cbb040e3155aa2375aae3f6f94a67efb9 100644 (file)
@@ -5,7 +5,7 @@
 alias.url += (
      "/roundcube" => "/var/lib/roundcube",
      # The following line allow to use tinymce. Look at README.Debian
-     "/roundcube/program/js/tiny_mce" => "/usr/share/tinymce2/www"
+     "/roundcube/program/js/tiny_mce" => "/usr/share/tinymce/www"
 )
 
 $HTTP["url"] =~ "^/roundcube" {
index 845f7c3cd30f36deb57f6f6b12e64eb67c20baa3..55b21d5def9297d7d9c24be5af651de50a29a86a 100644 (file)
@@ -11,7 +11,7 @@ Vcs-Browser: http://svn.debian.org/wsvn/pkg-roundcube/roundcube
 
 Package: roundcube-core
 Architecture: all
-Depends: dbconfig-common, debconf | debconf-2.0, apache2 | lighttpd | httpd, php5, php5-mcrypt, roundcube-db, php-db, php-auth, php-net-smtp, php-net-socket, php-mail-mime (>= 1.5.0), ucf, tinymce2 | tinymce (<< 3), ${misc:Depends}, libmagic1
+Depends: dbconfig-common, debconf | debconf-2.0, apache2 | lighttpd | httpd, php5, php5-mcrypt, roundcube-db, php-db, php-auth, php-net-smtp, php-net-socket, php-mail-mime (>= 1.5.0), ucf, tinymce (>= 3), ${misc:Depends}, libmagic1
 Replaces: roundcube
 Conflicts: roundcube (<< 0.1~rc2-2)
 Description: skinnable AJAX based webmail solution for IMAP servers
index 35d8eafcfdd15950cbd9247caec9f9d720053678..1acfc5a578e14a5a51abdd7689dc1fde0094d37c 100644 (file)
@@ -1,11 +1,11 @@
---- roundcubemail-0.1~rc1~dfsg.orig/index.php~ 2007-05-18 15:11:22.000000000 +0200
-+++ roundcubemail-0.1~rc1~dfsg.orig/index.php  2007-05-20 14:12:35.000000000 +0200
-@@ -47,7 +47,7 @@
+--- a/program/include/iniset.php~      2008-06-09 22:57:53.000000000 +0200
++++ a/program/include/iniset.php       2008-06-22 12:10:55.000000000 +0200
+@@ -27,7 +27,7 @@
+ define('JS_OBJECT_NAME', 'rcmail');
  
- // define global vars
- $OUTPUT_TYPE = 'html';
--$INSTALL_PATH = dirname(__FILE__);
-+$INSTALL_PATH = '/var/lib/roundcube';
- $MAIN_TASKS = array('mail','settings','addressbook','logout');
+ if (!defined('INSTALL_PATH')) {
+-  define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
++  define('INSTALL_PATH', '/var/lib/roundcube/');
+ }
  
- if (empty($INSTALL_PATH))
+ // make sure path_separator is defined
diff --git a/debian/patches/disable-tinymce-spellchecker.patch b/debian/patches/disable-tinymce-spellchecker.patch
deleted file mode 100644 (file)
index ac5a158..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- roundcube-0.1/program/js/editor.js~        2008-02-13 04:31:05.000000000 +0100
-+++ roundcube-0.1/program/js/editor.js 2008-03-07 09:53:39.000000000 +0100
-@@ -21,7 +21,7 @@
-                  accessibility_focus : false,
-                  apply_source_formatting : true,
-                  theme : 'advanced',
--                 plugins : 'emotions,media,nonbreaking,table,searchreplace,spellchecker,visualchars',
-+                 plugins : 'emotions,media,nonbreaking,table,searchreplace,visualchars',
-                  theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,emotions,charmap,code,forecolor,backcolor,fontselect,fontsizeselect, separator,undo,redo,image,media',
-                  theme_advanced_buttons2 : '',
-                  theme_advanced_buttons3 : '',
diff --git a/debian/patches/fix-too-old-php-mail-mime.patch b/debian/patches/fix-too-old-php-mail-mime.patch
deleted file mode 100644 (file)
index 61ed729..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-This patch is not used any more with php-mail-mime (>= 1.5.0).
-It is left here to help with backports. Add it back to series if needed.
-
---- roundcube/program/steps/mail/sendmail.inc  2008-03-07 09:52:40.000000000 +0100
-+++ roundcube/program/steps/mail/sendmail.inc.new      2008-03-07 11:04:33.000000000 +0100
-@@ -351,7 +351,11 @@
-   
-   // append message to sent box
-   if ($store_folder)
--    $saved = $IMAP->save_message($CONFIG[$store_target], $MAIL_MIME->getMessage());
-+    {
-+    $header_str = $MAIL_MIME->txtHeaders($headers);
-+    $msg_body = $header_str."\r\n".$MAIL_MIME->get($message_param);
-+    $saved = $IMAP->save_message($CONFIG[$store_target], $msg_body);
-+    }
-   // raise error if saving failed
-   if (!$saved)
diff --git a/debian/patches/fix_login.patch b/debian/patches/fix_login.patch
new file mode 100644 (file)
index 0000000..b731043
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/program/include/rcmail.php~      2008-06-07 21:33:07.000000000 +0200
++++ a/program/include/rcmail.php       2008-06-22 13:36:57.000000000 +0200
+@@ -474,7 +474,7 @@
+   public function autoselect_host()
+   {
+     $default_host = $this->config->get('default_host');
+-    $host = !empty($default_host) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
++    $host = isset($_POST['_host']) ? get_input_value('_host', RCUBE_INPUT_POST) : $default_host;
+     
+     if (is_array($host)) {
+       list($user, $domain) = explode('@', get_input_value('_user', RCUBE_INPUT_POST));
diff --git a/debian/patches/messageid-headers-ordering.patch b/debian/patches/messageid-headers-ordering.patch
deleted file mode 100644 (file)
index 109d2af..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
---- roundcubemail/program/steps/mail/sendmail.inc (revision 1232)\r
-+++ roundcubemail/program/steps/mail/sendmail.inc (revision 1261)\r
-@@ -211,7 +211,4 @@\r
\r
- // additional headers\r
--$headers['Message-ID'] = $message_id;\r
--$headers['X-Sender'] = $from;\r
--\r
- if ($CONFIG['http_received_header'])\r
- {\r
-@@ -224,4 +221,7 @@\r
- }\r
\r
-+$headers['Message-ID'] = $message_id;\r
-+$headers['X-Sender'] = $from;\r
-+\r
- if (!empty($CONFIG['useragent']))\r
-   $headers['User-Agent'] = $CONFIG['useragent'];\r
diff --git a/debian/patches/mysql-update-fix.patch b/debian/patches/mysql-update-fix.patch
deleted file mode 100644 (file)
index 1610b59..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- roundcubemail-0.1.1-dep/SQL/mysql.update.sql~      2008-04-05 14:49:21.000000000 +0200
-+++ roundcubemail-0.1.1-dep/SQL/mysql.update.sql       2008-04-05 18:09:10.000000000 +0200
-@@ -5,7 +5,7 @@
- ALTER TABLE `messages`
-   DROP INDEX `idx`,
--  DROP INDEX `uid`
-+  DROP INDEX `uid`;
- ALTER TABLE `cache`
-   DROP INDEX `cache_key`,
index 44004ec55df75026589f3b1ee8cc9f0975a4623a..b2c988355a845fae98586b760954cef45615ca95 100644 (file)
@@ -3,6 +3,4 @@ correct_install_path.patch
 use_packaged_tinymce.patch
 use-db-backend.patch
 correct-magic-path.patch
-disable-tinymce-spellchecker.patch
-mysql-update-fix.patch
-messageid-headers-ordering.patch
+fix_login.patch
index 9732de9e97a34c5eefd7b0d6e3a1d2a9288b831c..72643fc96312250d70bf7f898a76de4646bc093f 100644 (file)
@@ -1,13 +1,36 @@
 Index: roundcube-0.1~rc2/program/steps/mail/sendmail.inc
 ===================================================================
+--- a/program/steps/mail/sendmail.inc~ 2008-04-30 10:21:42.000000000 +0200
++++ a/program/steps/mail/sendmail.inc  2008-06-22 13:51:33.000000000 +0200
+@@ -74,7 +74,7 @@
+   
+   $last_img_pos = 0;
+-  $searchstr = 'program/js/tiny_mce/plugins/emotions/images/';
++  $searchstr = 'program/js/tiny_mce/plugins/emotions/img/';
+   // keep track of added images, so they're only added once
+   $included_images = array();
 --- roundcube-0.1~rc2.orig/program/steps/mail/sendmail.inc     2007-11-26 11:42:36.000000000 +0100
 +++ roundcube-0.1~rc2/program/steps/mail/sendmail.inc  2007-11-26 11:44:04.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/tinymce2/www/plugins/emotions/images/' . $image_name;
-       if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
+-      $img_file = INSTALL_PATH . '/' . $searchstr . $image_name;
++      $img_file = '/usr/share/tinymce/www/plugins/emotions/img/' . $image_name;
+-      if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
++      if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, $image_name))
          $OUTPUT->show_message("emoticonerror", 'error');
  
+--- a/program/steps/mail/sendmail.inc~ 2008-04-30 10:21:42.000000000 +0200
++++ a/program/steps/mail/sendmail.inc  2008-06-22 14:10:24.000000000 +0200
+@@ -102,7 +102,7 @@
+       array_push($included_images, $image_name);
+       }
+-    $body = $body_pre . 'cid:_' . $image_name . $body_post;
++    $body = $body_pre . $img_file . $body_post;
+     $last_img_pos = $pos2;
+     }
index f7735fd733d514a7810e07a2900883984db03d27..86a78c58beb454fd7d0a815039d11a644f253bc1 100644 (file)
@@ -5,12 +5,4 @@ To use tinymce editor:
  - set $rcmail_config['enable_htmleditor'] to TRUE in
    /etc/roundcube/main.inc.php
 
-RoundCube needs tinymce 2. On recent Debian systems, this package is
-provided by tinymce2 package. If you use tinymce package from etch,
-you will need to check Apache or lighttpd configuration to adapt
-paths.
-
-The spellchecker is disabled since it is not present in tinymce Debian
-package.
-
- -- Vincent Bernat <bernat@debian.org>, Tue, 20 May 2008 20:51:28 +0200
+ -- Vincent Bernat <bernat@debian.org>, Sun, 22 Jun 2008 12:13:32 +0200
index a8bf2125fce847016d808980f3a0874a87dfb1a3..fea516c1737f17407ceff2dda755c70c8586a9c1 100755 (executable)
@@ -38,11 +38,11 @@ binary-install/roundcube-core::
        # Some files are executable while not being scripts or binary...
        find $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/localization -type f -print0 | xargs -0 chmod -x
        # Remove useless file
-       rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/lib/magic
-       rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/msgimport
+       rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/*.sh
+       find $(CURDIR)/debian/roundcube-core -name '._*' -print0 | xargs -r0 rm
        # Remove files shipped in tinymce package
        rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/tiny_mce
-       dh_link -proundcube-core usr/share/tinymce2/www usr/share/roundcube/program/js/tiny_mce
+       dh_link -proundcube-core usr/share/tinymce/www usr/share/roundcube/program/js/tiny_mce
 
 clean::
        debconf-updatepo
index b8625fd7b5ed670cd7c8b562a358f90e59f481aa..ce76e07a7ecd21f88daa1e5b6852ac31c197b197 100644 (file)
@@ -1,2 +1,2 @@
 version=3
-opts="uversionmangle=s/-rc/~rc/" http://sf.net/roundcubemail/roundcubemail-([\d\.]+.*)-dep\.tar\.gz
+opts="uversionmangle=s/-(rc|alpha|beta)/~$1/" http://sf.net/roundcubemail/roundcubemail-([\d\.]+.*)-dep\.tar\.gz