2010-03-08 18:24:35 +01:00
|
|
|
#
|
2010-03-08 18:24:35 +01:00
|
|
|
# spec file for package sssd (Version 1.0.5)
|
2010-03-08 18:24:35 +01:00
|
|
|
#
|
2010-03-08 18:24:35 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
2012-04-10 19:58:50 +02:00
|
|
|
|
2012-04-12 23:15:53 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
Name: sssd
|
2010-03-08 18:24:35 +01:00
|
|
|
Version: 1.0.5
|
2010-03-19 10:05:35 +01:00
|
|
|
Release: 2
|
2012-03-15 13:56:41 +01:00
|
|
|
Group: System/Daemons
|
2010-03-08 18:24:35 +01:00
|
|
|
Summary: System Security Services Daemon
|
|
|
|
# The entire source code is GPLv3+ except replace/ which is LGPLv3+
|
|
|
|
License: GPLv3+ and LGPLv3+
|
2010-04-01 18:01:33 +02:00
|
|
|
Url: https://fedorahosted.org/sssd/
|
2010-03-08 18:24:35 +01:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2010-03-19 10:05:35 +01:00
|
|
|
Patch0: 0001-by-default-use-logfiles-for-debug-messages.dif
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-04-10 19:58:50 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
### Patches ###
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
### Dependencies ###
|
|
|
|
%define servicename sssd
|
|
|
|
%define sssdstatedir %{_localstatedir}/lib/sss
|
|
|
|
%define dbpath %{sssdstatedir}/db
|
|
|
|
%define pipepath %{sssdstatedir}/pipes
|
|
|
|
|
|
|
|
### Build Dependencies ###
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
2012-11-15 03:31:26 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2010-03-08 18:24:35 +01:00
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: libtalloc-devel
|
|
|
|
BuildRequires: libtevent-devel
|
|
|
|
BuildRequires: libtdb-devel
|
|
|
|
BuildRequires: libldb-devel
|
|
|
|
BuildRequires: dbus-1-devel
|
2014-10-09 19:56:31 +02:00
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: pam-devel
|
2010-03-08 18:24:35 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: mozilla-nspr-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxml2
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libcares-devel
|
2015-08-20 10:53:21 +02:00
|
|
|
BuildRequires: python-devel
|
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.
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%package ipa-provider
|
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
Summary: FreeIPA provider plugin for sssd
|
2010-03-08 18:24:35 +01:00
|
|
|
Group: System/Daemons
|
2010-03-08 18:24:35 +01:00
|
|
|
Requires: sssd = %{version}
|
2013-11-02 01:05:06 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%description ipa-provider
|
|
|
|
This package provide the FreeIPA provider plugin for the System Security
|
|
|
|
Services Daemon (sssd).
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%package tools
|
2010-03-08 18:24:35 +01:00
|
|
|
License: GPLv3+ and LGPLv3+
|
2010-03-08 18:24:35 +01:00
|
|
|
Summary: Commandline tools for sssd
|
|
|
|
Group: System/Management
|
2010-03-08 18:24:35 +01:00
|
|
|
Requires: sssd = %{version}
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
The packages contains commandline tools for managing users and groups using
|
|
|
|
the "local" id provider of the System Security Services Daemon (sssd).
|
|
|
|
|
2012-03-15 13:56:41 +01:00
|
|
|
%package -n python-sssd-config
|
2010-03-08 18:24:35 +01:00
|
|
|
License: GPLv3+ and LGPLv3+
|
2010-03-08 18:24:35 +01:00
|
|
|
Summary: Python API for configuring sssd
|
|
|
|
Group: Development/Libraries/Python
|
2010-03-08 18:24:35 +01:00
|
|
|
%{py_requires}
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%description -n python-sssd-config
|
|
|
|
Provide python module to access and manage configuration of the System
|
|
|
|
Security Services Daemon (sssd).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-03-19 10:05:35 +01:00
|
|
|
%patch0 -p1
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-08 18:24:35 +01:00
|
|
|
export LDB_LIBS="-lldb"
|
|
|
|
export LDB_CFLAGS="-I/usr/include"
|
2010-03-08 18:24:35 +01:00
|
|
|
%configure \
|
2010-03-08 18:24:35 +01:00
|
|
|
--without-tests \
|
|
|
|
--with-db-path=%{dbpath} \
|
|
|
|
--with-pipe-path=%{pipepath} \
|
|
|
|
--with-init-dir=%{_initrddir} \
|
|
|
|
--enable-nsslibdir=/%{_lib} \
|
|
|
|
--with-ldb-lib-dir=%{_libdir}/ldb \
|
|
|
|
--with-selinux=no
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
#make %{?_smp_mflags}
|
|
|
|
make
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2011-03-30 11:48:40 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
# 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
|
|
|
|
install server/sysv/SUSE/sssd $RPM_BUILD_ROOT%{_sysconfdir}/init.d/sssd
|
|
|
|
ln -sf ../../etc/init.d/sssd $RPM_BUILD_ROOT/usr/sbin/rcsssd
|
|
|
|
|
|
|
|
# Remove .la files created by libtool
|
|
|
|
rm -f \
|
|
|
|
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/python2.6/site-packages/pysss.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_krb5.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ipa.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la
|
|
|
|
|
|
|
|
%find_lang sss_daemon
|
|
|
|
%find_lang sss_client
|
|
|
|
cat sss_client.lang >> sss_daemon.lang
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f sss_daemon.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_initrddir}/%{name}
|
|
|
|
%{_sbindir}/sssd
|
|
|
|
%{_sbindir}/rcsssd
|
|
|
|
%{_libexecdir}/%{servicename}/
|
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%{_libdir}/%{name}/libsss_krb5*
|
|
|
|
%{_libdir}/%{name}/libsss_ldap*
|
|
|
|
%{_libdir}/%{name}/libsss_proxy*
|
|
|
|
%{_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
|
|
|
|
%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
|
|
|
|
/%{_lib}/libnss_sss.so.2
|
|
|
|
/%{_lib}/security/pam_sss.so
|
|
|
|
%{_mandir}/man5/sssd-krb5.*
|
|
|
|
%{_mandir}/man5/sssd-ldap.*
|
|
|
|
%{_mandir}/man5/sssd.conf.*
|
2014-08-10 16:40:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_sbindir}/sss_useradd
|
|
|
|
%{_sbindir}/sss_userdel
|
|
|
|
%{_sbindir}/sss_usermod
|
|
|
|
%{_sbindir}/sss_groupadd
|
|
|
|
%{_sbindir}/sss_groupdel
|
|
|
|
%{_sbindir}/sss_groupmod
|
|
|
|
|
|
|
|
%files ipa-provider
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %{_sysconfdir}/sssd/sssd.api.d/sssd-ipa.conf
|
|
|
|
%{_libdir}/sssd/libsss_ipa*
|
|
|
|
%{_mandir}/man5/sssd-ipa.*
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%files -n python-sssd-config
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitearch}/pysss.so
|
|
|
|
%{python_sitelib}/*.py*
|
|
|
|
%{python_sitelib}/*.egg-info
|
2011-10-19 16:17:34 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2013-12-22 19:51:04 +01:00
|
|
|
%preun
|
2010-03-08 18:24:35 +01:00
|
|
|
%stop_on_removal sssd
|
2010-08-30 11:22:01 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2010-03-08 18:24:35 +01:00
|
|
|
%restart_on_update sssd
|
2014-08-11 02:18:49 +02:00
|
|
|
%insserv_cleanup
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%changelog
|