/[smecontribs]/rpms/smeserver-roundcube/contribs10/smeserver-roundcube-1.2-bz11430-plugins.patch
ViewVC logotype

Annotation of /rpms/smeserver-roundcube/contribs10/smeserver-roundcube-1.2-bz11430-plugins.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Dec 7 20:06:53 2022 UTC (22 months, 3 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-roundcube-1_2-14_el7_sme, smeserver-roundcube-1_2-13_el7_sme
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-13.sme
- fix list of plugins and add composer [SME: 11430]
  do not load in conf plugins without an actual folder.

1 jpp 1.1 diff -Nur --no-dereference smeserver-roundcube-1.2.old/root/etc/e-smith/db/configuration/defaults/roundcube/PluginsList smeserver-roundcube-1.2/root/etc/e-smith/db/configuration/defaults/roundcube/PluginsList
2     --- smeserver-roundcube-1.2.old/root/etc/e-smith/db/configuration/defaults/roundcube/PluginsList 2022-12-07 14:10:48.098000000 -0500
3     +++ smeserver-roundcube-1.2/root/etc/e-smith/db/configuration/defaults/roundcube/PluginsList 2022-12-07 14:42:32.886000000 -0500
4     @@ -1 +1 @@
5     -globaladdressbook,contextmenu,markasjunk2,vcard_attachments,newmail_notifier,emoticons,sieverules
6     +globaladdressbook,contextmenu,markasjunk,vcard_attachments,newmail_notifier,emoticons,managesieve
7     diff -Nur --no-dereference smeserver-roundcube-1.2.old/root/etc/e-smith/db/configuration/migrate/80roundcube_Plugins_Migration smeserver-roundcube-1.2/root/etc/e-smith/db/configuration/migrate/80roundcube_Plugins_Migration
8     --- smeserver-roundcube-1.2.old/root/etc/e-smith/db/configuration/migrate/80roundcube_Plugins_Migration 2022-12-07 14:10:48.098000000 -0500
9     +++ smeserver-roundcube-1.2/root/etc/e-smith/db/configuration/migrate/80roundcube_Plugins_Migration 2022-12-07 14:45:58.551000000 -0500
10     @@ -6,13 +6,25 @@
11    
12     return unless ($plugins ne '');
13    
14     -#sieverule is now used instead of
15     -# if ($plugins !~ 'managesieve')
16     -#
17     -# {
18     -# $plugins = $plugins.',managesieve';
19     -# $cdb->set_prop('roundcube','PluginsList',"$plugins");
20     -# }
21     +sieverule is now used instead of
22     +if ($plugins !~ 'managesieve')
23     + {
24     + $plugins = $plugins.',managesieve';
25     + $cdb->set_prop('roundcube','PluginsList',"$plugins");
26     + }
27     +# sieverule deprecated
28     + if ($plugins =~ 'sieverule')
29     + {
30     + $plugins =~ s/,sieverule//g;
31     + $cdb->set_prop('roundcube','PluginsList',"$plugins");
32     + }
33     +
34     +# markasjunk2 deprecated
35     + if ($plugins =~ 'markasjunk')
36     + {
37     + $plugins =~ s/markasjunk2/markasjunk/g;
38     + $cdb->set_prop('roundcube','PluginsList',"$plugins");
39     + }
40    
41     #Carddav is a really bad plugin, when available it will become usefull
42     if ($plugins =~ 'carddav')
43     diff -Nur --no-dereference smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/95PLUGINS smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/95PLUGINS
44     --- smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/95PLUGINS 2022-12-07 14:10:48.114000000 -0500
45     +++ smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/95PLUGINS 2022-12-07 15:05:38.021000000 -0500
46     @@ -9,12 +9,17 @@
47     //Then issue
48     //signal-event conf-roundcube or signal-event roundcube-update
49    
50     -//The default list is : globaladdressbook,calendar,libcalendaring,contextmenu,markasjunk2,vcard_attachments,newmail_notifier,emoticons,tasklist
51     +//The default list is : globaladdressbook,calendar,libcalendaring,contextmenu,markasjunk,vcard_attachments,newmail_notifier,emoticons,managesieve
52    
53     { use esmith::ConfigDB;
54     my $DB = esmith::ConfigDB->open_ro;
55     my $plugins = $DB->get_prop('roundcube','PluginsList') || "";
56     my @plugs = split(',',$plugins);
57     + my @plugd ;
58     + for my $p (@plugs) {
59     + push @plugd, $p if -d "/usr/share/roundcubemail/plugins/$p";
60     + }
61     + @plugs=@plugd;
62     s/^(.*)$/"\1"/ for @plugs;
63     $plugins = join(',',@plugs);
64     $OUT .= "\$config['plugins'] = array($plugins);";
65     diff -Nur --no-dereference smeserver-roundcube-1.2.old/root/usr/bin/rcplugin_update.sh smeserver-roundcube-1.2/root/usr/bin/rcplugin_update.sh
66     --- smeserver-roundcube-1.2.old/root/usr/bin/rcplugin_update.sh 2015-04-01 20:05:54.000000000 -0400
67     +++ smeserver-roundcube-1.2/root/usr/bin/rcplugin_update.sh 2022-12-07 14:22:15.296000000 -0500
68     @@ -3,11 +3,17 @@
69     /sbin/e-smith/expand-template /etc/php.ini
70     /etc/init.d/httpd-e-smith restart >/dev/null 2>&1
71     pathroundcube=$(pwd)
72     +
73     cd /usr/share/roundcubemail
74     -php /usr/share/roundcubemail/composer.phar self-update
75     -php /usr/share/roundcubemail/composer.phar update
76     -/sbin/e-smith/db configuration setprop php AllowUrlFopen off
77     -/sbin/e-smith/expand-template /etc/php.ini
78     -/etc/init.d/httpd-e-smith restart >/dev/null 2>&1
79     +# add needed ones
80     +/usr/bin/jq -r ".require.\"johndoh/contextmenu\" = \"~3.3.1\"" composer.json > tmp.json && mv -f tmp.json composer.json
81     +/usr/bin/jq -r ".require.\"johndoh/globaladdressbook\" = \"~2.1\"" composer.json > tmp.json && mv -f tmp.json composer.json
82     +
83     +
84     +COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php74 /usr/share/roundcubemail/composer.phar self-update
85     +COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php74 /usr/share/roundcubemail/composer.phar update
86     +/sbin/e-smith/db configuration setprop php74 AllowUrlFopen off
87     +/sbin/e-smith/expand-template /etc/opt/remi/php74/php.ini
88     +/usr/bin/systemctl restart php74-php-fpm >/dev/null 2>&1
89     cd $pathroundcube
90    
91     Les fichiers binaires smeserver-roundcube-1.2.old/root/usr/share/roundcubemail/composer.phar et smeserver-roundcube-1.2/root/usr/share/roundcubemail/composer.phar sont diffĂ©rents

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed