1 |
Summary: Additional features for dovecot on SME Server |
2 |
Name: smeserver-dovecot-extras |
3 |
Version: 0.1.6 |
4 |
Release: 3%{?dist} |
5 |
License: GPL |
6 |
Group: Networking/Daemons |
7 |
Source: %{name}-%{version}.tar.gz |
8 |
Patch0: smeserver-dovecot-extras-0.1.6-Add-update-event-to-createlinks.patch |
9 |
Patch1: smeserver-dovecot-extras-0.1.6-Fix-sieve-compile.patch |
10 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
11 |
BuildArchitectures: noarch |
12 |
BuildRequires: e-smith-devtools |
13 |
BuildRequires: dovecot-pigeonhole |
14 |
|
15 |
Requires: smeserver-dovecot |
16 |
Requires: dovecot-pigeonhole |
17 |
Requires: acl |
18 |
|
19 |
%description |
20 |
Add IMAP acl (sharedmailbox) and sieve capabilities to the IMAP server |
21 |
|
22 |
%changelog |
23 |
* Wed Apr 07 2021 Brian Read <brianr@bjsystems.co.uk> 0.1.6-3.sme |
24 |
- fix up sieve compile depending on whether bayes is in use [SME: 11531] |
25 |
|
26 |
* Tue Apr 06 2021 Brian Read <brianr@bjsystems.co.uk> 0.1.6-2.sme |
27 |
- Add -update event to avoid reboot on install [SME: 11032] |
28 |
|
29 |
* Thu Nov 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1.6-1 |
30 |
- New build for Koozali SME v10 |
31 |
- exclude /us/bin dir |
32 |
|
33 |
* Tue Mar 27 2018 Daniel Berteaud <daniel@firewall-services.com> 0.1.5-1 |
34 |
- Don't set default ACL for authenticated users (daniel@firewall-services.com) |
35 |
|
36 |
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1 |
37 |
- new package built with tito |
38 |
|
39 |
* Thu Jun 8 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.3-1 |
40 |
- Add support for public mailboxes (patch from John H. Bennett III |
41 |
<bennettj@thebennetthome.com>) |
42 |
- Ignore moves from junkmail to Éléments supprimés |
43 |
|
44 |
* Mon Mar 6 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1 |
45 |
- Support spam learning by moving to/from junkmail or Junk |
46 |
|
47 |
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
48 |
- Add missing /home/e-smith/db/dovecot dir |
49 |
- Remove submission_host for sieve |
50 |
|
51 |
* Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.0.2-1 |
52 |
- Use SMTP for sieve notifications |
53 |
|
54 |
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1-1 |
55 |
- initial release |
56 |
|
57 |
%prep |
58 |
%setup -q -n %{name}-%{version} |
59 |
%patch0 -p1 |
60 |
%patch1 -p1 |
61 |
|
62 |
%build |
63 |
perl createlinks |
64 |
mkdir -p root/home/e-smith/db/dovecot |
65 |
mkdir -p root/home/e-smith/files/public/{cur,new,tmp} |
66 |
|
67 |
%install |
68 |
/bin/rm -rf $RPM_BUILD_ROOT |
69 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
70 |
/bin/rm -f %{name}-%{version}-filelist |
71 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
72 |
--dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \ |
73 |
--dir /home/e-smith/files/public 'attr(2770,root,sharedmailbox)' \ |
74 |
--dir /home/e-smith/files/public/cur 'attr(2770,root,sharedmailbox)' \ |
75 |
--dir /home/e-smith/files/public/new 'attr(2770,root,sharedmailbox)' \ |
76 |
--dir /home/e-smith/files/public/tmp 'attr(2770,root,sharedmailbox)' \ |
77 |
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \ |
78 |
--file /usr/bin/imap-postlogin 'attr(0755,root,root)' \ |
79 |
--file /usr/libexec/dovecot/learn-spam.sh 'attr(0755,root,root)' \ |
80 |
--file /usr/libexec/dovecot/learn-ham.sh 'attr(0755,root,root)' \ |
81 |
--ignoredir /usr/bin \ |
82 |
> %{name}-%{version}-filelist |
83 |
|
84 |
%files -f %{name}-%{version}-filelist |
85 |
%defattr(-,root,root) |
86 |
|
87 |
%clean |
88 |
rm -rf $RPM_BUILD_ROOT |
89 |
|
90 |
%pre |
91 |
/usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || : |
92 |
|
93 |
%post |
94 |
# Migrate the sharedmailbox dict to its new location |
95 |
if [ -e /etc/dovecot/sharedmailbox/dict.db ]; then |
96 |
mv -f /etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/sharedmailbox.db |
97 |
rm -rf /etc/dovecot/sharedmailbox |
98 |
fi |
99 |
|
100 |
%preun |
101 |
|