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