summaryrefslogtreecommitdiffstats
path: root/contrib/sssd.spec.in
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-02-19 15:40:56 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-20 16:34:45 +0100
commit01e942850486c7651bf1de58141e7ccbc9f4c706 (patch)
treed07ae68acf8dda6a15d7858168c96918ac86da4f /contrib/sssd.spec.in
parent6d4574a8dd1a9cafbb15631e7d01bdf6e67f821b (diff)
downloadsssd-01e942850486c7651bf1de58141e7ccbc9f4c706.tar.gz
sssd-01e942850486c7651bf1de58141e7ccbc9f4c706.tar.xz
sssd-01e942850486c7651bf1de58141e7ccbc9f4c706.zip
SPEC: Fix packaging rpms on OSes without systemd
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r--contrib/sssd.spec.in4
1 files changed, 3 insertions, 1 deletions
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