1 |
Summary: smserver rpm to setup roundcube, an IMAP mail client |
2 |
%define name smeserver-roundcube |
3 |
Name: %{name} |
4 |
%define version 0.9 |
5 |
%define release 4 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildArchitectures: noarch |
13 |
BuildRoot: /var/tmp/%{name}-%{version} |
14 |
Requires: e-smith-release >= 7.0 |
15 |
Requires: roundcube |
16 |
BuildRequires: e-smith-devtools |
17 |
AutoReqProv: no |
18 |
|
19 |
%description |
20 |
smserver rpm to setup the roundcube IMAP mail client. |
21 |
|
22 |
%changelog |
23 |
* Fri Apr 6 2007 Stephen Noble <stephen@dungog.net> |
24 |
- revert mysql password creation |
25 |
- [0.9-4] |
26 |
|
27 |
* Wed Feb 14 2007 Stephen Noble <stephen@dungog.net> |
28 |
- remove phpinfo |
29 |
- simplify mysql password creation |
30 |
- don't alias / in httpd for nul values in URL |
31 |
- [0.9-3] |
32 |
|
33 |
* Thu Dec 14 2006 Stephen Noble <support@dungog.net> |
34 |
- php_admin_value eaccelerator enabled |
35 |
- [0.9-2] |
36 |
|
37 |
* Tue Dec 12 2006 Stephen Noble <support@dungog.net> |
38 |
- initial release |
39 |
- [0.9-1] |
40 |
|
41 |
%prep |
42 |
%setup |
43 |
|
44 |
%build |
45 |
#perl createlinks |
46 |
mkdir -p root/etc/e-smith/db/accounts/defaults/roundcube |
47 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/roundcube/type |
48 |
|
49 |
mkdir -p root/etc/e-smith/db/configuration/defaults/roundcube |
50 |
echo "RoundCube IMAP Client" > root/etc/e-smith/db/configuration/defaults/roundcube/Name |
51 |
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/roundcube/PublicAccess |
52 |
|
53 |
%install |
54 |
rm -rf $RPM_BUILD_ROOT |
55 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
56 |
rm -f %{name}-%{version}-filelist |
57 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
58 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
59 |
|
60 |
%clean |
61 |
cd .. |
62 |
rm -rf %{name}-%{version} |
63 |
|
64 |
%pre |
65 |
%preun |
66 |
|
67 |
%post |
68 |
/etc/e-smith/events/actions/initialize-default-databases |
69 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80roundcube.sql |
70 |
/etc/rc.d/init.d/mysql.init start |
71 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
72 |
/usr/local/bin/svc -h /service/httpd-e-smith |
73 |
|
74 |
echo "" |
75 |
echo "see www.dungog.net/sme/webapp.php" |
76 |
echo "current settings 'config show roundcube'..." |
77 |
/sbin/e-smith/config show roundcube |
78 |
|
79 |
%postun |
80 |
#uninstall |
81 |
if [ $1 = 0 ] ; then |
82 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
83 |
/usr/local/bin/svc -h /service/httpd-e-smith |
84 |
fi |
85 |
|
86 |
%files -f %{name}-%{version}-filelist |
87 |
%defattr(-,root,root) |
88 |
|