1 %define mod_name auth_pam
2 %define apxs /usr/sbin/apxs
3 Summary: This is the PAM authentication module for Apache
4 Summary(es): Este módulo proporciona autenticación PAM para Apache
5 Summary(pl): Modu³ uwierzytelnienia PAM dla Apache
6 Summary(pt_BR): Este módulo provê autenticação PAM para o Apache
7 Name: apache-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://pam.sourceforge.net/mod_%{mod_name}/dist/mod_%{mod_name}-%{version}.tar.gz
13 # Source0-md5: 561a495f27e6cc810641bd6ce6db3d02
14 Source1: apache-mod_auth_pam.conf
15 Patch0: %{name}-missing_constant.patch
16 URL: http://pam.sourceforge.net/mod_auth_pam/
17 BuildRequires: %{apxs}
18 BuildRequires: apache-devel >= 2
19 BuildRequires: pam-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sysconfdir %(%{apxs} -q SYSCONFDIR)
24 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
27 This is an authentication module for Apache that allows you to
28 authenticate HTTP clients using PAM (pluggable authentication module).
31 Este módulo permite autenticar clientes HTTP usando el directorio PAM.
34 To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
35 uwierzytelnianie klientów HTTP przez PAM.
38 Este módulo permite que você autentique clientes HTTP usando o
42 %setup -q -n mod_%{mod_name}/apache-2.0
46 %{apxs} -c mod_%{mod_name}2.c -o mod_%{mod_name}2.la -lpam
47 %{apxs} -c mod_auth_etc_group.c -o mod_auth_etc_group.la -lpam
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_pkglibdir},/etc/pam.d,%{_sysconfdir}/httpd.conf/}
53 install .libs/mod_*.so $RPM_BUILD_ROOT%{_pkglibdir}
54 install ../samples/httpd- $RPM_BUILD_ROOT/etc/pam.d/httpd
55 install %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/httpd.conf/52_mod_auth_pam.conf
58 rm -rf $RPM_BUILD_ROOT
61 if [ -f /var/lock/subsys/httpd ]; then
62 /etc/rc.d/init.d/httpd restart 1>&2
66 if [ "$1" = "0" ]; then
67 if [ -f /var/lock/subsys/httpd ]; then
68 /etc/rc.d/init.d/httpd restart 1>&2
73 %defattr(644,root,root,755)
74 %doc ../doc/{configure,faq}.txt ../samples/dot-htaccess ../README
75 %config(noreplace) /etc/pam.d/httpd
76 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_pam.conf
77 %attr(755,root,root) %{_pkglibdir}/*.so