%define name smeserver-roundcube %define version 0.9 %define release 15 Summary: smserver rpm to setup roundcube, an IMAP mail client Name: %{name} Version: %{version} Release: %{release}%{?dist} Source: %{name}-%{version}.tar.gz Patch0: smeserver-roundcube-0.9-domain.patch Patch1: smeserver-roundcube-0.9-tmp_folder.patch Patch2: smeserver-roundcube-0.9-LdapAdressbooks.patch Patch3: smeserver-roundcube-0.9-calendar-junk-contextmenu.patch Patch4: smeserver-roundcube-0.9-force-https.patch License: GNU GPL version 2 URL: http://www.dungog.net/sme Group: SMEserver/addon BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-release >= 8.0 Requires: roundcube AutoReqProv: no %description smserver rpm to setup the roundcube IMAP mail client. %changelog * Sat Oct 26 2013 stephane de labrusse 0.9.15 - Change the version of roundcubemail-plugins-kolab to 3.02 : http://git.kolab.org/roundcubemail-plugins-kolab/ * Sun Oct 20 2013 stephane de labrusse 0.9.14 - Change the original https_only * Sat Oct 13 2013 stephane de labrusse 0.9.13 - Add the Kolab calendar plugin : http://git.kolab.org/roundcubemail-plugins-kolab/tree/plugins/calendar - Add the context menu for right click, very useful : http://www.tehinterweb.co.uk/roundcube/#picontextmenu - Add the "Mark as Junk 2" to kick spam to junkmail : http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2 * Sat Oct 5 2013 stephane de Labrusse 0.9.12 - Add the SME Server internal LDAP addressbooks in roundcube * Sat Sep 21 2013 Stephane de Labrusse 0.9.11 - Add carddav functionnality http://www.crash-override.net/carddav.html * Wed Jun 05 2013 Stephane de Labrusse 0.9.9 - add a tmp folder in httpd.conf * Mon Jun 03 2013 Stephane de Labrusse - requires sme8 0.9-8 * Thu Jun 28 2007 Stephen Noble - add domain property to use existing host or domain 0.9-7 * Thu Jun 21 2007 Stephen Noble - update .spec file 0.9-6 * Thu Jun 21 2007 Stephen Noble - automate config file creation - proxypass to fix https redirect bug - [0.9-5] * Fri Apr 6 2007 Stephen Noble - revert mysql password creation - [0.9-4] * Wed Feb 14 2007 Stephen Noble - remove phpinfo - simplify mysql password creation - don't alias / in httpd for nul values in URL - [0.9-3] * Thu Dec 14 2006 Stephen Noble - php_admin_value eaccelerator enabled - [0.9-2] * Tue Dec 12 2006 Stephen Noble - initial release - [0.9-1] %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build #perl createlinks mkdir -p root/etc/e-smith/db/accounts/defaults/roundcube echo "reserved" > root/etc/e-smith/db/accounts/defaults/roundcube/type mkdir -p root/etc/e-smith/db/configuration/defaults/roundcube echo "RoundCube IMAP Client" > root/etc/e-smith/db/configuration/defaults/roundcube/Name echo "global" > root/etc/e-smith/db/configuration/defaults/roundcube/PublicAccess echo "enabled" > root/etc/e-smith/db/configuration/defaults/roundcube/status echo "roundcube" > root/etc/e-smith/db/configuration/defaults/roundcube/DbName echo "roundcube" > root/etc/e-smith/db/configuration/defaults/roundcube/DbUser %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean cd .. rm -rf %{name}-%{version} %pre %preun %post /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 %postun #uninstall if [ $1 = 0 ] ; then /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /usr/local/bin/svc -h /service/httpd-e-smith fi %files -f %{name}-%{version}-filelist %defattr(-,root,root)