summaryrefslogtreecommitdiffstats
path: root/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-08-05 14:45:14 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-11 12:29:34 -0400
commitb3b55f167063417c285524ba35bd9298965b834a (patch)
tree4c918ec839222dd55d0090d03d27b9b932491c57 /sssd.spec.in
parent28bbb2ec4c5f29339488f07f63f55e5c6657e9a1 (diff)
downloadsssd-b3b55f167063417c285524ba35bd9298965b834a.tar.gz
sssd-b3b55f167063417c285524ba35bd9298965b834a.tar.xz
sssd-b3b55f167063417c285524ba35bd9298965b834a.zip
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.
Diffstat (limited to 'sssd.spec.in')
-rw-r--r--sssd.spec.in13
1 files changed, 9 insertions, 4 deletions
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