Репозитории ALT
Группа :: Система/Основа
Пакет: pam_ldap
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%add_findprov_lib_path /lib/security
Name: pam_ldap
Version: 176
Release: alt1
Summary: PAM module for LDAP
Summary(ru_RU.KOI8-R): Модуль PAM для LDAP
License: LGPL
Group: System/Base
Url: http://www.padl.com/
Source0: ftp://ftp.padl.com/pub/%name-%version.tar.bz2
Source1:%name-system_auth-alt
Patch0: %name-46-pam_console.patch
Patch1: %name-125-null.patch
# Automatically added by buildreq on Fri Dec 17 2004
BuildRequires: hostinfo libldap-devel libpam-devel libsasl2-devel
%description
Pam_ldap is a module for Linux-PAM that supports password changes, V2
clients, Netscapes SSL, ypldapd, Netscape Directory Server password
policies, access authorization, crypted hashes, etc.
Install %name if you need to run LDAP access clients.
%description -l ru_RU.KOI8-R
Pam_ldap это модуль для Linux-PAM. Поддерживается изменение паролей, протокол LDAP версии 2, Netscapes SSL, ypldapd, Netscape Directory Server политики паролей, авторизация доступа, шифрованные хеши и т.д.
%prep
%setup -q
%patch0 -p1
##%patch1 -p1
### We create example dir for place here examples for ALT Linux
mkdir alt-examples
install -p -m644 %SOURCE1 alt-examples/system_auth
%build
aclocal
autoheader
autoconf
%configure \
--with-ldap-lib=openldap \
--with-ldap-conf-file=%_sysconfdir/pam_ldap.conf \
--with-ldap-secret-file=%_sysconfdir/pam_ldap.secret
%make_build
%make check
%install
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/lib,%_libdir}
# Install the nsswitch module.
install -pD -m755 pam_ldap.so $RPM_BUILD_ROOT/lib/security/pam_ldap.so
# 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/pam_ldap.conf
chmod 644 $RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
rm -f $RPM_BUILD_ROOT%_sysconfdir/nsswitch.ldap
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf
%files
/lib/security/*
### This file is different from nss_ldap package! It's in TODO for next release
%config(noreplace) %_sysconfdir/pam_ldap.conf
%doc AUTHORS ChangeLog README pam.d ldap.conf
%doc alt-examples
%changelog
…
Полный changelog можно просмотреть здесь
Name: pam_ldap
Version: 176
Release: alt1
Summary: PAM module for LDAP
Summary(ru_RU.KOI8-R): Модуль PAM для LDAP
License: LGPL
Group: System/Base
Url: http://www.padl.com/
Source0: ftp://ftp.padl.com/pub/%name-%version.tar.bz2
Source1:%name-system_auth-alt
Patch0: %name-46-pam_console.patch
Patch1: %name-125-null.patch
# Automatically added by buildreq on Fri Dec 17 2004
BuildRequires: hostinfo libldap-devel libpam-devel libsasl2-devel
%description
Pam_ldap is a module for Linux-PAM that supports password changes, V2
clients, Netscapes SSL, ypldapd, Netscape Directory Server password
policies, access authorization, crypted hashes, etc.
Install %name if you need to run LDAP access clients.
%description -l ru_RU.KOI8-R
Pam_ldap это модуль для Linux-PAM. Поддерживается изменение паролей, протокол LDAP версии 2, Netscapes SSL, ypldapd, Netscape Directory Server политики паролей, авторизация доступа, шифрованные хеши и т.д.
%prep
%setup -q
%patch0 -p1
##%patch1 -p1
### We create example dir for place here examples for ALT Linux
mkdir alt-examples
install -p -m644 %SOURCE1 alt-examples/system_auth
%build
aclocal
autoheader
autoconf
%configure \
--with-ldap-lib=openldap \
--with-ldap-conf-file=%_sysconfdir/pam_ldap.conf \
--with-ldap-secret-file=%_sysconfdir/pam_ldap.secret
%make_build
%make check
%install
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/lib,%_libdir}
# Install the nsswitch module.
install -pD -m755 pam_ldap.so $RPM_BUILD_ROOT/lib/security/pam_ldap.so
# 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/pam_ldap.conf
chmod 644 $RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
rm -f $RPM_BUILD_ROOT%_sysconfdir/nsswitch.ldap
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf
%files
/lib/security/*
### This file is different from nss_ldap package! It's in TODO for next release
%config(noreplace) %_sysconfdir/pam_ldap.conf
%doc AUTHORS ChangeLog README pam.d ldap.conf
%doc alt-examples
%changelog
…
Полный changelog можно просмотреть здесь