Summary: A checkpassword compatible authentication program Name: checkpassword-pam Version: 0.99 Release: %mkrel 3 License: GPL Group: System/Servers URL: http://checkpasswd-pam.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 BuildPreReq: pam-devel Provides: checkpassword BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description checkpassword-pam is an implementation of checkpassword-compatible authentication program. Checkpassword is described in <URL:http://cr.yp.to/checkpwd.html> checkpassword-pam was written from scratch. There are several older packages called checkpassword-pam, derived from DJB's checkpassword code. This checkpassword-pam is more modern and administrator-friendly. If you are using Linux-PAM, make sure it is more recent than 0.59. Incompatibilities are in the PAM conversation function (number of requests vs number of responses). All modern Linux distribution use PAM newer than that. %prep %setup -q %build %configure2_5x %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}/bin install -d %{buildroot}%{_sysconfdir}/pam.d install -d %{buildroot}%{_mandir}/man8 install -m755 checkpassword-pam %{buildroot}/bin/ install -m644 checkpassword-pam.8 %{buildroot}%{_mandir}/man8/ # This is taken from %{_sysconfdir}/pam.d/login # I hope this is sufficent? cat > %{buildroot}%{_sysconfdir}/pam.d/checkpassword-pam << EOF #%PAM-1.0 auth required pam_securetty.so auth include system-auth auth required pam_nologin.so account include system-auth password include system-auth session include system-auth session optional pam_console.so EOF chmod 644 %{buildroot}%{_sysconfdir}/pam.d/checkpassword-pam %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-, root, root) %doc AUTHORS NEWS README interface.html %attr(644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/checkpassword-pam %attr(755,root,root) /bin/checkpassword-pam %attr(644,root,root) %{_mandir}/man8/checkpassword-pam.8* %changelog * Fri Jan 26 2007 Oden Eriksson <oeriksson@mandriva.com> 0.99-3mdv2007.0 + Revision: 113774 - Import checkpassword-pam * Fri Jan 26 2007 Oden Eriksson <oeriksson@mandriva.com> 0.99-3mdv2007.1 - fix pam * Sun Dec 25 2005 Oden Eriksson <oeriksson@mandriva.com> 0.99-2mdk - rebuild * Sat Nov 13 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.99-1mdk - 0.99 * Wed Oct 01 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.98-1mdk - 0.98 * Mon Aug 04 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.97-1mdk - 0.97 - use the %%configure2_5x macro * Sat Jul 12 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.96-1mdk - 0.96 * Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.95-2mdk - rebuild * Mon Jan 27 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.95-1mdk - initial cooker contrib