1 |
%define version 1.6.0 |
%define version 1.6.0 |
2 |
%define release 10 |
%define release 19 |
3 |
%define name smeserver-dovecot |
%define name smeserver-dovecot |
4 |
|
|
5 |
|
|
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 |
Patch4: smeserver-dovecot-1.6.0-fix-createlinks-1.patch |
19 |
Patch5: smeserver-dovecot-1.6.0-fix-35ssl-typo.patch |
Patch5: smeserver-dovecot-1.6.0-bz11101-systemd.patch |
20 |
|
Patch6: smeserver-dovecot-1.6.0-bz10947-idle_notify.patch |
21 |
|
Patch7: smeserver-dovecot-1.6.0-bz11601-ssl-templated.patch |
22 |
|
|
23 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
45 |
quota, ACL, extended logging, master user |
quota, ACL, extended logging, master user |
46 |
|
|
47 |
%changelog |
%changelog |
48 |
|
* Sun May 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-19.sme |
49 |
|
- ssl pem update via template expand in place of copy [SME: 11601] |
50 |
|
|
51 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-18.sme |
52 |
|
- clean rsyslog syntax for dovecot [SME: 11422] |
53 |
|
|
54 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-17.sme |
55 |
|
- add Restart=always [SME: 11101] |
56 |
|
|
57 |
|
* Mon Dec 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-16.sme |
58 |
|
- fix path for event -update [SME: 11101] |
59 |
|
|
60 |
|
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-15.sme |
61 |
|
- cleanup /var/service/dovecot [SME: 11101] |
62 |
|
close logger and service from previous runit instance before starting systemd one |
63 |
|
|
64 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-14.sme |
65 |
|
- add systemd drop-in expand in bootstrap-console-save, console-save, post-install, post-upgrade [SME: 11101] |
66 |
|
|
67 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-13.sme |
68 |
|
- move service to systemd [SME: 11101] |
69 |
|
- add imap idle notify interval setting [SME: 10947] |
70 |
|
|
71 |
|
* Mon May 04 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-12.sme |
72 |
|
- fix typo in enabling TLSv1.2 as default [SME: 10934] |
73 |
|
|
74 |
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-10.sme |
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-10.sme |
75 |
- fix typo in 35ssl template [SME: 10934] |
- fix typo in 35ssl template [SME: 10934] |
76 |
|
|
184 |
%patch3 -p1 |
%patch3 -p1 |
185 |
%patch4 -p1 |
%patch4 -p1 |
186 |
%patch5 -p1 |
%patch5 -p1 |
187 |
|
rm -rf root/var/service |
188 |
|
mkdir -p root/etc/dovecot/ssl |
189 |
|
mkdir -p root/usr/lib/systemd/system/dovecot.service.d |
190 |
|
mkdir -p root/etc/e-smith/templates/usr/lib/systemd/system/dovecot.service.d/50koozali.conf |
191 |
|
%patch6 -p1 |
192 |
|
%patch7 -p1 |
193 |
|
|
194 |
%build |
%build |
195 |
perl createlinks |
perl createlinks |
199 |
(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) |
200 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
201 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
202 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
--file /sbin/e-smith/systemd/dovecot-control 'attr(0554,root,root)'\ |
|
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
|
|
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
|
203 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
204 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
205 |
|
|
209 |
%clean |
%clean |
210 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
211 |
|
|
212 |
|
|
213 |
%pre |
%pre |
214 |
|
if [ $1 -gt 1 ] ; then |
215 |
|
if [ -e /var/service/dovecot/run ] ; then |
216 |
|
/usr/bin/sv d dovecot |
217 |
|
/usr/bin/sv d dovecot/log |
218 |
|
fi |
219 |
|
if [ -e /var/service/dovecot ] ; then |
220 |
|
rm -rf /var/service/dovecot |
221 |
|
fi |
222 |
|
if [ -e /var/service/pop3 ] ; then |
223 |
|
rm -rf /var/service/pop3 |
224 |
|
fi |
225 |
|
if [ -e /var/service/pop3s ] ; then |
226 |
|
rm -rf /var/service/pop3s |
227 |
|
fi |
228 |
|
|
229 |
|
fi |
230 |
%post |
%post |
231 |
|
|
232 |
%preun |
%preun |