Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cronie for openSUSE:Factory checked 
in at 2022-12-14 14:10:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cronie (Old)
 and      /work/SRC/openSUSE:Factory/.cronie.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cronie"

Wed Dec 14 14:10:42 2022 rev:87 rq:1042581 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/cronie/cronie.changes    2022-05-14 
22:54:24.331159129 +0200
+++ /work/SRC/openSUSE:Factory/.cronie.new.1835/cronie.changes  2022-12-14 
14:10:49.499439773 +0100
@@ -1,0 +2,8 @@
+Wed Dec  7 10:11:32 UTC 2022 - Stefan Schubert <sch...@suse.com>
+
+- Migration PAM settings to /usr/etc: Saving user changed
+  configuration files in /etc and restoring them while an RPM
+  update.
+- Removed update support from 4.1 vixie-cron which is really old.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cronie.spec ++++++
--- /var/tmp/diff_new_pack.92hFDb/_old  2022-12-14 14:10:50.175443250 +0100
+++ /var/tmp/diff_new_pack.92hFDb/_new  2022-12-14 14:10:50.191443332 +0100
@@ -148,34 +148,34 @@
 touch %{buildroot}%{_localstatedir}/spool/anacron/cron.weekly
 touch %{buildroot}%{_localstatedir}/spool/anacron/cron.monthly
 
-%pre -n cron
-# Check if we are doing update from 4.1 vixie-cron.
-# The -h does report garbage on vixie cron.
-check_cron_mail_feature=`%{_sbindir}/cron -h 2>&1 | %{_bindir}/grep mail`
-if [ -e %{_sbindir}/cron -a -z "${check_cron_mail_feature}" ]; then
-       touch %{_localstatedir}/run/update_from_old_cron
-       for conf in %{cron_configs} ; do
-               cp "$conf" "$conf.rpmbk"
-       done
-fi
-exit 0
+%if 0%{?suse_version} > 1500
+mkdir -p %{buildroot}%{_distconfdir}/pam.d
+mv %{buildroot}%{_sysconfdir}/pam.d/crond %{buildroot}%{_distconfdir}/pam.d/
+%endif
 
 %pre
+%if 0%{?suse_version} > 1500
+# Prepare for migration to /usr/etc; save any old .rpmsave
+for i in pam.d/crond ; do
+   test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i}.rpmsave.old ||:
+done
+%endif
 %service_add_pre cron.service
 
 %post
-# Move the old cron configurations back if we were updating
-if [ -e %{_localstatedir}/run/update_from_old_cron ]; then
-       for conf in %{cron_configs} ; do
-               mv "$conf.rpmbk" "$conf"
-       done
-       rm %{_localstatedir}/run/update_from_old_cron
-fi
 %set_permissions %{_sysconfdir}/crontab %{_bindir}/crontab
 %{fillup_only -n cron}
 %service_add_post cron.service
 exit 0
 
+%if 0%{?suse_version} > 1500
+%posttrans
+# Migration to /usr/etc, restore just created .rpmsave
+for i in pam.d/crond ; do
+   test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i} ||:
+done
+%endif
+
 %verifyscript
 %verify_permissions -e %{_sysconfdir}/crontab -e %{_bindir}/crontab
 
@@ -210,7 +210,11 @@
 %dir %attr(700,root,root) %{_localstatedir}/spool/cron
 %dir %attr(700,root,root) %{_localstatedir}/spool/cron/tabs
 %dir %{_localstatedir}/spool/cron/lastrun
+%if 0%{?suse_version} > 1500
+%{_distconfdir}/pam.d/crond
+%else
 %config %{_sysconfdir}/pam.d/crond
+%endif
 %verify(not mode) %config(noreplace) %{_sysconfdir}/crontab
 %config(noreplace) %{_sysconfdir}/cron.deny
 %{_mandir}/man1/crontab.1%{?ext_man}

Reply via email to