Summary: smserver rpm to setup roundcube, an IMAP mail client %define name smeserver-roundcube Name: %{name} %define version 0.9 %define release 4 Version: %{version} Release: %{release} Distribution: SME Server License: GPL URL: http://www.dungog.net/sme Group: SMEserver/addon Source: %{name}-%{version}.tar.gz Packager: Stephen Noble BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0 Requires: roundcube AutoReqProv: no %description smserver rpm to setup the roundcube IMAP mail client. %changelog * 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 %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-pw-remote" > root/etc/e-smith/db/configuration/defaults/roundcube/PublicAccess %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.sql /etc/rc.d/init.d/mysql.init start /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /usr/local/bin/svc -h /service/httpd-e-smith echo "" echo "see www.dungog.net/sme/webapp.php" 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)