%define name pam_ccreds %define version 4 %define release %mkrel 3 Summary: A caching pam module for disconnected operation Name: %{name} Version: %{version} Release: %{release} Source: http://www.padl.com/download/%{name}-%{version}.tar.gz Patch: pam_ccreds-dbnss.patch Patch1: pam_ccreds-4-chkpwd.patch Group: System/Libraries License: GPL Buildroot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: pam-devel BuildRequires: db_nss-devel >= 4.2.52-5mdk BuildRequires: openssl-devel Url: http://www.padl.com/ %description The pam_ccreds module provides a mechanism for caching credentials when authenticating against a network authentication service, so that authentication can still proceed when the service is down. Note at present no mechanism is provided for caching _authorization_ information, i.e. whether you are allowed to login once authenticated. Doing this is more difficult than it first sounds. %prep %setup -q %patch0 -p1 -b .dbnss %patch1 -p1 -b .helper %build rm configure touch compile autoreconf %configure2_5x --libdir=/%{_lib} make %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_lib}/security mkdir -p %{buildroot}/%{_sbindir} install pam_ccreds.so %{buildroot}/%{_lib}/security install cc_dump cc_test %{buildroot}/%{_sbindir} install -m4755 ccreds_validate %{buildroot}/%{_sbindir} %files %defattr(-,root,root,755) %doc AUTHORS README ChangeLog pam.conf %{_sbindir}/ccreds_validate %{_sbindir}/cc_dump %{_sbindir}/cc_test /%{_lib}/security/pam_ccreds.so %clean rm -rf %{buildroot} %changelog * Mon Jun 16 2008 Thierry Vignaud <tvignaud@mandriva.com> 4-3mdv2009.0 + Revision: 220243 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Nov 16 2006 Buchan Milne <bgmilne@mandriva.org> 4-2mdv2007.0 + Revision: 84964 - ship the ccreds_validate binary required for non-root use * Sat Oct 07 2006 Buchan Milne <bgmilne@mandriva.org> 4-1mdv2007.1 + Revision: 62924 - Import pam_ccreds * Tue Oct 03 2006 Buchan Milne <bgmilne@mandriva.org> 4-1mdv2007.0 - new version 4 - apply patch adding setuid helper from Mike Petullo * Tue Jan 03 2006 Buchan Milne <bgmilne@mandriva.org> 3-1mdk - New release 3 - use %%mkrel * Sun Sep 18 2005 Luca Berra <bluca@vodka.it> 0.1-3mdk - rebuild * Tue Aug 17 2004 Luca Berra <bluca@vodka.it> 0.1-2mdk - updated to use libdb_nss 4.2 * Tue Mar 02 2004 Luca Berra <bluca@vodka.it> 0.1-1mdk - initial mandrake contrib