1 |
%define version 1.4.0 |
2 |
%define release 1 |
3 |
%define name smeserver-dovecot |
4 |
|
5 |
|
6 |
Summary: Dovecot IMAP server integration |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
|
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildArchitectures: noarch |
16 |
BuildRequires: e-smith-devtools |
17 |
|
18 |
Requires: e-smith-base >= 5.2.0 |
19 |
Requires: dovecot >= 2.0.9 |
20 |
Requires: dovecot-pigeonhole >= 2.0.9 |
21 |
Requires: acl |
22 |
|
23 |
Provides: e-smith-imap |
24 |
Obsoletes: e-smith-imap |
25 |
|
26 |
%description |
27 |
Configure the dovecot IMAP server with sieve scripts support, |
28 |
quota, ACL, extended logging, master user |
29 |
|
30 |
%changelog |
31 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
32 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
33 |
|
34 |
* Tue Feb 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1 |
35 |
- Pass the recipient variable to dovcot-lda |
36 |
|
37 |
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1 |
38 |
- initial release |
39 |
|
40 |
%prep |
41 |
%setup -q -n %{name}-%{version} |
42 |
|
43 |
%build |
44 |
perl createlinks |
45 |
|
46 |
%install |
47 |
/bin/rm -rf $RPM_BUILD_ROOT |
48 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
49 |
/bin/rm -f %{name}-%{version}-filelist |
50 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
51 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
52 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
53 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
54 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
55 |
--dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \ |
56 |
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \ |
57 |
--file /usr/bin/imap-postlogin 'attr(0755,root,root)' \ |
58 |
> %{name}-%{version}-filelist |
59 |
|
60 |
%files -f %{name}-%{version}-filelist |
61 |
%defattr(-,root,root) |
62 |
|
63 |
%clean |
64 |
rm -rf $RPM_BUILD_ROOT |
65 |
|
66 |
%pre |
67 |
/usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || : |
68 |
|
69 |
%post |
70 |
|
71 |
%preun |
72 |
|