Hello community, here is the log from the commit of package dovecot21 for openSUSE:Factory checked in at 2014-09-12 10:03:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dovecot21 (Old) and /work/SRC/openSUSE:Factory/.dovecot21.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "dovecot21" Changes: -------- --- /work/SRC/openSUSE:Factory/dovecot21/dovecot21.changes 2014-08-07 08:08:23.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.dovecot21.new/dovecot21.changes 2014-09-12 10:03:03.000000000 +0200 @@ -1,0 +2,97 @@ +Thu Sep 11 11:40:07 UTC 2014 - mrueckert@suse.de + +- also track the config files from the sieve support in the %ghost + +------------------------------------------------------------------- +Thu Sep 11 11:09:15 UTC 2014 - mrueckert@suse.de + +- for the mysql subpackage use the really provided symbol and not + just part of the package name. + +------------------------------------------------------------------- +Wed Sep 10 15:45:32 UTC 2014 - mrueckert@suse.de + +- fix typo in conflicts: s/otherprovider/otherproviders/ + +------------------------------------------------------------------- +Wed Sep 10 10:53:16 UTC 2014 - mrueckert@suse.de + +- while technically not needed, adding back conflicts on + otherprovider(subpackage) + +------------------------------------------------------------------- +Tue Sep 9 10:19:29 UTC 2014 - mrueckert@suse.de + +- add all dovecot-*.configfiles as sources + +------------------------------------------------------------------- +Mon Sep 8 23:43:20 UTC 2014 - mrueckert@suse.de + +- dont ghost the whole /etc/dovecot. on older rpms the directory is + not created in that case. we only ghost /etc/dovecot/* and have a + %dir entry for /etc/dovecot. + +------------------------------------------------------------------- +Mon Sep 8 22:23:51 UTC 2014 - mrueckert@suse.de + +- dont try to delete systemd files when not building with systemd. + +------------------------------------------------------------------- +Mon Sep 8 20:14:55 UTC 2014 - mrueckert@suse.de + +- also add dovecot config files for the other 2.x branches + +------------------------------------------------------------------- +Mon Sep 8 15:01:33 UTC 2014 - mrueckert@suse.de + +- finally found a way to preserve the configuration even over + version updates. + - have the same ghosting loop in this package as in the + unversioned package + - that way the config files are owned by oth and upgrading to a + newer version of dovecot e.g. 2.3 would also not kill the + config anymore as before. + +------------------------------------------------------------------- +Fri Sep 5 19:07:38 UTC 2014 - mrueckert@suse.de + +- added back the old style conflicts to make upgrading easier +- moved copying of the config to the unversioned package + +------------------------------------------------------------------- +Fri Sep 5 18:23:23 UTC 2014 - mrueckert@suse.de + +- move the copy part to %postun for handling the upgrading more + graceful. + +------------------------------------------------------------------- +Fri Sep 5 17:38:07 UTC 2014 - mrueckert@suse.de + +- we really need the %posttrans for reinstalling the same package + +------------------------------------------------------------------- +Fri Sep 5 16:59:52 UTC 2014 - mrueckert@suse.de + +- port changes for the shared unversioned dovecot package from the + 2.2 package + - no longer obsolete older packages. module packages require + their base package with version. the main package has a conflicts + on other providers of dovecot-implementation. + - guard the new %pre/%post snippets against missing dovecot + package + - fix https://bugzilla.redhat.com/show_bug.cgi?id=134325: dovecot + should be shut down before exchanging files. + - remove all the init script related scripts from this package. + that we we can break the build cycle more easily. + - copy the example config in post. + - split out all the things we can share with other versioned + dovecot packages. + - no longer obsolete/provide dovecot + - provide dovecot-implementation + +------------------------------------------------------------------- +Tue Jul 29 16:00:28 UTC 2014 - mrueckert@suse.de + +- use xz-devel to fix build on SLE 11 SP3 + +------------------------------------------------------------------- Old: ---- dovecot-fw dovecot.README.SuSE dovecot.init dovecot.pam dovecot.tmpfiles.d New: ---- dovecot-2.0.configfiles dovecot-2.1-pigeonhole.configfiles dovecot-2.1.configfiles dovecot-2.2-pigeonhole.configfiles dovecot-2.2.configfiles ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dovecot21.spec ++++++ --- /var/tmp/diff_new_pack.oaG09R/_old 2014-09-12 10:03:04.000000000 +0200 +++ /var/tmp/diff_new_pack.oaG09R/_new 2014-09-12 10:03:04.000000000 +0200 @@ -23,6 +23,7 @@ %define sieve_version 2.1 %define dovecot_version 2.1.17 %define dovecot_pigeonhole_docdir %{_docdir}/%{pkg_name}/dovecot-pigeonhole +%define restart_flag /var/run/%{pkg_name}/%{pkg_name}-restart-after-rpm-install %if 0%{?suse_version} > 1230 %bcond_without systemd %else @@ -46,7 +47,7 @@ BuildRequires: flex BuildRequires: libtool %if %{with lzma} -BuildRequires: lzma-devel +BuildRequires: xz-devel %endif %if %{with lz4} BuildRequires: lz4-devel @@ -84,11 +85,13 @@ %define has_systemd 1 %endif PreReq: pwdutils %insserv_prereq %fillup_prereq -Conflicts: dovecot10 dovecot11 dovecot12 dovecot-snapshot dovecot11-snapshot dovecot12-snapshot dovecot20 -Provides: dovecot = %{version}-%{release} -Obsoletes: dovecot < %{version} +Requires: dovecot +Conflicts: otherproviders(dovecot-implementation) +Conflicts: dovecot20 dovecot22 +Provides: dovecot-implementation = %{version}-%{release} %if 0%{?suse_version} >= 1010 -Recommends: %{name}-backend-mysql = %{version} %{name}-backend-pgsql = %{version} +Recommends: %{name}-backend-mysql = %{version} +Recommends: %{name}-backend-pgsql = %{version} %if %{with sqlite} Recommends: %{name}-backend-sqlite = %{version} %endif @@ -99,12 +102,12 @@ # hg clone http://hg.rename-it.nl/dovecot-2.1-pigeonhole/ %define dovecot_pigeonhole_source_dir %{pkg_name}-%{sieve_version}-pigeonhole-0.3.5 Source1: %{dovecot_pigeonhole_source_dir}.tar.bz2 -Source2: %{pkg_name}.init -Source3: %{pkg_name}.pam -Source4: %{pkg_name}.README.SuSE -Source5: %{pkg_name}-fw -Source6: dovecot.tmpfiles.d -Source7: dovecot-rpmlintrc +Source2: dovecot-rpmlintrc +Source3: dovecot-2.0.configfiles +Source4: dovecot-2.1.configfiles +Source5: dovecot-2.2.configfiles +Source6: dovecot-2.1-pigeonhole.configfiles +Source7: dovecot-2.2-pigeonhole.configfiles Summary: IMAP and POP3 Server Written Primarily with Security in Mind License: BSD-3-Clause and LGPL-2.1+ and MIT Group: Productivity/Networking/Email/Servers @@ -122,8 +125,7 @@ Requires: %{name} = %{version} Provides: dovecot-backend-mysql = %{version}-%{release} Provides: dovecot_sql_backend = %{version}-%{release} -Obsoletes: dovecot-backend-mysql < %{version} -Conflicts: dovecot10-backend-mysql dovecot11-backend-mysql dovecot12-backend-mysql dovecot-snapshot-backend-mysql dovecot11-snapshot-backend-mysql dovecot12-snapshot-backend-mysql dovecot20-backend-mysql +Conflicts: otherproviders(dovecot-backend-mysql) Summary: MySQL support for Dovecot Group: Productivity/Networking/Email/Servers @@ -142,8 +144,7 @@ Requires: %{name} = %{version} Provides: dovecot-backend-pgsql = %{version}-%{release} Provides: dovecot_sql_backend = %{version}-%{release} -Obsoletes: dovecot-backend-pgsql < %{version} -Conflicts: dovecot10-backend-pgsql dovecot11-backend-pgsql dovecot12-backend-pgsql dovecot-snapshot-backend-pgsql dovecot11-snapshot-backend-pgsql dovecot12-snapshot-backend-pgsql dovecot20-backend-pgsql +Conflicts: otherproviders(dovecot-backend-pgsql) Summary: PostgreSQL support for Dovecot Group: Productivity/Networking/Email/Servers @@ -164,8 +165,7 @@ Requires: %{name} = %{version} Provides: dovecot-backend-sqlite = %{version}-%{release} Provides: dovecot_sql_backend = %{version}-%{release} -Obsoletes: dovecot-backend-sqlite < %{version} -Conflicts: dovecot10-backend-sqlite dovecot11-backend-sqlite dovecot12-backend-sqlite dovecot-snapshot-backend-sqlite dovecot11-snapshot-backend-sqlite dovecot12-snapshot-backend-sqlite dovecot20-backend-sqlite +Conflicts: otherproviders(dovecot-backend-sqlite) Summary: SQLite support for Dovecot Group: Productivity/Networking/Email/Servers @@ -188,8 +188,7 @@ Requires: %{name} = %{version} Provides: dovecot-fts-clucene = %{version}-%{release} Provides: dovecot_fts_backend = %{version}-%{release} -Obsoletes: dovecot-fts-clucene < %{version} -Conflicts: dovecot10-fts-clucene dovecot11-fts-clucene dovecot12-fts-clucene dovecot-snapshot-fts-clucene dovecot11-snapshot-fts-clucene dovecot12-snapshot-fts-clucene +Conflicts: otherproviders(dovecot-fts-clucene) Summary: Fulltext search support via CLucene Group: Productivity/Networking/Email/Servers @@ -212,8 +211,7 @@ Requires: %{name} = %{version} Provides: dovecot-fts-solr = %{version}-%{release} Provides: dovecot_fts_backend = %{version}-%{release} -Obsoletes: dovecot-fts-solr < %{version} -Conflicts: dovecot10-fts-solr dovecot11-fts-solr dovecot12-fts-solr dovecot-snapshot-fts-solr dovecot11-snapshot-fts-solr dovecot12-snapshot-fts-solr dovecot20-fts-solr +Conflicts: otherproviders(dovecot-fts-solr) Summary: Fulltext search support via solr Group: Productivity/Networking/Email/Servers @@ -233,8 +231,7 @@ %package devel Requires: %{name} = %{version} Provides: dovecot-devel = %{version}-%{release} -Obsoletes: dovecot-devel < %{version} -Conflicts: dovecot10-devel dovecot11-devel dovecot12-devel dovecot-snapshot-devel dovecot11-snapshot-devel dovecot12-snapshot-devel dovecot20-devel +Conflicts: otherproviders(dovecot-devel) Summary: Development files for Dovecot plugins Group: Development/Libraries/C and C++ @@ -341,27 +338,9 @@ %{buildroot}%{_var}/run/%{pkg_name}/login/ \ %{buildroot}%{_var}/lib/%{pkg_name}/ -# install the init script -%if %{with systemd} -%{__install} -D -m 644 %{S:6} %{buildroot}/usr/lib/tmpfiles.d/dovecot.conf -%{__ln_s} -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{pkg_name} -%else -%{__install} -D -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/%{pkg_name} -%{__ln_s} -f %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} -%endif - -# install pam config -%{__install} -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/%{pkg_name} - # install the script to create dummy selfsigned certs %{__install} -m 0755 doc/mkcert.sh %{buildroot}%{_docdir}/%{pkg_name} %{__install} -m 0644 doc/*.cnf %{buildroot}%{_docdir}/%{pkg_name} -%{__install} -m 0644 %{S:4} %{buildroot}%{_docdir}/%{pkg_name}/README.SuSE - -# install default config -cp -av %{buildroot}%{_docdir}/%{pkg_name}/example-config/* %{buildroot}%{_sysconfdir}/%{pkg_name}/ -# the chmod breaks the lda. lets use the more open permissions -#chmod -Rv o= %{buildroot}%{_sysconfdir}/%{pkg_name}/ # additional docs for the main package %{__install} -m 0644 \ @@ -378,52 +357,96 @@ cp -av AUTHORS COPYING* INSTALL NEWS README TODO \ examples/ doc/rfc/ doc/devel \ %{buildroot}%{dovecot_pigeonhole_docdir}/ + rm %{buildroot}%{dovecot_pigeonhole_docdir}/rfc/Makefile* popd -# install firewall services -%{__install} -D -m 644 %{S:5} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{pkg_name} +for i in $RPM_SOURCE_DIR/*.configfiles ; do + echo "Creating ghost files for '$i'" + for j in $(<$i) ; do + install -D -m 0644 /dev/null %{buildroot}$j + done +done + +# clean up of things that are now in the unversioned package. +%if %{with systemd} +rm %{buildroot}%{_unitdir}/dovecot.{service,socket} +%endif +rm %{buildroot}%{_sysconfdir}/%{pkg_name}/README %pre +test -n "$FIRST_ARG" || FIRST_ARG=$1 /usr/sbin/groupadd -r %{pkg_name} &>/dev/null || : /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "User for Dovecot imapd" -d %{_var}/run/%{pkg_name} %{pkg_name} &>/dev/null || : /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "User for Dovecot login" -d %{_var}/run/%{pkg_name} dovenull &>/dev/null || : -%if %{with systemd} -%service_add_pre %{pkg_name}.service %{pkg_name}.socket -%endif - -%preun -%if %{with systemd} -%service_del_preun %{pkg_name}.service %{pkg_name}.socket -%else -%stop_on_removal %{pkg_name} -%endif +# do not let dovecot run during upgrade rhbz#134325 +if [ "$FIRST_ARG" -ge "1" ]; then + rm -f %restart_flag + %if %{with systemd} + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /bin/systemctl -a -e %{_unitdir}/%{pkg_name}.service ] ; then + /bin/systemctl is-active %{pkg_name}.service >/dev/null 2>&1 && touch %restart_flag ||: + /bin/systemctl stop %{pkg_name}.service >/dev/null 2>&1 + fi + %else + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /etc/init.d/%{pkg_name} ] ; then + /etc/init.d/%{pkg_name} status >/dev/null 2>&1 && touch %restart_flag ||: + /etc/init.d/%{pkg_name} stop >/dev/null 2>&1 + fi + %endif +fi %post /sbin/ldconfig -%if %{with systemd} -systemd-tmpfiles --create /usr/lib/tmpfiles.d/dovecot.conf || true -%service_add_post %{pkg_name}.service %{pkg_name}.socket -%endif %postun +test -n "$FIRST_ARG" || FIRST_ARG=$1 /sbin/ldconfig -%if %{with systemd} -%service_del_postun %{pkg_name}.service %{pkg_name}.socket -%else -%restart_on_update %{pkg_name} -%insserv_cleanup -%endif +# do not let dovecot run during upgrade rhbz#134325 +if [ "$FIRST_ARG" -ge "1" -a -e %restart_flag ]; then + %if %{with systemd} + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /bin/systemctl -a -e %{_unitdir}/%{pkg_name}.service ] ; then + /bin/systemctl start %{pkg_name}.service >/dev/null 2>&1 || : + fi + %else + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /etc/init.d/%{pkg_name} ] ; then + /etc/init.d/%{pkg_name} start >/dev/null 2>&1 || : + fi + %endif + rm -f %restart_flag +fi + +# do not let dovecot run during upgrade rhbz#134325 +# dovecot should be started again in %%postun, but it's not executed on reinstall +# if it was already started, restart_flag won't be here, so it's ok to test it again +%posttrans +if [ -e %restart_flag ]; then + %if %{with systemd} + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /bin/systemctl -a -e %{_unitdir}/%{pkg_name}.service ] ; then + /bin/systemctl start %{pkg_name}.service >/dev/null 2>&1 || : + fi + %else + # we get installed before the unversioned dovecot package is installed + # in that case we dont need to restart as there was no file to start us before + if [ -x /etc/init.d/%{pkg_name} ] ; then + /etc/init.d/%{pkg_name} start >/dev/null 2>&1 || : + fi + %endif + rm -f %restart_flag +fi %files %defattr(-,root,root) -%if %{with systemd} -/usr/lib/tmpfiles.d/dovecot.conf -%{_unitdir}/dovecot.service -%{_unitdir}/dovecot.socket -%else -%{_sysconfdir}/init.d/%{pkg_name} -%endif -%{_sbindir}/rc%{pkg_name} +%dir %{_sysconfdir}/%{pkg_name}/ +%ghost %config(noreplace) /etc/dovecot/* %{_sbindir}/%{pkg_name} %{_bindir}/doveadm %{_bindir}/doveconf @@ -431,10 +454,6 @@ %{_bindir}/sieve-test %{_bindir}/sievec %{_bindir}/sieve-dump -# conf -%config(noreplace) %{_sysconfdir}/%{pkg_name}/ -%config(noreplace) %{_sysconfdir}/pam.d/%{pkg_name} -%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{pkg_name} # subprocesses %dir %{_prefix}/lib/%{pkg_name} %{_prefix}/lib/%{pkg_name}/aggregator ++++++ dovecot-2.0.configfiles ++++++ /etc/dovecot/README /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-director.conf /etc/dovecot/conf.d/10-logging.conf /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/15-lda.conf /etc/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-lmtp.conf /etc/dovecot/conf.d/20-pop3.conf /etc/dovecot/conf.d/90-acl.conf /etc/dovecot/conf.d/90-plugin.conf /etc/dovecot/conf.d/90-quota.conf /etc/dovecot/conf.d/auth-checkpassword.conf.ext /etc/dovecot/conf.d/auth-deny.conf.ext /etc/dovecot/conf.d/auth-ldap.conf.ext /etc/dovecot/conf.d/auth-master.conf.ext /etc/dovecot/conf.d/auth-passwdfile.conf.ext /etc/dovecot/conf.d/auth-sql.conf.ext /etc/dovecot/conf.d/auth-static.conf.ext /etc/dovecot/conf.d/auth-system.conf.ext /etc/dovecot/conf.d/auth-vpopmail.conf.ext /etc/dovecot/dovecot-db.conf.ext /etc/dovecot/dovecot-dict-sql.conf.ext /etc/dovecot/dovecot-ldap.conf.ext /etc/dovecot/dovecot-sql.conf.ext /etc/dovecot/dovecot.conf ++++++ dovecot-2.1-pigeonhole.configfiles ++++++ /etc/dovecot/conf.d/20-managesieve.conf /etc/dovecot/conf.d/90-sieve.conf ++++++ dovecot-2.1.configfiles ++++++ /etc/dovecot/README /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-director.conf /etc/dovecot/conf.d/10-logging.conf /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/15-lda.conf /etc/dovecot/conf.d/15-mailboxes.conf /etc/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-lmtp.conf /etc/dovecot/conf.d/20-pop3.conf /etc/dovecot/conf.d/90-acl.conf /etc/dovecot/conf.d/90-plugin.conf /etc/dovecot/conf.d/90-quota.conf /etc/dovecot/conf.d/auth-checkpassword.conf.ext /etc/dovecot/conf.d/auth-deny.conf.ext /etc/dovecot/conf.d/auth-dict.conf.ext /etc/dovecot/conf.d/auth-ldap.conf.ext /etc/dovecot/conf.d/auth-master.conf.ext /etc/dovecot/conf.d/auth-passwdfile.conf.ext /etc/dovecot/conf.d/auth-sql.conf.ext /etc/dovecot/conf.d/auth-static.conf.ext /etc/dovecot/conf.d/auth-system.conf.ext /etc/dovecot/conf.d/auth-vpopmail.conf.ext /etc/dovecot/dovecot-db.conf.ext /etc/dovecot/dovecot-dict-auth.conf.ext /etc/dovecot/dovecot-dict-sql.conf.ext /etc/dovecot/dovecot-ldap.conf.ext /etc/dovecot/dovecot-sql.conf.ext /etc/dovecot/dovecot.conf ++++++ dovecot-2.2-pigeonhole.configfiles ++++++ /etc/dovecot/conf.d/20-managesieve.conf /etc/dovecot/conf.d/90-sieve-extprograms.conf /etc/dovecot/conf.d/90-sieve.conf /etc/dovecot/sieve-ldap.conf ++++++ dovecot-2.2.configfiles ++++++ /etc/dovecot/README /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-director.conf /etc/dovecot/conf.d/10-logging.conf /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/11-object-storage.conf /etc/dovecot/conf.d/15-lda.conf /etc/dovecot/conf.d/15-mailboxes.conf /etc/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-lmtp.conf /etc/dovecot/conf.d/20-pop3.conf /etc/dovecot/conf.d/90-acl.conf /etc/dovecot/conf.d/90-plugin.conf /etc/dovecot/conf.d/90-quota.conf /etc/dovecot/conf.d/auth-checkpassword.conf.ext /etc/dovecot/conf.d/auth-deny.conf.ext /etc/dovecot/conf.d/auth-dict.conf.ext /etc/dovecot/conf.d/auth-ldap.conf.ext /etc/dovecot/conf.d/auth-master.conf.ext /etc/dovecot/conf.d/auth-passwdfile.conf.ext /etc/dovecot/conf.d/auth-sql.conf.ext /etc/dovecot/conf.d/auth-static.conf.ext /etc/dovecot/conf.d/auth-system.conf.ext /etc/dovecot/conf.d/auth-vpopmail.conf.ext /etc/dovecot/dovecot-dict-auth.conf.ext /etc/dovecot/dovecot-dict-sql.conf.ext /etc/dovecot/dovecot-ldap.conf.ext /etc/dovecot/dovecot-sql.conf.ext /etc/dovecot/dovecot.conf -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de