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