LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File nss-pam-ldapd.spec of Package nss-pam-ldapd (Project network:ldap)

# spec file for package nss-pam-ldapd
# Copyright (c) 2013 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:           nss-pam-ldapd
BuildRequires:  automake
BuildRequires:  krb5-devel
BuildRequires:  openldap2-devel
BuildRequires:  pam-devel
Version:        0.8.10
Release:        0
Summary:        NSS module and daemon for using LDAP as a naming service
License:        LGPL-2.1+
Group:          Productivity/Networking/LDAP/Clients
Url:            http://arthurdejong.org/nss-ldapd/
PreReq:         /bin/chmod
Conflicts:      nss_ldap pam_ldap
Obsoletes:      nss-ldapd < %{version}-%{release}
Provides:       nss-ldapd = %{version}-%{release}
Source:         nss-pam-ldapd-%{version}.tar.bz2
Source1:        rc.nslcd
Source2:        baselibs.conf
Source100:      nss-pam-ldapd-0.8.10-rpmlintrc
Patch0:         nslcd-user-conf.dif
Patch1:         bnc#804682.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package provides a Name Service Switch module that allows your
LDAP server to provide user account, group, host name, alias, netgroup,
and basically any other information that you would normally get from
/etc flat files or NIS. Nss-ldapd is a fork of the nss_ldap package by
PADL Software Pty Ltd.. implementing some structural design changes
that were needed to fix some issues of the original design.

    Luke Howard <lukeh@padl.com>
    West Consulting <info@west.nl>
    Arthur de Jong <arthur@arthurdejong.org>

%setup -q
cp -v %{S:1} .
%patch0 -p1
%patch1 -p1

%{?suse_update_config:%{suse_update_config -f}}
autoreconf -i
CPPFLAGS="-I/usr/include/sasl" \
./configure --prefix=/usr \
            --mandir=%{_mandir} \
	    --libdir=/%{_lib} \
	    --with-pam-seclib-dir=/%{_lib}/security \
make %{?jobs:-j%jobs}

mkdir -p $RPM_BUILD_ROOT/etc/init.d/
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd
ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd
install -d $RPM_BUILD_ROOT/var/run/nslcd



%stop_on_removal nslcd

%restart_on_update nslcd

%doc %{_mandir}/man5/*
%doc %{_mandir}/man8/*
%config(noreplace) %attr(640,root,root) /etc/nslcd.conf
%config /etc/init.d/nslcd
%dir %attr(0755, root, root) %ghost /var/run/nslcd