diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-05-19 15:38:32 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-19 15:52:01 -0400 |
commit | 319aff764c9e04270d3c59257d8971f22bd341f0 (patch) | |
tree | 659f62aca7a0f1587b04615bb92868a42e960921 /sssd.spec.in | |
parent | 897060147ddea72ecc1e86c6b7b915ff1d462f71 (diff) | |
download | sssd-319aff764c9e04270d3c59257d8971f22bd341f0.tar.gz sssd-319aff764c9e04270d3c59257d8971f22bd341f0.tar.xz sssd-319aff764c9e04270d3c59257d8971f22bd341f0.zip |
Fix spec file
Dist must be optional
Make sure to mark sssd.conf config_noreplace
Set appropriate permissions on database and pipes directories
Diffstat (limited to 'sssd.spec.in')
-rw-r--r-- | sssd.spec.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sssd.spec.in b/sssd.spec.in index 886812da5..94981b828 100644 --- a/sssd.spec.in +++ b/sssd.spec.in @@ -1,6 +1,6 @@ Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -Release: 1%{dist} +Release: 0%{?dist} Group: Applications/System Summary: System Security Services Daemon # The entire source code is GPLv3+ except replace/ which is LGPLv3+ @@ -96,6 +96,10 @@ rm -f \ $RPM_BUILD_ROOT/%{_docdir}/dhash/examples/dhash_example.c \ $RPM_BUILD_ROOT/%{_docdir}/dhash/examples/dhash_test.c +# Copy default sssd.conf file +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd +install -m600 server/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf + %clean rm -rf $RPM_BUILD_ROOT @@ -113,7 +117,12 @@ rm -rf $RPM_BUILD_ROOT %{_libexecdir}/%{servicename}/ %{_libdir}/%{name}/ %{_libdir}/ldb/memberof.so* -%{_sharedstatedir}/sss/ +%dir %{_sharedstatedir}/sss/ +%attr(700,root,root) %dir %{_sharedstatedir}/sss/db +%dir %{_sharedstatedir}/sss/pipes +%attr(700,root,root) %dir %{_sharedstatedir}/sss/pipes/private +%dir %{_sysconfdir}/sssd +%config(noreplace) %{_sysconfdir}/sssd/sssd.conf /%{_lib}/libnss_sss.so /%{_lib}/libnss_sss.so.2 /%{_lib}/libnss_sss.so.2.0.0 |