From e9950ef716b60772cef22979ef5ff6a4e2382a87 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 9 May 2012 17:03:55 +0200 Subject: [PATCH] fix socket activation again, fix in 2.1.6 is incomplete --- dovecot-2.1.6-systemdfix.patch | 12 ++++++++++++ dovecot.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 dovecot-2.1.6-systemdfix.patch diff --git a/dovecot-2.1.6-systemdfix.patch b/dovecot-2.1.6-systemdfix.patch new file mode 100644 index 0000000..e65f969 --- /dev/null +++ b/dovecot-2.1.6-systemdfix.patch @@ -0,0 +1,12 @@ +diff -up dovecot-2.1.6/src/master/service-listen.c.systemdfix dovecot-2.1.6/src/master/service-listen.c +--- dovecot-2.1.6/src/master/service-listen.c.systemdfix 2012-05-04 23:14:02.000000000 +0200 ++++ dovecot-2.1.6/src/master/service-listen.c 2012-05-09 13:07:39.827730993 +0200 +@@ -339,7 +339,7 @@ int services_listen(struct service_list + } + + #ifdef HAVE_SYSTEMD +- if (ret == 0) ++ if (ret > 0) + services_verify_systemd(service_list); + #endif + return ret; diff --git a/dovecot.spec b/dovecot.spec index 5bd99d2..e233f8c 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -3,7 +3,7 @@ Name: dovecot Epoch: 1 Version: 2.1.6 #global prever .rc6 -Release: 1%{?dist} +Release: 2%{?dist} #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2 License: MIT and LGPLv2 Group: System Environment/Daemons @@ -27,6 +27,7 @@ Patch1: dovecot-2.0-defaultconfig.patch Patch2: dovecot-1.0.beta2-mkcert-permissions.patch Patch3: dovecot-1.0.rc7-mkcert-paths.patch Patch4: dovecot-2.1-privatetmp.patch +Patch5: dovecot-2.1.6-systemdfix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel, pam-devel, zlib-devel, bzip2-devel, libcap-devel @@ -111,6 +112,7 @@ This package provides the development files for dovecot. %patch2 -p1 -b .mkcert-permissions %patch3 -p1 -b .mkcert-paths %patch4 -p1 -b .privatetmp +%patch5 -p1 -b .systemdfix sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src/plugins/fts-lucene/Makefile.in %build @@ -427,6 +429,9 @@ make check %{_libdir}/%{name}/dict/libdriver_pgsql.so %changelog +* Wed May 09 2012 Michal Hlavinka - 1:2.1.6-2 +- fix socket activation again, fix in 2.1.6 is incomplete + * Wed May 09 2012 Michal Hlavinka - 1:2.1.6-1 - v2.1.5: Using "~/" as mail_location or elsewhere failed to actually expand it to home directory.