2010-03-08 18:24:35 +01:00
|
|
|
#
|
2010-08-30 11:22:01 +02:00
|
|
|
# spec file for package sssd (Version 1.1.0)
|
2010-03-08 18:24:35 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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
|
2010-08-30 12:06:57 +02:00
|
|
|
Version: 1.3.1
|
2010-08-30 11:22:01 +02:00
|
|
|
Release: 1
|
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-08-30 12:06:57 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2010-08-30 11:22:01 +02:00
|
|
|
Source1: baselibs.conf
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
%define dhash_version 0.4.0
|
|
|
|
%define path_utils_version 0.2.0
|
|
|
|
%define collection_version 0.4.0
|
|
|
|
%define ini_config_version 0.4.0
|
|
|
|
%define refarray_version 0.1.0
|
2010-03-30 16:32:56 +02: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 ###
|
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-08-30 12:06:57 +02:00
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxml2
|
|
|
|
BuildRequires: libcares-devel
|
|
|
|
BuildRequires: libnl-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-08-30 12:06:57 +02:00
|
|
|
BuildRequires: bind-utils
|
|
|
|
BuildRequires: nscd
|
|
|
|
|
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).
|
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
%package -n libdhash1
|
|
|
|
Summary: Dynamic hash table
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{dhash_version}
|
|
|
|
Release: 1
|
|
|
|
License: LGPLv3+
|
|
|
|
|
|
|
|
%description -n libdhash1
|
|
|
|
A hash table which will dynamically resize to achieve optimal storage & access
|
|
|
|
time properties
|
|
|
|
|
|
|
|
%package -n libdhash-devel
|
|
|
|
Summary: Development files for libdhash
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{dhash_version}
|
|
|
|
Release: 1
|
|
|
|
Requires: libdhash1 = %{dhash_version}
|
|
|
|
License: LGPLv3+
|
|
|
|
|
|
|
|
%description -n libdhash-devel
|
|
|
|
A hash table which will dynamically resize to achieve optimal storage & access
|
|
|
|
time properties
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%package -n libcollection2
|
2010-08-30 11:22:01 +02:00
|
|
|
Summary: Collection data-type for C
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{collection_version}
|
|
|
|
Release: 1
|
|
|
|
License: LGPLv3+
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%description -n libcollection2
|
2010-08-30 11:22:01 +02:00
|
|
|
A data-type to collect data in a heirarchical structure for easy iteration
|
|
|
|
and serialization
|
|
|
|
|
|
|
|
%package -n libcollection-devel
|
|
|
|
Summary: Development files for libcollection
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{collection_version}
|
|
|
|
Release: 1
|
2010-08-30 12:06:57 +02:00
|
|
|
Requires: libcollection2 = %{collection_version}
|
2010-08-30 11:22:01 +02:00
|
|
|
License: LGPLv3+
|
|
|
|
|
|
|
|
%description -n libcollection-devel
|
|
|
|
A data-type to collect data in a heirarchical structure for easy iteration
|
|
|
|
and serialization
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%package -n libini_config2
|
2010-08-30 11:22:01 +02:00
|
|
|
Summary: INI file parser for C
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{ini_config_version}
|
|
|
|
Release: 1
|
|
|
|
License: LGPLv3+
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%description -n libini_config2
|
2010-08-30 11:22:01 +02:00
|
|
|
Library to process config files in INI format into a libcollection data
|
|
|
|
structure
|
|
|
|
|
|
|
|
%package -n libini_config-devel
|
|
|
|
Summary: Development files for libini_config
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: %{ini_config_version}
|
|
|
|
Release: 1
|
2010-08-30 12:06:57 +02:00
|
|
|
Requires: libini_config2 = %{ini_config_version}
|
2010-08-30 11:22:01 +02:00
|
|
|
License: LGPLv3+
|
|
|
|
|
|
|
|
%description -n libini_config-devel
|
|
|
|
Library to process config files in INI format into a libcollection data
|
|
|
|
structure
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2010-08-30 11:22:01 +02:00
|
|
|
autoreconf
|
2010-03-08 18:24:35 +01:00
|
|
|
export LDB_LIBS="-lldb"
|
|
|
|
export LDB_CFLAGS="-I/usr/include"
|
|
|
|
%configure \
|
|
|
|
--without-tests \
|
|
|
|
--with-db-path=%{dbpath} \
|
|
|
|
--with-pipe-path=%{pipepath} \
|
|
|
|
--with-init-dir=%{_initrddir} \
|
|
|
|
--enable-nsslibdir=/%{_lib} \
|
2010-08-30 11:22:01 +02:00
|
|
|
--enable-cryptp=yes \
|
2010-03-08 18:24:35 +01:00
|
|
|
--with-ldb-lib-dir=%{_libdir}/ldb \
|
2010-08-30 12:06:57 +02:00
|
|
|
--with-selinux=no \
|
|
|
|
--with-semanage=no
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
#make %{?_smp_mflags}
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
rm -f \
|
|
|
|
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
|
|
|
|
$RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
|
2010-08-30 11:22:01 +02:00
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/*.la \
|
2010-03-08 18:24:35 +01:00
|
|
|
$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 \
|
2010-08-30 11:22:01 +02:00
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_simple.la \
|
2010-03-08 18:24:35 +01:00
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la
|
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
rm $RPM_BUILD_ROOT/%{_libdir}/*.a
|
2010-03-08 18:24:35 +01:00
|
|
|
%find_lang sss_daemon
|
2010-08-30 11:22:01 +02:00
|
|
|
#%find_lang sss_client
|
|
|
|
#cat sss_client.lang >> sss_daemon.lang
|
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_docdir}/dhash
|
|
|
|
mv $RPM_BUILD_ROOT/%{_datarootdir}/doc/dhash/* $RPM_BUILD_ROOT/%{_docdir}/dhash
|
|
|
|
|
|
|
|
# remove currently unused libraries
|
|
|
|
rm -f \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/libref_array.* \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/ref_array.pc \
|
|
|
|
$RPM_BUILD_ROOT/%{_prefix}/include/ref_array*.h \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/libpath_utils.* \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/path_utils.pc \
|
|
|
|
$RPM_BUILD_ROOT/%{_prefix}/include/path_utils.h
|
2010-04-01 18:01:35 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal sssd
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%restart_on_update sssd
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%post -n libdhash1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdhash1 -p /sbin/ldconfig
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%post -n libcollection2 -p /sbin/ldconfig
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%postun -n libcollection2 -p /sbin/ldconfig
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%post -n libini_config2 -p /sbin/ldconfig
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%postun -n libini_config2 -p /sbin/ldconfig
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%files -f sss_daemon.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_initrddir}/%{name}
|
|
|
|
%{_sbindir}/sssd
|
|
|
|
%{_sbindir}/rcsssd
|
2010-08-30 11:22:01 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/sss*
|
|
|
|
%{_libexecdir}/%{name}/*_child
|
|
|
|
%{_libexecdir}/%{name}/upgrade_config.py
|
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
|
|
|
|
%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,-)
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_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-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
|
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
%files -n libdhash1
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libdhash.so.*
|
2010-03-30 16:32:56 +02:00
|
|
|
|
2010-08-30 11:22:01 +02:00
|
|
|
%files -n libdhash-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libdhash.so
|
|
|
|
%{_libdir}/pkgconfig/dhash.pc
|
|
|
|
%{_prefix}/include/dhash.h
|
|
|
|
%doc %{_docdir}/dhash
|
2010-03-30 16:32:56 +02:00
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%files -n libini_config2
|
2010-08-30 11:22:01 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libini_config.so.*
|
|
|
|
|
|
|
|
%files -n libini_config-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libini_config.so
|
|
|
|
%{_libdir}/pkgconfig/ini_config.pc
|
|
|
|
%{_prefix}/include/ini_config.h
|
|
|
|
|
2010-08-30 12:06:57 +02:00
|
|
|
%files -n libcollection2
|
2010-08-30 11:22:01 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libcollection.so.*
|
|
|
|
|
|
|
|
%files -n libcollection-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libcollection.so
|
|
|
|
%{_libdir}/pkgconfig/collection.pc
|
|
|
|
%{_prefix}/include/collection*.h
|
2010-03-30 16:32:56 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%changelog
|