From 01e942850486c7651bf1de58141e7ccbc9f4c706 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 19 Feb 2014 15:40:56 +0100 Subject: SPEC: Fix packaging rpms on OSes without systemd Reviewed-by: Stephen Gallagher --- contrib/sssd.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index e0830f8f8..055de4acc 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -18,7 +18,7 @@ %define __provides_exclude_from %{python_sitearch}/.*\.so$ %endif -%if (0%{?fedora} >= 16) +%if (0%{?fedora} >= 16 || 0%{?rhel} >= 7) %global use_systemd 1 %endif @@ -585,8 +585,10 @@ rm -rf $RPM_BUILD_ROOT %attr(750,root,root) %dir %{_var}/log/%{name} %attr(711,root,root) %dir %{_sysconfdir}/sssd %ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf +%if (0%{?use_systemd} == 1) %attr(755,root,root) %dir %{_sysconfdir}/systemd/system/sssd.service.d %config(noreplace) %{_sysconfdir}/systemd/system/sssd.service.d/journal.conf +%endif %config(noreplace) %{_sysconfdir}/logrotate.d/sssd %config(noreplace) %{_sysconfdir}/rwtab.d/sssd %dir %{_datadir}/sssd -- cgit