Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039345
en ru br
Репозитории ALT
S:265-alt5
5.1: 264-alt1
4.1: 259-alt1
4.0: 259-alt1
3.0: 227-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: nss_ldap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 


%def_disable test
%def_disable debug
%def_disable krb

Name: nss_ldap
Version: 227
Release: alt1

Summary: NSS library for LDAP
Summary(ru_RU.KOI8-R): Библиотека NSS для LDAP

License: LGPL
Group: System/Base
Url: http://www.padl.com/

Source0: ftp://ftp.padl.com/pub/%name-%version.tar.bz2
Source1: %name-README.ALT

Patch0: %name-226-configure.patch
Patch1: %name-172-null.patch
Patch2: %name-210-explode_rdn-alt.patch
#Patch3: %name-210-segfault-alt.patch
#Patch4: %name-211-db4-alt.patch

Requires: nscd

# Automatically added by buildreq on Sat Jun 26 2004

BuildRequires: libdb4.2-devel libkrb5-devel libldap-devel libsasl2-devel

%description
Nss_ldap is a set of C library extensions which allows X.500 and LDAP
directory servers to be used as a primary source of aliases, ethers,
groups, hosts, networks, protocol, users, RPCs, services and shadow
passwords (instead of or in addition to using flat files or NIS).

Install %name if you need to run LDAP access clients.

%description -l ru_RU.KOI8-R
Nss_ldap это библиотека, написанная на C, которая позволяет использовать сервера директорий X.500 и LDAP как основной источник алиасов, групп, имен хостов, сетей, протоколов, пользователей, RPC, сервисов и паролей вместо плоских файлов или NIS.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
#%patch3 -p1
#%patch4 -p1

###

## Install Attention README
###
install -m 0644 %SOURCE1 README.ALT

%build
aclocal
autoconf

%configure \
--with-ldap-conf-file=%_sysconfdir/nss_ldap.conf \
--with-ldap-secret-file=%_sysconfdir/nss_ldap.secret \
--with-ldap-lib=openldap \
--enable-schema-mapping \
--enable-paged-results \
%if_enabled krb
--enable-configurable-krb5-ccname-gssapi \
--enable-configurable-krb5-ccname-env \
--with-gssapi-dir=%_includedir/krb5/gssapi \
%endif
%if_enabled debug
--enable-debugging
%endif


%make_build
%make check

%install

mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/lib,%_libdir}

# Install the nsswitch module.

%make_install install \
DESTDIR=$RPM_BUILD_ROOT \
INST_UID=`id -un` INST_GID=`id -gn`

mv $RPM_BUILD_ROOT%_libdir/* $RPM_BUILD_ROOT/lib/
chmod 755 $RPM_BUILD_ROOT/lib/*.so*

# Install /etc/nss_ldap.conf, becouse in nss_ldap and pam_ldap we have two the same files /etc/ldap.conf as a config files

# Install the default configuration file, but change the search bases to
# something generic.
sed -e 's/dc=padl/dc=example/g' ldap.conf >$RPM_BUILD_ROOT%_sysconfdir/nss_ldap.conf
chmod 644 $RPM_BUILD_ROOT%_sysconfdir/nss_ldap.conf
rm -f $RPM_BUILD_ROOT%_sysconfdir/nsswitch.ldap
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf

%files
/lib/*.so*
%config(noreplace) %_sysconfdir/nss_ldap.conf
%doc ANNOUNCE AUTHORS ChangeLog NEWS README
%doc nsswitch.ldap
%doc ldap.conf
%doc README.ALT

#[TODO]

#необходимо разобраться со сборкой вместе с krb
#
#

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin