Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 43e8d538960df17207399d7cce8c00a0 > files > 7

nss_ldap-257-2mdv2008.0.src.rpm

%define name 	nss_ldap
%define version 257
%define release %mkrel 2

Summary:	NSS library and PAM module for LDAP
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
License:	LGPL
Group:		System/Libraries
URL: 		http://www.padl.com/
BuildRequires:	openldap-devel >= 2.0.7-7.1mdk
BuildRequires:	automake1.4
Source0:	http://www.padl.com/download/%{name}-%{version}.tar.gz
Patch0:		nss_ldap-makefile.patch
Patch1:		nss_ldap-250-bind_policy_default_soft.patch
# http://bugzilla.padl.com/show_bug.cgi?id=338
Patch2:         nss_ldap-257-uri.patch
# http://bugzilla.padl.com/show_bug.cgi?id=332
Patch3:         nss_ldap-257-pwchangemapping.patch
# http://bugzilla.padl.com/show_bug.cgi?id=343
Patch4:         nss_ldap-257-dnsdomain.patch
BuildRoot: 	%{_tmppath}/%{name}-%{version}-buildroot

%description
This package includes two LDAP access clients: nss_ldap and pam_ldap.
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).

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q
%patch0 -p1 -b .makefile
%patch1 -p1 -b .bind_policy_soft
%patch2 -p1 -b .uri
%patch3 -p1 -b .pwchangemap
%patch4 -p1 -b .dnsdomain
# first line not commented upstream for some reason
perl -pi -e 's/^ /#/' ldap.conf

%build

%serverbuild
# Build nss_ldap.
#aclocal && automake && autoheader && autoconf
#autoreconf --force

rm -f configure
libtoolize --copy --force; aclocal; autoconf; automake

%configure --enable-schema-mapping --with-ldap-lib=openldap --enable-debug \
--enable-rfc2307bis --enable-sfu-mapping --enable-ids-uid --libdir=/%{_lib}
%__make INST_UID=`id -u` INST_GID=`id -g`

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_sysconfdir}
install -d $RPM_BUILD_ROOT/%{_lib}/security

# Install the nsswitch module.
%make install DESTDIR="${RPM_BUILD_ROOT}" INST_UID=`id -u` INST_GID=`id -g` \
	libdir=/%{_lib}

echo "secret" > $RPM_BUILD_ROOT/%{_sysconfdir}/ldap.secret

# Remove unpackaged file
rm -rf	$RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.ldap \
	$RPM_BUILD_ROOT%{_libdir}/libnss_ldap.so.2

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
if [ -f /etc/init.d/nscd ]; then
	/sbin/service nscd restart >/dev/null 2>/dev/null || :
fi

%postun
/sbin/ldconfig
if [ -f /etc/init.d/nscd ]; then
	/sbin/service nscd restart >/dev/null 2>/dev/null || :
fi

%files
%defattr(-,root,root)
%doc ANNOUNCE AUTHORS ChangeLog COPYING NEWS README doc INSTALL
%doc nsswitch.ldap certutil ldap.conf
%attr (600,root,root) %config(noreplace) %{_sysconfdir}/ldap.secret
%attr (644,root,root) %config(noreplace) %{_sysconfdir}/ldap.conf
/%{_lib}/*so*
%{_mandir}/man5/nss_ldap.5.*




%changelog
* Mon Oct 01 2007 Andreas Hasenack <andreas@mandriva.com> 257-2mdv2008.0
+ Revision: 94171
- fix for padl #338 (nss_ldap constructs
  LDAP URIs incorrectly)
- fix for padl #332 (--enable-schema-mapping
  sets pw_change wrong)
- fix for padl #343 (nss_srv_domain does not
  take a domain, but a record)

* Fri Aug 24 2007 Andreas Hasenack <andreas@mandriva.com> 257-1mdv2008.0
+ Revision: 71049
- updated to version 257 (Closes: #32597)

* Fri Jun 22 2007 Andreas Hasenack <andreas@mandriva.com> 254-2mdv2008.0
+ Revision: 43308
- rebuild with new serverbuild (-fstack-protector)


* Thu Jan 11 2007 Buchan Milne <bgmilne@mandriva.org> 254-1mdv2007.0
+ Revision: 107664
- New version 254
- Import nss_ldap

* Wed May 03 2006 Buchan Milne <bgmilne@mandriva.org> 250-1mdk
- New release 250
- update P1

* Fri Mar 17 2006 Buchan Milne <bgmilne@mandriva.org> 249-1mdk
- New release 249
- Add P1 to default bind_policy to "soft", so as to keep previous default
  behaviour of not retyring binds to servers that are not available 
  (ie during boot).
- Fix first line of ldap.conf (Bug #21653)

* Fri Jan 20 2006 Buchan Milne <bgmilne@mandriva.org> 246-1mdk
- New release 246

* Tue Jan 17 2006 Buchan Milne <bgmilne@mandriva.org> 245-1mdk
- New release 245
- drop p1 and p2 (fixed upstream)

* Wed Dec 28 2005 Leonardo Chiquitto Filho <chiquitto@mandriva.com> 239-4mdk
- Backport two patches from 240 and 244, the last one fixes #20287

* Wed Sep 07 2005 Oden Eriksson <oeriksson@mandriva.com> 239-3mdk
- rebuild

* Wed Aug 31 2005 Buchan Milne <bgmilne@linux-mandrake.com> 239-2mdk
- Rebuild for new libldap-2.3
- buildrequire openldap-devel, not libldap-devel

* Wed Jun 29 2005 Buchan Milne <bgmilne@linux-mandrake.com> 239-1mdk
- New release 239
- rpmbuildupdate-able
- drop db patches (db is no longer used)

* Tue May 31 2005 Stefan van der Eijk <stefan@eijk.nu> 220-6mdk
- split off pam_ldap into seperate package
- libtoolize (thanks Oden!)

* Fri Mar 11 2005 Pascal Terjan <pterjan@mandrake.org> 220-5mdk
- don't break using uri with patch 3 (#7551)

* Fri Feb 04 2005 Buchan Milne <bgmilne@linux-mandrake.com> 220-4mdk
- rebuild for ldap2.2_7

* Mon Aug 23 2004 Luca Berra <bluca@vodka.it> 220-3mdk 
- buildrequre autoconf-2.1 and automake-1.4
- force autoreconf

* Fri Aug 13 2004 Luca Berra <bluca@vodka.it> 220-2mdk 
- use libdb_nss 4.2
- pam_ldap 170

* Thu Jul 01 2004 Florin <florin@mandrakesoft.com> 220-1mdk
- nss_ldap 220
- remove the useless version and noent patches

* Thu Apr 29 2004 Florin <florin@mandrakesoft.com> 217-1mdk
- nss_ldap 217
- pam_ldap 169
- add the noent and version patches
- remove the 150 db3 obsolete patch