summaryrefslogtreecommitdiffstats
path: root/contrib/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-30 09:56:52 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-30 19:56:25 -0500
commit2a552e43581c74f51205c7141ec9f6e9542509f8 (patch)
treec412f07b0bb4c6fef72f7e7d4ae7744ef290e753 /contrib/sssd.spec.in
parentc9b2b7f3f02bf40b698c70640f151d0113736195 (diff)
downloadsssd-2a552e43581c74f51205c7141ec9f6e9542509f8.tar.gz
sssd-2a552e43581c74f51205c7141ec9f6e9542509f8.tar.xz
sssd-2a552e43581c74f51205c7141ec9f6e9542509f8.zip
SSSDConfigAPI: Move sssd.api.* to /usr/share/sssd
https://fedorahosted.org/sssd/ticket/1158
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r--contrib/sssd.spec.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index e5d12bfcb..f3ea45f02 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -235,11 +235,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
# Prepare language files
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sssd
-# Copy SSSDConfig API files
+# Prepare empty config file (needed for RHEL 5)
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
touch $RPM_BUILD_ROOT/%{_sysconfdir}/sssd/sssd.conf
-install -m444 src/config/etc/sssd.api.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.conf
-install -m444 src/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.d/
# Copy default logrotate file
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
@@ -299,9 +297,8 @@ rm -rf $RPM_BUILD_ROOT
%ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/sssd
%config(noreplace) %{_sysconfdir}/rwtab.d/sssd
-%config %{_sysconfdir}/sssd/sssd.api.conf
-%attr(755,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d
-%config %{_sysconfdir}/sssd/sssd.api.d/*
+%{_datadir}/sssd/sssd.api.conf
+%{_datadir}/sssd/sssd.api.d
%{_mandir}/man5/sssd.conf.5*
%{_mandir}/man5/sssd-ipa.5*
%{_mandir}/man5/sssd-krb5.5*