1 |
%define version 1.6.0 |
%define version 1.6.0 |
2 |
%define release 6 |
%define release 15 |
3 |
%define name smeserver-dovecot |
%define name smeserver-dovecot |
4 |
|
|
5 |
|
|
15 |
Patch1: smeserver-dovecot-1.6.0-pop3.patch |
Patch1: smeserver-dovecot-1.6.0-pop3.patch |
16 |
Patch2: smeserver-dovecot-1.6.0-bz10934-Ciphers-and-TLS.patch |
Patch2: smeserver-dovecot-1.6.0-bz10934-Ciphers-and-TLS.patch |
17 |
Patch3: smeserver-dovecot-1.6.0-bz9865-use-email-to-auth.patch |
Patch3: smeserver-dovecot-1.6.0-bz9865-use-email-to-auth.patch |
18 |
|
Patch4: smeserver-dovecot-1.6.0-fix-createlinks-1.patch |
19 |
|
Patch5: smeserver-dovecot-1.6.0-bz11101-systemd.patch |
20 |
|
Patch6: smeserver-dovecot-1.6.0-bz10947-idle_notify.patch |
21 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
44 |
quota, ACL, extended logging, master user |
quota, ACL, extended logging, master user |
45 |
|
|
46 |
%changelog |
%changelog |
47 |
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-6.sme |
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-15.sme |
48 |
- add property AcceptFullEmail with anabled as default [SME: 9865] |
- cleanup /var/service/dovecot [SME: 11101] |
49 |
|
close logger and service from previous runit instance before starting systemd one |
50 |
|
|
51 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-14.sme |
52 |
|
- add systemd drop-in expand in bootstrap-console-save, console-save, post-install, post-upgrade [SME: 11101] |
53 |
|
|
54 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-13.sme |
55 |
|
- move service to systemd [SME: 11101] |
56 |
|
- add imap idle notify interval setting [SME: 10947] |
57 |
|
|
58 |
|
* Mon May 04 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-12.sme |
59 |
|
- fix typo in enabling TLSv1.2 as default [SME: 10934] |
60 |
|
|
61 |
|
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-10.sme |
62 |
|
- fix typo in 35ssl template [SME: 10934] |
63 |
|
|
64 |
|
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-9.sme |
65 |
|
- fix typo in createlinks [SME: 10932] |
66 |
|
|
67 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-8.sme |
68 |
|
- revert property names with period in it [SME: 10934] |
69 |
|
|
70 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-7.sme |
71 |
|
- add property AcceptFullEmail with enabled as default [SME: 9865] |
72 |
* this allow to login using either username or username@domain.tld |
* this allow to login using either username or username@domain.tld |
73 |
dovecot get the username part. |
dovecot get the username part. |
74 |
|
|
169 |
%patch1 -p1 |
%patch1 -p1 |
170 |
%patch2 -p1 |
%patch2 -p1 |
171 |
%patch3 -p1 |
%patch3 -p1 |
172 |
|
%patch4 -p1 |
173 |
|
%patch5 -p1 |
174 |
|
rm -rf root/var/service |
175 |
|
mkdir -p root/etc/dovecot/ssl |
176 |
|
mkdir -p root/usr/lib/systemd/system/dovecot.service.d |
177 |
|
mkdir -p root/etc/e-smith/templates/usr/lib/systemd/system/dovecot.service.d/50koozali.conf |
178 |
|
%patch6 -p1 |
179 |
|
|
180 |
%build |
%build |
181 |
perl createlinks |
perl createlinks |
185 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
186 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
187 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
188 |
|
--file /sbin/e-smith/systemd/dovecot-control 'attr(0554,root,root)'\ |
189 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
190 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
191 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
198 |
%clean |
%clean |
199 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
200 |
|
|
201 |
|
|
202 |
%pre |
%pre |
203 |
|
if [ $1 -gt 1 ] ; then |
204 |
|
if [ -e /var/service/dovecot/run ] ; then |
205 |
|
/usr/bin/sv d dovecot |
206 |
|
/usr/bin/sv d dovecot/log |
207 |
|
fi |
208 |
|
if [ -e /var/service/dovecot ] ; then |
209 |
|
rm -rf /var/service/dovecot |
210 |
|
fi |
211 |
|
|
212 |
|
fi |
213 |
%post |
%post |
214 |
|
|
215 |
%preun |
%preun |