2010-03-08 18:24:35 +01:00
|
|
|
#
|
2011-01-18 12:05:50 +01:00
|
|
|
# spec file for package sssd
|
2010-03-08 18:24:35 +01:00
|
|
|
#
|
2011-01-07 13:17:04 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-03-08 18:24:35 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: sssd
|
2011-07-28 13:47:45 +02:00
|
|
|
Version: 1.5.11
|
2011-08-02 13:56:20 +02:00
|
|
|
Release: 2
|
2010-03-08 18:24:35 +01:00
|
|
|
Group: System/Daemons
|
|
|
|
Summary: System Security Services Daemon
|
2010-04-01 18:01:33 +02:00
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
Url: https://fedorahosted.org/sssd/
|
2010-09-03 16:48:38 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2010-08-30 11:22:01 +02:00
|
|
|
Source1: baselibs.conf
|
2011-08-02 11:16:11 +02:00
|
|
|
Patch1: 0001-sss_client-avoid-leaking-file-descriptors.patch
|
|
|
|
Patch2: 0002-Request-password-control-unconditionally-during-bind.patch
|
|
|
|
Patch3: 0003-Allow-LDAP-to-decide-when-an-expiration-warning-is-w.patch
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
2010-04-01 18:01:33 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%define servicename sssd
|
|
|
|
%define sssdstatedir %{_localstatedir}/lib/sss
|
|
|
|
%define dbpath %{sssdstatedir}/db
|
|
|
|
%define pipepath %{sssdstatedir}/pipes
|
2011-01-19 10:36:47 +01:00
|
|
|
%define pubconfpath %{sssdstatedir}/pubconf
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2011-03-30 11:48:40 +02:00
|
|
|
# SLES11 doesn't know the python_* macros
|
|
|
|
%if %suse_version <= 1110
|
|
|
|
%define python_sitelib %py_sitedir
|
|
|
|
%define python_sitearch %py_sitedir
|
|
|
|
%endif
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
### Build Dependencies ###
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: libtalloc-devel
|
|
|
|
BuildRequires: libtevent-devel
|
|
|
|
BuildRequires: libtdb-devel
|
|
|
|
BuildRequires: libldb-devel
|
2010-09-03 16:48:38 +02:00
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxml2
|
|
|
|
BuildRequires: libcares-devel
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRequires: dbus-1-devel
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: python-devel
|
2010-09-03 16:48:38 +02:00
|
|
|
BuildRequires: bind-utils
|
|
|
|
BuildRequires: nscd
|
2010-11-16 12:12:19 +01:00
|
|
|
BuildRequires: libpath_utils-devel
|
|
|
|
BuildRequires: libdhash-devel
|
|
|
|
BuildRequires: libini_config-devel
|
|
|
|
BuildRequires: libcollection-devel
|
|
|
|
BuildRequires: libref_array-devel
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: libnl-1_1-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libnl-devel
|
|
|
|
%endif
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Provides a set of daemons to manage access to remote directories and
|
|
|
|
authentication mechanisms. It provides an NSS and PAM interface toward
|
|
|
|
the system and a pluggable backend system to connect to multiple different
|
|
|
|
account sources. It is also the basis to provide client auditing and policy
|
|
|
|
services for projects like FreeIPA.
|
|
|
|
|
|
|
|
%package ipa-provider
|
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
Summary: FreeIPA provider plugin for sssd
|
|
|
|
Group: System/Daemons
|
|
|
|
Requires: sssd = %{version}
|
|
|
|
|
|
|
|
%description ipa-provider
|
|
|
|
This package provide the FreeIPA provider plugin for the System Security
|
|
|
|
Services Daemon (sssd).
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
Summary: Commandline tools for sssd
|
|
|
|
Group: System/Management
|
|
|
|
Requires: sssd = %{version}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
The packages contains commandline tools for managing users and groups using
|
|
|
|
the "local" id provider of the System Security Services Daemon (sssd).
|
|
|
|
|
|
|
|
%package -n python-sssd-config
|
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
Summary: Python API for configuring sssd
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
%description -n python-sssd-config
|
|
|
|
Provide python module to access and manage configuration of the System
|
|
|
|
Security Services Daemon (sssd).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-08-02 11:16:11 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -p1
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%build
|
2010-08-30 11:22:01 +02:00
|
|
|
autoreconf
|
2010-11-16 12:12:19 +01:00
|
|
|
export LDB_LIBS="-lldb"
|
2010-03-08 18:24:35 +01:00
|
|
|
export LDB_CFLAGS="-I/usr/include"
|
2011-08-02 11:16:11 +02:00
|
|
|
|
|
|
|
# help configure find nscd
|
|
|
|
export PATH=$PATH:/usr/sbin/
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%configure \
|
|
|
|
--with-db-path=%{dbpath} \
|
|
|
|
--with-pipe-path=%{pipepath} \
|
2011-01-19 10:36:47 +01:00
|
|
|
--with-pubconf-path=%{pubconfpath} \
|
2010-03-08 18:24:35 +01:00
|
|
|
--with-init-dir=%{_initrddir} \
|
|
|
|
--enable-nsslibdir=/%{_lib} \
|
2010-11-16 12:12:19 +01:00
|
|
|
--enable-pammoddir=/%{_lib}/security \
|
2011-08-02 11:16:11 +02:00
|
|
|
--enable-crypto=yes \
|
2010-03-08 18:24:35 +01:00
|
|
|
--with-ldb-lib-dir=%{_libdir}/ldb \
|
2010-09-03 16:48:38 +02:00
|
|
|
--with-selinux=no \
|
2011-08-02 11:16:11 +02:00
|
|
|
--with-os=suse \
|
2010-09-03 16:48:38 +02:00
|
|
|
--with-semanage=no
|
2010-11-23 13:57:22 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# Copy default sssd.conf file
|
2010-08-30 11:22:01 +02:00
|
|
|
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
|
|
|
|
install -m600 src/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf
|
|
|
|
install src/sysv/SUSE/sssd $RPM_BUILD_ROOT%{_sysconfdir}/init.d/sssd
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
install src/sysv/systemd/sssd.service $RPM_BUILD_ROOT/%{_unitdir}/sssd.service
|
|
|
|
%endif
|
2010-03-08 18:24:35 +01:00
|
|
|
ln -sf ../../etc/init.d/sssd $RPM_BUILD_ROOT/usr/sbin/rcsssd
|
|
|
|
|
|
|
|
# Remove .la files created by libtool
|
2011-07-28 13:47:45 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete;
|
2011-03-30 11:48:40 +02:00
|
|
|
|
|
|
|
%if %suse_version <= 1110
|
|
|
|
# remove some unsupported languages, sssd does not contain
|
|
|
|
# translations for these anyway
|
|
|
|
rm -rf \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/locale/fa_IR \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/locale/ja_JP \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/locale/lt_LT \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/locale/ta_IN \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/locale/vi_VN
|
|
|
|
%endif
|
|
|
|
|
2011-03-08 17:25:23 +01:00
|
|
|
%find_lang %{name} --all-name
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre sssd.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if %suse_version > 1140
|
|
|
|
%service_add_post sssd.service
|
|
|
|
%endif
|
2010-08-30 11:22:01 +02:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal sssd
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
%service_del_preun sssd.service
|
|
|
|
%endif
|
2010-08-30 11:22:01 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%restart_on_update sssd
|
|
|
|
%insserv_cleanup
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
%service_del_postun sssd.service
|
|
|
|
%endif
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-11-16 12:12:19 +01:00
|
|
|
%files -f sssd.lang
|
2010-03-08 18:24:35 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_initrddir}/%{name}
|
2011-10-19 16:17:34 +02:00
|
|
|
%if %suse_version > 1140
|
|
|
|
%{_unitdir}/sssd.service
|
|
|
|
%endif
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_sbindir}/sssd
|
|
|
|
%{_sbindir}/rcsssd
|
2010-08-30 11:22:01 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/sss*
|
|
|
|
%{_libexecdir}/%{name}/*_child
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_libdir}/%{name}/libsss_krb5*
|
|
|
|
%{_libdir}/%{name}/libsss_ldap*
|
|
|
|
%{_libdir}/%{name}/libsss_proxy*
|
2010-08-30 11:22:01 +02:00
|
|
|
%{_libdir}/%{name}/libsss_simple*
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_libdir}/ldb/memberof.so
|
|
|
|
%{_libdir}/krb5/plugins/libkrb5/*
|
|
|
|
%dir %{sssdstatedir}
|
|
|
|
%attr(700,root,root) %dir %{dbpath}
|
|
|
|
%attr(755,root,root) %dir %{pipepath}
|
|
|
|
%attr(700,root,root) %dir %{pipepath}/private
|
2011-01-19 10:36:47 +01:00
|
|
|
%attr(755,root,root) %dir %{pubconfpath}
|
2010-03-08 18:24:35 +01:00
|
|
|
%attr(750,root,root) %dir %{_var}/log/%{name}
|
|
|
|
%dir %{_sysconfdir}/sssd
|
|
|
|
%config(noreplace) %{_sysconfdir}/sssd/sssd.conf
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.conf
|
|
|
|
%attr(700,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-krb5.conf
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-ldap.conf
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-local.conf
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-proxy.conf
|
2010-08-30 11:22:01 +02:00
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-simple.conf
|
2010-03-08 18:24:35 +01:00
|
|
|
/%{_lib}/libnss_sss.so.2
|
|
|
|
/%{_lib}/security/pam_sss.so
|
|
|
|
%{_mandir}/man5/sssd-krb5.*
|
|
|
|
%{_mandir}/man5/sssd-ldap.*
|
2010-08-30 11:22:01 +02:00
|
|
|
%{_mandir}/man5/sssd-simple.*
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_mandir}/man5/sssd.conf.*
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root,-)
|
2011-03-08 17:25:23 +01:00
|
|
|
%dir %{_mandir}/cs
|
|
|
|
%dir %{_mandir}/cs/man8
|
|
|
|
%dir %{_mandir}/uk
|
|
|
|
%dir %{_mandir}/uk/man8
|
2011-03-24 17:02:03 +01:00
|
|
|
%dir %{_mandir}/es
|
|
|
|
%dir %{_mandir}/es/man8
|
|
|
|
%dir %{_mandir}/nl
|
|
|
|
%dir %{_mandir}/nl/man8
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_mandir}/man8/*
|
2011-03-08 17:25:23 +01:00
|
|
|
%{_mandir}/cs/man8/*
|
|
|
|
%{_mandir}/uk/man8/*
|
2011-03-24 17:02:03 +01:00
|
|
|
%{_mandir}/es/man8/*
|
|
|
|
%{_mandir}/nl/man8/*
|
2010-03-08 18:24:35 +01:00
|
|
|
%{_sbindir}/sss_useradd
|
|
|
|
%{_sbindir}/sss_userdel
|
|
|
|
%{_sbindir}/sss_usermod
|
|
|
|
%{_sbindir}/sss_groupadd
|
|
|
|
%{_sbindir}/sss_groupdel
|
|
|
|
%{_sbindir}/sss_groupmod
|
2010-08-30 11:22:01 +02:00
|
|
|
%{_sbindir}/sss_groupshow
|
2010-11-16 12:12:19 +01:00
|
|
|
%attr(0755,root,root) %{_sbindir}/sss_obfuscate
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%files ipa-provider
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-ipa.conf
|
|
|
|
%{_libdir}/sssd/libsss_ipa*
|
|
|
|
%{_mandir}/man5/sssd-ipa.*
|
|
|
|
|
|
|
|
%files -n python-sssd-config
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitearch}/pysss.so
|
|
|
|
%{python_sitelib}/*.py*
|
|
|
|
%{python_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
%changelog
|