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
|
|
|
#
|
2014-03-18 16:21:16 +01:00
|
|
|
# Copyright (c) 2014 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-23 09:18:24 +02:00
|
|
|
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
Name: sssd
|
2014-08-15 09:58:17 +02:00
|
|
|
Version: 1.12.0
|
2012-03-20 11:35:54 +01:00
|
|
|
Release: 0
|
2010-03-08 18:24:35 +01:00
|
|
|
Summary: System Security Services Daemon
|
2011-12-06 19:05:47 +01:00
|
|
|
License: GPL-3.0+ and LGPL-3.0+
|
2012-03-20 11:35:54 +01:00
|
|
|
Group: System/Daemons
|
2010-04-01 18:01:33 +02:00
|
|
|
Url: https://fedorahosted.org/sssd/
|
2012-04-23 09:18:24 +02:00
|
|
|
|
2012-09-17 14:10:56 +02:00
|
|
|
#Git-Clone: git://git.fedorahosted.org/sssd
|
2013-04-16 06:58:44 +02:00
|
|
|
Source: https://fedorahosted.org/released/sssd/sssd-%version.tar.gz
|
|
|
|
Source2: https://fedorahosted.org/released/sssd/sssd-%version.tar.gz.asc
|
2012-05-14 16:21:59 +02:00
|
|
|
Source3: baselibs.conf
|
2014-05-02 09:51:48 +02:00
|
|
|
Source4: sssd.service
|
2014-06-25 06:58:07 +02:00
|
|
|
Source5: %name.keyring
|
2010-04-01 18:01:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-05-14 10:50:28 +02:00
|
|
|
Patch1: 0001-build-detect-endianness-at-configure-time.patch
|
2012-04-10 19:58:50 +02:00
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%define servicename sssd
|
|
|
|
%define sssdstatedir %_localstatedir/lib/sss
|
|
|
|
%define dbpath %sssdstatedir/db
|
|
|
|
%define pipepath %sssdstatedir/pipes
|
|
|
|
%define pubconfpath %sssdstatedir/pubconf
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2011-04-14 15:04:56 +02:00
|
|
|
%if %suse_version <= 1110
|
2013-12-02 15:09:06 +01:00
|
|
|
# SLES11 doesn't know the python_* macros
|
|
|
|
%define python_sitelib %py_sitedir
|
|
|
|
%define python_sitearch %py_sitedir
|
2011-04-14 15:04:56 +02:00
|
|
|
%endif
|
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
BuildRequires: autoconf >= 2.59
|
|
|
|
BuildRequires: automake
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: bind-utils
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: cifs-utils-devel
|
2013-06-17 10:24:00 +02:00
|
|
|
BuildRequires: cyrus-sasl-devel
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: krb5-devel
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: libsmbclient-devel
|
2012-12-17 09:38:59 +01:00
|
|
|
BuildRequires: libtool
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2012-03-20 11:35:54 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: pkgconfig(augeas) >= 1.0.0
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: pkgconfig(collection) >= 0.5.1
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.0.0
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: pkgconfig(dhash) >= 0.4.2
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: pkgconfig(ini_config) >= 1.1.0
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: pkgconfig(ldb) >= 0.9.2
|
|
|
|
BuildRequires: pkgconfig(libcares)
|
2014-06-02 07:00:11 +02:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0) >= 3.0
|
|
|
|
BuildRequires: pkgconfig(libnl-route-3.0) >= 3.0
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: pkgconfig(libpcre) >= 7
|
2013-12-02 15:09:06 +01:00
|
|
|
BuildRequires: pkgconfig(ndr_nbt)
|
2012-12-17 09:38:59 +01:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
BuildRequires: pkgconfig(python)
|
|
|
|
BuildRequires: pkgconfig(talloc)
|
|
|
|
BuildRequires: pkgconfig(tdb) >= 1.1.3
|
|
|
|
BuildRequires: pkgconfig(tevent)
|
|
|
|
%else
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: augeas-devel
|
2012-09-17 14:10:56 +02:00
|
|
|
BuildRequires: dbus-1-devel >= 1.0.0
|
|
|
|
BuildRequires: glib2-devel
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: libcares-devel
|
|
|
|
BuildRequires: libcollection-devel >= 0.5.1
|
|
|
|
BuildRequires: libdhash-devel >= 0.4.2
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: libini_config-devel >= 1.1.0
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: libldb-devel >= 0.9.2
|
|
|
|
BuildRequires: libnl-devel >= 1.1
|
2012-12-17 09:38:59 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: libtalloc-devel
|
|
|
|
BuildRequires: libtdb-devel >= 1.1.3
|
|
|
|
BuildRequires: libtevent-devel
|
|
|
|
BuildRequires: pcre-devel >= 7
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: python-devel
|
2013-12-02 15:09:06 +01:00
|
|
|
BuildRequires: samba-devel >= 4
|
2012-03-20 11:35:54 +01:00
|
|
|
%endif
|
2013-12-02 15:09:06 +01:00
|
|
|
BuildRequires: samba-libs >= 4
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?suse_version} >= 1220
|
|
|
|
BuildRequires: libxml2-tools
|
|
|
|
BuildRequires: libxslt-tools
|
|
|
|
%else
|
2010-09-03 16:48:38 +02:00
|
|
|
BuildRequires: libxml2
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: libxslt
|
2012-04-23 09:18:24 +02:00
|
|
|
%endif
|
2012-03-20 11:35:54 +01:00
|
|
|
BuildRequires: nscd
|
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
|
2012-03-20 11:35:54 +01:00
|
|
|
%if %suse_version >= 1210
|
2014-08-15 09:58:17 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(libsystemd-login)
|
2012-04-23 09:18:24 +02:00
|
|
|
%{?systemd_requires}
|
2011-10-21 16:41:08 +02:00
|
|
|
%endif
|
2013-12-02 15:09:06 +01:00
|
|
|
Requires: sssd-ldap = %version-%release
|
2013-05-13 15:39:41 +02:00
|
|
|
Requires(postun): pam-config
|
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.
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%package ad
|
|
|
|
Summary: The ActiveDirectory backend plugin for sssd
|
|
|
|
License: GPL-3.0+
|
2010-03-08 18:24:35 +01:00
|
|
|
Group: System/Daemons
|
2013-12-02 15:09:06 +01:00
|
|
|
Requires: %name-krb5-common = %version
|
|
|
|
|
|
|
|
%description ad
|
|
|
|
Provides the Active Directory back end that the SSSD can utilize to
|
|
|
|
fetch identity data from and authenticate against an Active Directory
|
|
|
|
server.
|
|
|
|
|
2014-08-15 09:58:17 +02:00
|
|
|
%package dbus
|
|
|
|
Summary: The D-Bus responder of sssd
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Base
|
|
|
|
Requires: %name = %version
|
|
|
|
|
|
|
|
%description dbus
|
|
|
|
Provides the D-Bus responder of sssd, called InfoPipe, which allows
|
|
|
|
information from sssd to be transmitted over the system bus.
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%package ipa
|
|
|
|
Summary: FreeIPA backend plugin for sssd
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
Requires: %name = %version
|
|
|
|
Requires: %name-krb5-common = %version-%release
|
|
|
|
Obsoletes: %name-ipa-provider < %version-%release
|
|
|
|
Provides: %name-ipa-provider = %version-%release
|
|
|
|
|
|
|
|
%description ipa
|
|
|
|
Provides the IPA back end that the SSSD can utilize to fetch identity
|
|
|
|
data from and authenticate against an IPA server.
|
|
|
|
|
|
|
|
%package krb5
|
|
|
|
Summary: The Kerberos authentication backend plugin for sssd
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
Requires: %name-krb5-common = %version-%release
|
|
|
|
|
|
|
|
%description krb5
|
|
|
|
Provides the Kerberos back end that the SSSD can utilize authenticate
|
|
|
|
against a Kerberos server.
|
2013-11-02 01:05:06 +01:00
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%package krb5-common
|
|
|
|
Summary: SSSD helpers needed for Kerberos and GSSAPI authentication
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
|
|
|
|
%description krb5-common
|
|
|
|
Provides helper processes that the LDAP and Kerberos back ends can
|
|
|
|
use for Kerberos user or host authentication.
|
|
|
|
|
|
|
|
%package ldap
|
|
|
|
Summary: The LDAP backend plugin for sssd
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
Requires: %name-krb5-common = %version-%release
|
|
|
|
|
|
|
|
%description ldap
|
|
|
|
Provides the LDAP back end that the SSSD can utilize to fetch
|
|
|
|
identity data from and authenticate against an LDAP server.
|
|
|
|
|
|
|
|
%package proxy
|
|
|
|
Summary: The proxy backend plugin for sssd
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Daemons
|
|
|
|
|
|
|
|
%description proxy
|
|
|
|
Provides the proxy back end which can be used to wrap an existing NSS
|
|
|
|
and/or PAM modules to leverage SSSD caching.
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Commandline tools for sssd
|
2012-03-20 11:35:54 +01:00
|
|
|
License: GPL-3.0+ and LGPL-3.0+
|
2010-03-08 18:24:35 +01:00
|
|
|
Group: System/Management
|
2014-08-25 11:54:26 +02:00
|
|
|
Requires: python-sssd-config = %version
|
2012-12-17 09:38:59 +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-20 11:35:54 +01:00
|
|
|
%package -n libipa_hbac0
|
|
|
|
Summary: FreeIPA HBAC Evaluator library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libipa_hbac0
|
|
|
|
Utility library to validate FreeIPA HBAC rules for authorization
|
|
|
|
requests.
|
|
|
|
|
|
|
|
%package -n libipa_hbac-devel
|
|
|
|
Summary: Development files for the FreeIPA HBAC Evaluator library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libipa_hbac0 = %version
|
|
|
|
|
|
|
|
%description -n libipa_hbac-devel
|
|
|
|
Utility library to validate FreeIPA HBAC rules for authorization
|
|
|
|
requests.
|
|
|
|
|
2012-09-17 14:10:56 +02:00
|
|
|
%package -n libsss_idmap0
|
|
|
|
Summary: FreeIPA ID mapping library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsss_idmap0
|
|
|
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
|
|
|
|
|
|
|
%package -n libsss_idmap-devel
|
|
|
|
Summary: Development files for the FreeIPA idmap library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsss_idmap0 = %version
|
|
|
|
|
|
|
|
%description -n libsss_idmap-devel
|
|
|
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%package -n libsss_nss_idmap0
|
|
|
|
Summary: FreeIPA ID mapping library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsss_nss_idmap0
|
|
|
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
|
|
|
|
|
|
|
%package -n libsss_nss_idmap-devel
|
|
|
|
Summary: Development files for the FreeIPA idmap library
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsss_nss_idmap0 = %version
|
|
|
|
|
|
|
|
%description -n libsss_nss_idmap-devel
|
|
|
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
|
|
|
|
2014-08-15 09:58:17 +02:00
|
|
|
%package -n libsss_simpleifp0
|
|
|
|
Summary: The SSSD D-Bus responder helper library
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsss_simpleifp0
|
|
|
|
This subpackage provides a library that simplifies the D-Bus API for
|
|
|
|
the SSSD InfoPipe responder.
|
|
|
|
|
|
|
|
%package -n libsss_simpleifp-devel
|
|
|
|
Summary: Development files for the SSSD D-Bus responder helper library
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsss_simpleifp0 = %version
|
|
|
|
|
|
|
|
%description -n libsss_simpleifp-devel
|
|
|
|
This subpackage provides the development files for sssd's simpleifp,
|
|
|
|
a library that simplifies the D-Bus API for the SSSD InfoPipe
|
|
|
|
responder.
|
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
%package -n libsss_sudo
|
|
|
|
Summary: A library to allow communication between sudo and SSSD
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: libsss_sudo-devel = %version-%release
|
|
|
|
Obsoletes: libsss_sudo-devel < %version-%release
|
|
|
|
# No provides: true obsolete.
|
|
|
|
Obsoletes: libsss_sudo1
|
|
|
|
|
|
|
|
%description -n libsss_sudo
|
|
|
|
A utility library to allow communication between sudo and SSSD.
|
|
|
|
|
2012-03-20 11:35:54 +01:00
|
|
|
%package -n python-ipa_hbac
|
|
|
|
Summary: Python bindings for the FreeIPA HBAC Evaluator library
|
2013-12-02 15:09:06 +01:00
|
|
|
License: LGPL-3.0+
|
2012-03-20 11:35:54 +01:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description -n python-ipa_hbac
|
|
|
|
The python-ipa_hbac package contains the bindings so that libipa_hbac
|
|
|
|
can be used by Python applications.
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%package -n python-sss_nss_idmap
|
|
|
|
Summary: Python bindings for libsss_nss_idmap
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description -n python-sss_nss_idmap
|
|
|
|
The libsss_nss_idmap-python contains the bindings so that
|
|
|
|
libsss_nss_idmap can be used by Python applications.
|
|
|
|
|
2012-03-20 11:35:54 +01:00
|
|
|
%package -n python-sssd-config
|
2010-03-08 18:24:35 +01:00
|
|
|
Summary: Python API for configuring sssd
|
2012-03-20 11:35:54 +01:00
|
|
|
License: GPL-3.0+ and LGPL-3.0+
|
2010-03-08 18:24:35 +01:00
|
|
|
Group: Development/Libraries/Python
|
2012-12-17 09:38:59 +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
|
2014-08-15 09:58:17 +02:00
|
|
|
%patch -P 1 -p1
|
2010-03-08 18:24:35 +01:00
|
|
|
|
|
|
|
%build
|
2012-03-20 11:35:54 +01:00
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
# pkgconfig file not present
|
2010-11-18 16:58:43 +01:00
|
|
|
export LDB_LIBS="-lldb"
|
2012-03-20 11:35:54 +01:00
|
|
|
export LDB_CFLAGS=" "
|
|
|
|
export LDB_DIR="%_libdir/ldb"
|
|
|
|
%else
|
|
|
|
export LDB_DIR="$(pkg-config ldb --variable=modulesdir)"
|
|
|
|
%endif
|
2011-08-02 13:56:12 +02:00
|
|
|
|
|
|
|
# help configure find nscd
|
2012-03-20 11:35:54 +01:00
|
|
|
export PATH="$PATH:/usr/sbin"
|
2011-08-02 13:56:12 +02:00
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
autoreconf -fi;
|
2010-03-08 18:24:35 +01:00
|
|
|
%configure \
|
2012-12-17 09:38:59 +01:00
|
|
|
--with-crypto=libcrypto \
|
|
|
|
--with-db-path="%dbpath" \
|
|
|
|
--with-pipe-path="%pipepath" \
|
|
|
|
--with-pubconf-path="%pubconfpath" \
|
|
|
|
--with-init-dir="%_initrddir" \
|
|
|
|
--enable-nsslibdir="/%_lib" \
|
|
|
|
--enable-pammoddir="/%_lib/security" \
|
2012-03-20 11:35:54 +01:00
|
|
|
--with-ldb-lib-dir="$LDB_DIR" \
|
2010-09-03 16:48:38 +02:00
|
|
|
--with-selinux=no \
|
2011-08-02 13:56:12 +02:00
|
|
|
--with-os=suse \
|
2013-12-02 15:09:06 +01:00
|
|
|
--with-semanage=no \
|
|
|
|
--disable-ldb-version-check \
|
|
|
|
--disable-pac-responder
|
2012-04-23 09:18:24 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags} all
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%install
|
2012-12-17 09:38:59 +01:00
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b"
|
2011-03-30 11:48:40 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
# Copy default sssd.conf file
|
2012-12-17 09:38:59 +01:00
|
|
|
install -d "$b/%_mandir"/{cs,cs/man8,nl,nl/man8,pt,pt/man8,uk,uk/man1} \
|
|
|
|
"$b/%_mandir"/{uk/man5,uk/man8};
|
|
|
|
install -d "$b/%_sysconfdir/sssd";
|
|
|
|
install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf";
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2012-12-17 09:38:59 +01:00
|
|
|
install -d "$b/%_unitdir";
|
2014-05-02 09:51:48 +02:00
|
|
|
# Missing service file in 1.11.5.1
|
|
|
|
#install src/sysv/systemd/sssd.service "$b/%_unitdir/sssd.service";
|
2014-05-14 10:50:28 +02:00
|
|
|
install -m644 %{S:4} "$b/%_unitdir/sssd.service";
|
2013-12-02 15:09:06 +01:00
|
|
|
rm -Rf "$b/%_initddir"
|
2014-08-15 09:58:17 +02:00
|
|
|
ln -s service "$b/%_sbindir/rcsssd"
|
2013-12-02 15:09:06 +01:00
|
|
|
%else
|
|
|
|
install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd";
|
|
|
|
ln -sf ../../etc/init.d/sssd "$b/usr/sbin/rcsssd"
|
2011-10-21 16:41:08 +02:00
|
|
|
%endif
|
2010-03-08 18:24:35 +01:00
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
find "$b" -type f -name "*.la" -delete;
|
2011-04-14 15:04:56 +02:00
|
|
|
|
|
|
|
%if %suse_version <= 1110
|
|
|
|
# remove some unsupported languages, sssd does not contain
|
|
|
|
# translations for these anyway
|
2012-12-17 09:38:59 +01:00
|
|
|
rm -Rf "$b/usr/share/locale"/{fa_IR,ja_JP,lt_LT,ta_IN,vi_VN}
|
2011-04-14 15:04:56 +02:00
|
|
|
%endif
|
|
|
|
|
2014-08-15 09:58:17 +02:00
|
|
|
rm -Rf "$b/%_sysconfdir/dbus-1" "$b/%_datadir/dbus-1"
|
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
%find_lang %name --all-name
|
2010-04-01 18:01:35 +02:00
|
|
|
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2011-10-21 16:41:08 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre sssd.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post
|
2013-12-19 12:37:19 +01:00
|
|
|
# migrate config variable krb5_kdcip to krb5_server (bnc#851048)
|
|
|
|
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf
|
2011-10-21 16:41:08 +02:00
|
|
|
/sbin/ldconfig
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2011-10-21 16:41:08 +02:00
|
|
|
%service_add_post sssd.service
|
|
|
|
%endif
|
2010-04-01 18:01:35 +02:00
|
|
|
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2013-12-31 10:58:27 +01:00
|
|
|
%preun
|
2011-10-21 16:41:08 +02:00
|
|
|
%service_del_preun sssd.service
|
|
|
|
%endif
|
2010-04-01 18:01:35 +02:00
|
|
|
|
|
|
|
%postun
|
2014-06-25 06:58:07 +02:00
|
|
|
if [ "$1" == "0" ]; then
|
|
|
|
"%_sbindir/pam-config" -d --sss || :;
|
|
|
|
fi;
|
2010-04-01 18:01:35 +02:00
|
|
|
/sbin/ldconfig
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2014-08-15 09:58:17 +02:00
|
|
|
# Clear caches, which may have an incompatible format afterwards
|
|
|
|
# (especially, downgrades)
|
|
|
|
rm -f /var/lib/sss/db/*.ldb
|
|
|
|
# del_postun includes a try-restart
|
2011-10-21 16:41:08 +02:00
|
|
|
%service_del_postun sssd.service
|
2014-08-15 09:58:17 +02:00
|
|
|
%else
|
|
|
|
%restart_on_update sssd
|
2011-10-21 16:41:08 +02:00
|
|
|
%endif
|
2014-08-15 09:58:17 +02:00
|
|
|
%insserv_cleanup
|
2010-04-01 18:01:35 +02:00
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
%post -n libipa_hbac0 -p /sbin/ldconfig
|
2012-03-20 11:35:54 +01:00
|
|
|
%postun -n libipa_hbac0 -p /sbin/ldconfig
|
2012-12-17 09:38:59 +01:00
|
|
|
%post -n libsss_idmap0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsss_idmap0 -p /sbin/ldconfig
|
2013-12-02 15:09:06 +01:00
|
|
|
%post -n libsss_nss_idmap0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsss_nss_idmap0 -p /sbin/ldconfig
|
2014-08-15 09:58:17 +02:00
|
|
|
%post -n libsss_simpleifp0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsss_simpleifp0 -p /sbin/ldconfig
|
2012-03-20 11:35:54 +01:00
|
|
|
|
2010-11-18 16:58:43 +01:00
|
|
|
%files -f sssd.lang
|
2012-12-17 09:38:59 +01:00
|
|
|
%defattr(-,root,root)
|
2010-03-08 18:24:35 +01:00
|
|
|
%doc COPYING
|
2012-04-23 09:18:24 +02:00
|
|
|
%if 0%{?_unitdir:1}
|
2012-12-17 09:38:59 +01:00
|
|
|
%_unitdir
|
2013-12-02 15:09:06 +01:00
|
|
|
%else
|
|
|
|
%_initrddir/%name
|
2011-10-21 16:41:08 +02:00
|
|
|
%endif
|
2012-12-17 09:38:59 +01:00
|
|
|
%_bindir/sss_ssh_*
|
|
|
|
%_sbindir/sssd
|
2014-08-15 09:58:17 +02:00
|
|
|
%_sbindir/rcsssd
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_mandir/??/
|
|
|
|
%dir %_mandir/??/man?/
|
|
|
|
%_mandir/??/man1/sss_ssh_*
|
|
|
|
%_mandir/??/man5/sssd-simple.5*
|
|
|
|
%_mandir/??/man5/sssd-sudo.5*
|
|
|
|
%_mandir/??/man5/sssd.conf.5*
|
|
|
|
%_mandir/??/man8/sssd.8*
|
2012-12-17 09:38:59 +01:00
|
|
|
%_mandir/man1/sss_ssh_*
|
|
|
|
%_mandir/man5/sssd-simple.5*
|
|
|
|
%_mandir/man5/sssd-sudo.5*
|
2013-12-02 15:09:06 +01:00
|
|
|
%_mandir/man5/sssd.conf.5*
|
2012-12-17 09:38:59 +01:00
|
|
|
%_mandir/man8/sssd.8*
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_child*
|
|
|
|
%_libdir/%name/libsss_crypt*
|
|
|
|
%_libdir/%name/libsss_debug*
|
2012-12-17 09:38:59 +01:00
|
|
|
%_libdir/%name/libsss_simple*
|
2013-12-02 15:09:06 +01:00
|
|
|
%_libdir/%name/libsss_util*
|
|
|
|
%_libdir/%name/modules/
|
|
|
|
%dir %_libdir/ldb/
|
2012-12-17 09:38:59 +01:00
|
|
|
%_libdir/ldb/memberof.so
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_libexecdir/%name/
|
2014-08-15 09:58:17 +02:00
|
|
|
%_libexecdir/%name/sssd_autofs
|
|
|
|
%_libexecdir/%name/sssd_be
|
|
|
|
%_libexecdir/%name/sssd_nss
|
|
|
|
%_libexecdir/%name/sssd_pam
|
|
|
|
%_libexecdir/%name/sssd_ssh
|
|
|
|
%_libexecdir/%name/sssd_sudo
|
|
|
|
%_libexecdir/%name/sss_signal
|
2012-12-17 09:38:59 +01:00
|
|
|
%dir %sssdstatedir
|
2013-12-02 15:09:06 +01:00
|
|
|
%attr(700,root,root) %dir %dbpath/
|
|
|
|
%attr(755,root,root) %dir %pipepath/
|
|
|
|
%attr(700,root,root) %dir %pipepath/private/
|
|
|
|
%attr(755,root,root) %dir %pubconfpath/
|
|
|
|
%attr(750,root,root) %dir %_localstatedir/log/%name/
|
|
|
|
%dir %_sysconfdir/sssd/
|
2012-12-17 09:38:59 +01:00
|
|
|
%config(noreplace) %_sysconfdir/sssd/sssd.conf
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_datadir/%name/
|
|
|
|
%_datadir/%name/sssd.api.conf
|
|
|
|
%dir %_datadir/%name/sssd.api.d/
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-local.conf
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-simple.conf
|
2012-12-17 09:38:59 +01:00
|
|
|
#
|
2013-12-02 15:09:06 +01:00
|
|
|
# sssd-client
|
2012-12-17 09:38:59 +01:00
|
|
|
#
|
|
|
|
/%_lib/libnss_sss.so.2
|
|
|
|
/%_lib/security/pam_sss.so
|
2014-08-15 09:58:17 +02:00
|
|
|
%_libdir/cifs-utils/
|
|
|
|
%_libdir/krb5/
|
2013-12-02 15:09:06 +01:00
|
|
|
%_mandir/??/man8/pam_sss.8*
|
|
|
|
%_mandir/??/man8/sssd_krb5_locator_plugin.8*
|
|
|
|
%_mandir/man8/pam_sss.8*
|
|
|
|
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
|
|
|
|
|
|
|
%files ad
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_ad.so
|
2014-08-15 09:58:17 +02:00
|
|
|
%_libdir/%name/libsss_ad_common.so
|
|
|
|
%dir %_libexecdir/%name/
|
|
|
|
%_libexecdir/%name/gpo_child
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_datadir/%name/
|
|
|
|
%dir %_datadir/%name/sssd.api.d/
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-ad.conf
|
|
|
|
%dir %_mandir/??/man5/
|
|
|
|
%_mandir/man5/sssd-ad.5*
|
|
|
|
%_mandir/??/man5/sssd-ad.5*
|
|
|
|
|
2014-08-15 09:58:17 +02:00
|
|
|
%files dbus
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libexecdir/sssd/
|
|
|
|
%_libexecdir/sssd/sssd_ifp
|
|
|
|
%dir %_libdir/sssd/
|
|
|
|
%_libdir/sssd/libsss_config.so
|
|
|
|
%_mandir/man5/sssd-ifp.5*
|
|
|
|
%_mandir/??/man5/sssd-ifp.5*
|
|
|
|
#%_sysconfdir/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf
|
|
|
|
#%_datadir/dbus-1/system-services/org.freedesktop.sssd.infopipe.service
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%files ipa
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_ipa*
|
|
|
|
%dir %_datadir/%name/
|
|
|
|
%dir %_datadir/%name/sssd.api.d
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-ipa.conf
|
|
|
|
%dir %_mandir/??/man5/
|
|
|
|
%_mandir/man5/sssd-ipa.5*
|
|
|
|
%_mandir/??/man5/sssd-ipa.5*
|
|
|
|
|
|
|
|
%files krb5
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_krb5.so
|
|
|
|
%dir %_datadir/%name/
|
|
|
|
%dir %_datadir/%name/sssd.api.d/
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-krb5.conf
|
|
|
|
%dir %_mandir/??/man5/
|
|
|
|
%_mandir/man5/sssd-krb5.5*
|
|
|
|
%_mandir/??/man5/sssd-krb5.5*
|
|
|
|
|
|
|
|
%files krb5-common
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_krb5_common.so
|
|
|
|
%dir %_libexecdir/%name/
|
|
|
|
%_libexecdir/%name/krb5_child
|
|
|
|
%_libexecdir/%name/ldap_child
|
|
|
|
|
|
|
|
%files ldap
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_ldap*
|
|
|
|
%dir %_datadir/%name/
|
|
|
|
%dir %_datadir/%name/sssd.api.d/
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-ldap.conf
|
|
|
|
%dir %_mandir/??/man5/
|
|
|
|
%_mandir/??/man5/sssd-ldap.5*
|
|
|
|
%_mandir/man5/sssd-ldap.5*
|
|
|
|
|
|
|
|
%files proxy
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/%name/
|
|
|
|
%_libdir/%name/libsss_proxy.so
|
|
|
|
%dir %_libexecdir/%name/
|
|
|
|
%_libexecdir/%name/proxy_child
|
|
|
|
%dir %_datadir/%name/
|
|
|
|
%dir %_datadir/%name/sssd.api.d/
|
|
|
|
%_datadir/%name/sssd.api.d/sssd-proxy.conf
|
2014-08-10 16:40:01 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%files tools
|
2012-12-17 09:38:59 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_sbindir/sss_cache
|
|
|
|
%_sbindir/sss_debuglevel
|
|
|
|
%_sbindir/sss_groupadd
|
|
|
|
%_sbindir/sss_groupdel
|
|
|
|
%_sbindir/sss_groupmod
|
|
|
|
%_sbindir/sss_groupshow
|
|
|
|
%_sbindir/sss_seed
|
2013-12-02 15:09:06 +01:00
|
|
|
%_sbindir/sss_obfuscate
|
2012-12-17 09:38:59 +01:00
|
|
|
%_sbindir/sss_useradd
|
|
|
|
%_sbindir/sss_userdel
|
|
|
|
%_sbindir/sss_usermod
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %_mandir/??/man8/
|
|
|
|
%_mandir/??/man8/sss_*.8*
|
|
|
|
%_mandir/man8/sss_*.8*
|
2010-08-30 11:22:01 +02:00
|
|
|
|
2012-03-20 11:35:54 +01:00
|
|
|
%files -n libipa_hbac0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libipa_hbac.so.0*
|
|
|
|
|
|
|
|
%files -n libipa_hbac-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/ipa_hbac.h
|
|
|
|
%_libdir/libipa_hbac.so
|
|
|
|
%_libdir/pkgconfig/ipa_hbac.pc
|
|
|
|
|
2012-09-17 14:10:56 +02:00
|
|
|
%files -n libsss_idmap0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libsss_idmap.so.0*
|
|
|
|
|
|
|
|
%files -n libsss_idmap-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/sss_idmap.h
|
|
|
|
%_libdir/libsss_idmap.so
|
|
|
|
%_libdir/pkgconfig/sss_idmap.pc
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%files -n libsss_nss_idmap0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libsss_nss_idmap.so.0*
|
|
|
|
|
|
|
|
%files -n libsss_nss_idmap-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/sss_nss_idmap.h
|
|
|
|
%_libdir/libsss_nss_idmap.so
|
|
|
|
%_libdir/pkgconfig/sss_nss_idmap.pc
|
|
|
|
|
2014-08-15 09:58:17 +02:00
|
|
|
%files -n libsss_simpleifp0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libsss_simpleifp.so.0*
|
|
|
|
|
|
|
|
%files -n libsss_simpleifp-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/sss_sifp*.h
|
|
|
|
%_libdir/libsss_simpleifp.so
|
|
|
|
%_libdir/pkgconfig/sss_simpleifp.pc
|
|
|
|
|
2012-12-17 09:38:59 +01:00
|
|
|
%files -n libsss_sudo
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libsss_sudo.so
|
|
|
|
|
2012-03-20 11:35:54 +01:00
|
|
|
%files -n python-ipa_hbac
|
|
|
|
%defattr(-,root,root)
|
2013-12-02 15:09:06 +01:00
|
|
|
%dir %python_sitearch
|
2012-03-20 11:35:54 +01:00
|
|
|
%python_sitearch/pyhbac.so
|
|
|
|
|
2013-12-02 15:09:06 +01:00
|
|
|
%files -n python-sss_nss_idmap
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %python_sitearch
|
|
|
|
%python_sitearch/pysss_nss_idmap.so
|
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%files -n python-sssd-config
|
2012-03-20 11:35:54 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%python_sitearch/pysss.so
|
2012-12-17 09:38:59 +01:00
|
|
|
%python_sitearch/pysss_murmur.so
|
2012-09-17 14:10:56 +02:00
|
|
|
%python_sitelib/SSSDConfig*
|
2011-10-19 16:17:34 +02:00
|
|
|
|
2010-03-08 18:24:35 +01:00
|
|
|
%changelog
|