From 4ac5b75ba3ff54555064e307b5879c612c84e68a20015feb1cd64828655186b4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 21 Jun 2022 08:13:19 +0000 Subject: [PATCH] Accepting request 984101 from home:schubi2 - Moved logrotate files from user specif directory /etc/logrotate.d to vendor specif directory /usr/etc/logrotate.d. OBS-URL: https://build.opensuse.org/request/show/984101 OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=268 --- sssd.changes | 6 ++++++ sssd.spec | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/sssd.changes b/sssd.changes index fb3629c..5efcb75 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 21 06:43:27 UTC 2022 - Stefan Schubert + +- Moved logrotate files from user specif directory /etc/logrotate.d + to vendor specif directory /usr/etc/logrotate.d. + ------------------------------------------------------------------- Wed Jun 15 11:28:35 UTC 2022 - Samuel Cabrero diff --git a/sssd.spec b/sssd.spec index 9fb3446..09abdf0 100644 --- a/sssd.spec +++ b/sssd.spec @@ -404,8 +404,13 @@ b="%buildroot" mkdir -pv "$b/%_sysconfdir/sssd" "$b/%_sysconfdir/sssd/conf.d" install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf" install -d "$b/%_unitdir" +%if 0%{?suse_version} > 1500 +install -d "$b/%_distconfdir/logrotate.d" +install -m644 src/examples/logrotate "$b/%_distconfdir/logrotate.d/sssd" +%else install -d "$b/%_sysconfdir/logrotate.d" install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd" +%endif rm -Rfv "$b/%_initddir" mkdir -pv "$b/%sssdstatedir/mc" @@ -574,7 +579,11 @@ fi %attr(750,root,root) %dir %_localstatedir/log/%name/ %dir %_sysconfdir/sssd/ %config(noreplace) %_sysconfdir/sssd/sssd.conf +%if 0%{?suse_version} > 1500 +%config %_distconfdir/logrotate.d/sssd +%else %config(noreplace) %_sysconfdir/logrotate.d/sssd +%endif %dir %_sysconfdir/sssd/conf.d %config(noreplace) %_pam_confdir/sssd-shadowutils %dir %_datadir/%name/