1 |
%define name smeserver-roundcube |
%define name smeserver-roundcube |
2 |
%define version 0.9 |
%define version 0.9 |
3 |
%define release 15 |
%define release 16 |
4 |
|
|
5 |
Summary: smserver rpm to setup roundcube, an IMAP mail client |
Summary: smserver rpm to setup roundcube, an IMAP mail client |
6 |
Name: %{name} |
Name: %{name} |
12 |
Patch2: smeserver-roundcube-0.9-LdapAdressbooks.patch |
Patch2: smeserver-roundcube-0.9-LdapAdressbooks.patch |
13 |
Patch3: smeserver-roundcube-0.9-calendar-junk-contextmenu.patch |
Patch3: smeserver-roundcube-0.9-calendar-junk-contextmenu.patch |
14 |
Patch4: smeserver-roundcube-0.9-force-https.patch |
Patch4: smeserver-roundcube-0.9-force-https.patch |
15 |
|
Patch5: smeserver-roundcube-0.9-patch1.patch |
16 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
17 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/sme |
18 |
Group: SMEserver/addon |
Group: SMEserver/addon |
28 |
smserver rpm to setup the roundcube IMAP mail client. |
smserver rpm to setup the roundcube IMAP mail client. |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Thu Nov 5 2013 JP Pialasse <tests@pialasse.com> 0.9-16.sme |
32 |
|
- corrected bug [SME: 7981] |
33 |
|
- moved out spec file sql init and other event and actions |
34 |
|
|
35 |
* Sat Oct 26 2013 stephane de labrusse <stephdl@de-labrusse.fr> 0.9.15 |
* Sat Oct 26 2013 stephane de labrusse <stephdl@de-labrusse.fr> 0.9.15 |
36 |
- Change the version of roundcubemail-plugins-kolab to 3.02 : http://git.kolab.org/roundcubemail-plugins-kolab/ |
- Change the version of roundcubemail-plugins-kolab to 3.02 : http://git.kolab.org/roundcubemail-plugins-kolab/ |
37 |
|
|
90 |
%patch2 -p1 |
%patch2 -p1 |
91 |
%patch3 -p1 |
%patch3 -p1 |
92 |
%patch4 -p1 |
%patch4 -p1 |
93 |
|
%patch5 -p1 |
94 |
|
|
95 |
%build |
%build |
96 |
#perl createlinks |
perl createlinks |
97 |
|
# leaved here for the moment but should be in a patch, sources or createlinks |
98 |
mkdir -p root/etc/e-smith/db/accounts/defaults/roundcube |
mkdir -p root/etc/e-smith/db/accounts/defaults/roundcube |
99 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/roundcube/type |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/roundcube/type |
100 |
|
|
120 |
%preun |
%preun |
121 |
|
|
122 |
%post |
%post |
123 |
/etc/e-smith/events/actions/initialize-default-databases |
|
|
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80roundcube |
|
|
/etc/rc.d/init.d/mysql.init start |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/sbin/e-smith/expand-template /opt/roundcube/config/db.inc.php |
|
|
/sbin/e-smith/expand-template /opt/roundcube/config/main.inc.php |
|
|
/usr/local/bin/svc -h /service/httpd-e-smith |
|
|
#load the mysql Table of plugins |
|
|
/usr/bin/mysql roundcube < /opt/roundcube/plugins/carddav/dbinit/mysql.sql |
|
|
/usr/bin/mysql roundcube < /opt/roundcube/plugins/calendar/drivers/database/sql/mysql.sql |
|
|
/usr/bin/mysql roundcube < /opt/roundcube/plugins/calendar/drivers/kolab/SQL/mysql.sql |
|
|
|
|
|
#show the "config show roundcube" |
|
|
echo "" |
|
|
echo "see http://wiki.contribs.org/RoundCube" |
|
|
echo "current settings 'config show roundcube'..." |
|
|
/sbin/e-smith/config show roundcube |
|
124 |
|
|
125 |
%postun |
%postun |
126 |
#uninstall |
#uninstall |