From 04b3f78d4890a40db4116a62539b5a2cd7b296103bff8cd55b054ac7b4e00da5 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Jan 2023 14:36:50 +0000 Subject: [PATCH] Accepting request 1046445 from home:schubi2:pam_usr_etc - Migration of PAM settings to /usr/lib/pam.d. OBS-URL: https://build.opensuse.org/request/show/1046445 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=265 --- squid.changes | 5 +++++ squid.spec | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/squid.changes b/squid.changes index a59b1af..4de51fb 100644 --- a/squid.changes +++ b/squid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 3 08:24:05 UTC 2023 - Stefan Schubert + +- Migration of PAM settings to /usr/lib/pam.d. + ------------------------------------------------------------------- Thu Sep 15 10:41:14 UTC 2022 - Stefan Schubert diff --git a/squid.spec b/squid.spec index 3a8a109..4efad34 100644 --- a/squid.spec +++ b/squid.spec @@ -1,7 +1,7 @@ # # spec file for package squid # -# 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 @@ -201,7 +201,12 @@ mv %{buildroot}%{_sbindir}/cachemgr.cgi %{buildroot}/%{_libdir}/%{name} install -dpm 755 doc/contrib install %{SOURCE6} doc/contrib +%if 0%{?suse_version} > 1500 +mkdir -p %{buildroot}%{_pam_vendordir} +install -Dpm 644 %{SOURCE5} %{buildroot}%{_pam_vendordir}/%{name} +%else install -Dpm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/%{name} +%endif rm -rf %{buildroot}%{squidconfdir}/errors for i in errors/*; do @@ -272,7 +277,7 @@ fi %service_add_pre %{name}.service %if 0%{?suse_version} > 1500 # Prepare for migration to /usr/etc; save any old .rpmsave -for i in logrotate.d/%{name} ; do +for i in logrotate.d/%{name} pam.d/%{name} ; do test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||: done %endif @@ -280,7 +285,7 @@ done %if 0%{?suse_version} > 1500 %posttrans # Migration to /usr/etc, restore just created .rpmsave -for i in logrotate.d/%{name} ; do +for i in logrotate.d/%{name} pam.d/%{name} ; do test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||: done %endif @@ -346,7 +351,11 @@ fi %config %{squidconfdir}/errorpage.css.default %config %{squidconfdir}/%{name}.conf.default %config %{squidconfdir}/%{name}.conf.documented +%if 0%{?suse_version} > 1500 +%{_pam_vendordir}/%{name} +%else %config %{_sysconfdir}/pam.d/%{name} +%endif %dir %{_datadir}/%{name} %dir %{_datadir}/snmp %dir %{_datadir}/snmp/mibs