From b3b55f167063417c285524ba35bd9298965b834a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 5 Aug 2009 14:45:14 -0400 Subject: Make socket paths a compile-time option Previously, we had hardcoded the paths for the NSS, PAM and private PAM sockets to /var/lib/sss/pipes. With this patch, we will specify the sockets with --with-pipe-path. --- sssd.spec.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'sssd.spec.in') diff --git a/sssd.spec.in b/sssd.spec.in index aa284ff66..49e266153 100644 --- a/sssd.spec.in +++ b/sssd.spec.in @@ -20,6 +20,9 @@ Requires(preun): initscripts chkconfig Requires(postun): /sbin/service %define servicename sssd +%define sssdstatedir %{_localstatedir}/lib/sss +%define dbpath %{sssdstatedir}/db +%define pipepath %{sssdstatedir}/pipes ### Build Dependencies ### @@ -58,6 +61,8 @@ services for projects like FreeIPA. %build %configure \ --without-tests \ + --with-db-path=%{dbpath} \ + --with-pipe-path=%{pipepath} \ --with-init-dir=%{_initrddir} \ --enable-nsslibdir=/%{_lib} @@ -100,10 +105,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/%{name}/ %{_libdir}/ldb/memberof.so %{_libdir}/krb5/plugins/libkrb5/* -%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 %{sssdstatedir} +%attr(700,root,root) %dir %{dbpath} +%attr(755,root,root) %dir %{pipepath} +%attr(700,root,root) %dir %{pipepath}/private %dir %{_sysconfdir}/sssd %config(noreplace) %{_sysconfdir}/sssd/sssd.conf /%{_lib}/libnss_sss.so.2 -- cgit