Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pure-ftpd for openSUSE:Factory 
checked in at 2023-04-01 19:32:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pure-ftpd (Old)
 and      /work/SRC/openSUSE:Factory/.pure-ftpd.new.9019 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pure-ftpd"

Sat Apr  1 19:32:19 2023 rev:6 rq:1076521 version:1.0.51

Changes:
--------
--- /work/SRC/openSUSE:Factory/pure-ftpd/pure-ftpd.changes      2022-08-09 
15:28:43.061687814 +0200
+++ /work/SRC/openSUSE:Factory/.pure-ftpd.new.9019/pure-ftpd.changes    
2023-04-01 19:32:34.725453510 +0200
@@ -1,0 +2,5 @@
+Mon Jan 16 11:10:54 UTC 2023 - Stefan Schubert <sch...@suse.com>
+
+- Migration of PAM settings to /usr/lib/pam.d. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ pure-ftpd.spec ++++++
--- /var/tmp/diff_new_pack.RPEEF2/_old  2023-04-01 19:32:35.353456807 +0200
+++ /var/tmp/diff_new_pack.RPEEF2/_new  2023-04-01 19:32:35.361456849 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pure-ftpd
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -115,10 +115,16 @@
 %make_install
 
 install -dD -m 0755 \
-    %{buildroot}%{_sysconfdir}/{%{name},%{name}/vhosts,pam.d,openldap/schema}
+    %{buildroot}%{_sysconfdir}/{%{name},%{name}/vhosts,openldap/schema}
 install -m 0644 pure-ftpd.conf  %{buildroot}%{_sysconfdir}/%{name}
 
+%if 0%{?suse_version} > 1500
+install -dD -m 0755 %{buildroot}%{_pam_vendordir}
+install -m 0644 %{SOURCE4} %{buildroot}%{_pam_vendordir}/pure-ftpd
+%else
+install -dD -m 0755 %{buildroot}%{_sysconfdir}/pam.d
 install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/pure-ftpd
+%endif
 
 install -m 0644 pureftpd.schema %{buildroot}%{_sysconfdir}/openldap/schema/
 
@@ -133,6 +139,18 @@
 
 %pre
 %service_add_pre %{name}.service
+%if 0%{?suse_version} > 1500
+# Prepare for migration to /usr/lib; save any old .rpmsave
+for i in pam.d/pure-ftpd ; do
+     test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i}.rpmsave.old ||:
+done
+
+%posttrans
+# Migration to /usr/lib, restore just created .rpmsave
+for i in pam.d/pure-ftpd ; do
+     test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i} ||:
+done
+%endif
 
 %preun
 %service_del_preun %{name}.service
@@ -164,7 +182,11 @@
 %dir %{_sysconfdir}/apparmor/profiles
 %dir %{_sysconfdir}/apparmor/profiles/extras
 %config %{_sysconfdir}/openldap/schema/pureftpd.schema
+%if 0%{?suse_version} > 1500
+%{_pam_vendordir}/pure-ftpd
+%else
 %config %{_sysconfdir}/pam.d/pure-ftpd
+%endif
 %config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf
 %config(noreplace) %{_sysconfdir}/apparmor/profiles/extras/usr.sbin.pure-ftpd
 

Reply via email to