%define name mod_auth_pam %define release 1mdk %define version 1.1.1 Summary: Pam authorisation for Apache Name: %name Version: %version Release: %release License: LGPL Group: System/Servers Source: http://pam.sourceforge.net/mod_auth_pam/dist/%name-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root Url: http://pam.sourceforge.net/mod_auth_pam/ BuildRequires: apache-devel %description The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library. Thereby it supports standard unix passwd, shadow, NIS, SMB auth and radius authentication transparently and easily interchangeable, wherever the HTTP protocol allows it. %prep rm -rf $RPM_BUILD_ROOT %setup -q %build cp mod_auth_pam.c mod_pam_auth.c /usr/sbin/apxs -c mod_pam_auth.c -o mod_pam_auth.so -lpam -ldl %install mkdir -p $RPM_BUILD_ROOT/usr/lib/apache cp mod_pam_auth.so $RPM_BUILD_ROOT/usr/lib/apache/mod_pam_auth.so chmod 755 $RPM_BUILD_ROOT/usr/lib/apache/mod_pam_auth.so mkdir -p $RPM_BUILD_ROOT/etc/pam.d cp samples/httpd-rh6+ $RPM_BUILD_ROOT/etc/pam.d/httpd %post #/usr/sbin/apxs -e -a -S LIBEXECDIR=modules -n pam_auth mod_pam_auth.so %files %defattr(-,root,root) %{_libdir}/apache/mod_pam_auth.so %defattr(644,root,root,755) %doc INSTALL README doc/configure.txt doc/faq.txt doc/install.txt %config(noreplace) %{_sysconfdir}/pam.d/httpd %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %changelog * Tue Aug 27 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.1.1-1mdk - from Franck Martin <franck@sopac.org> : - Packaged for mdk8.2