[SSSD] [PATCH] Spec file changes for cifs-utils plugin
Sumit Bose
sbose at redhat.com
Mon Oct 14 11:11:07 UTC 2013
and now with the patch included :-)
On Mon, Oct 14, 2013 at 01:08:39PM +0200, Sumit Bose wrote:
> Hi,
>
> as promised I created the spec file changes to include the cifs-utils
> plugin into the sssd-client package on Fedora and RHEL platforms where
> recent cifs-utils are available.
>
> bye,
> Sumit
-------------- next part --------------
From 4072d0f4c48c2e6c13d61df3b3c481b8b66b970a Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Mon, 14 Oct 2013 12:47:59 +0200
Subject: [PATCH] Spec file changes for cifs-utils plugin
---
contrib/sssd.spec.in | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 1672c90..cdcfa01 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -41,6 +41,13 @@
%define _hardened_build 1
%endif
+%if (0%{?fedora} >= 17 || 0%{?rhel} >= 7)
+ %global with_cifs_utils_plugin 1
+ %global with_cifs_utils_plugin_option
+%else
+ %global with_cifs_utils_plugin_option --disable-cifs-idmap-plugin
+%endif
+
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 0 at PRERELEASE_VERSION@%{?dist}
@@ -128,6 +135,9 @@ BuildRequires: libnl-devel
%if (0%{?use_systemd} == 1)
BuildRequires: systemd-devel
%endif
+%if (0%{?with_cifs_utils_plugin} == 1)
+BuildRequires: cifs-utils-devel
+%endif
# RHEL 5 is too old to support samba4 and the PAC responder
%if !0%{?is_rhel5}
@@ -413,6 +423,7 @@ autoreconf -ivf
--with-test-dir=/dev/shm \
%{with_ccache} \
%{with_initscript} \
+ %{with_cifs_utils_plugin_option} \
%{experimental}
make %{?_smp_mflags} all
@@ -645,6 +656,9 @@ rm -rf $RPM_BUILD_ROOT
%if !0%{?is_rhel5}
%{_libdir}/krb5/plugins/authdata/sssd_pac_plugin.so
%endif
+%if (0%{?with_cifs_utils_plugin} == 1)
+%{_libdir}/cifs-utils/cifs_idmap_sss.so
+%endif
%{_mandir}/man8/pam_sss.8*
%{_mandir}/man8/sssd_krb5_locator_plugin.8*
--
1.8.3.1
More information about the sssd-devel
mailing list