diff --git a/dovecot.prestartscript b/dovecot.prestartscript new file mode 100644 index 0000000000000000000000000000000000000000..dd954ec675e924edd038f77bf55a91958a6da053 --- /dev/null +++ b/dovecot.prestartscript @@ -0,0 +1,3 @@ +#!/bin/sh +/bin/systemctl -q is-enabled NetworkManager.service >/dev/null 2>&1 \ + && /usr/bin/nm-online -q --timeout 30 ||: diff --git a/dovecot.spec b/dovecot.spec index f28b3376ee4ecd01f38ed0a6c0e54b0d65c847ef..58e53b9ecd5353244ae53b81c8a40818dffb1f8a 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -6,7 +6,7 @@ Name: dovecot Version: 2.3.10.1 -Release: 3 +Release: 4 Summary: Dovecot Secure imap server License: MIT and LGPLv2 URL: http://www.dovecot.org/ @@ -18,6 +18,7 @@ Source2: dovecot.pam Source8: http://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-%{pigeonholever}.tar.gz Source9: dovecot.sysconfig Source10: dovecot.tmpfilesd +Source11: https://raw.githubusercontent.com/QMailToaster/dovecot/master/dovecot.prestartscript Patch6000: CVE-2015-3420.patch Patch6001: CVE-2016-8652.patch @@ -113,6 +114,7 @@ install -m 644 AUTHORS ChangeLog COPYING COPYING.LGPL INSTALL NEWS README $RPM_B cd - install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot +install -p -D -m 755 %{SOURCE11} $RPM_BUILD_ROOT%{_libexecdir}/dovecot/prestartscript install -d $RPM_BUILD_ROOT%{ssldir}/certs install -d $RPM_BUILD_ROOT%{ssldir}/private @@ -284,6 +286,9 @@ make check %changelog +* Thu Nov 5 2020 Guoshuai Sun - 2.3.10.1-4 +- Add prestartscript from github + * Tue Oct 27 2020 wangyue - 2.3.10.1-3 - Fix CVE-2020-12673 CVE-2020-12674 CVE-2020-12100