1 %define mod_name auth_pam
2 %define apxs /usr/sbin/apxs1
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: apache1-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://pam.sourceforge.net/mod_auth_pam/dist/mod_%{mod_name}-%{version}.tar.gz
13 # Source0-md5: b1e36b5df18a177e671785f7f4c8001c
14 Patch0: %{name}-symbol_fix.patch
15 Patch1: %{name}-broken_lines.patch
16 URL: http://pam.sourceforge.net/mod_auth_pam/
17 BuildRequires: %{apxs}
18 BuildRequires: apache1-devel >= 1.3.33-2
19 BuildRequires: pam-devel
20 BuildRequires: rpmbuild(macros) >= 1.268
21 Requires(triggerpostun): %{apxs}
22 Requires: apache1(EAPI)
23 Obsoletes: apache-mod_auth_pam <= 1.1.1-4
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
27 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
30 This is an authentication module for Apache that allows you to
31 authenticate HTTP clients using PAM (pluggable authentication module).
34 Este módulo permite autenticar clientes HTTP usando el directorio PAM.
37 To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
38 uwierzytelnianie klientów HTTP przez PAM.
41 Este módulo permite que você autentique clientes HTTP usando o
45 %setup -q -n mod_%{mod_name}-%{version}
50 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lpam -ldl
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,/etc/pam.d}
56 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
57 install samples/httpd- $RPM_BUILD_ROOT/etc/pam.d/httpd
59 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
60 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
63 rm -rf $RPM_BUILD_ROOT
66 %service -q apache restart
69 if [ "$1" = "0" ]; then
70 %service -q apache restart
73 %triggerpostun -- apache1-mod_%{mod_name} < 1.1.1-3.1
74 # check that they're not using old apache.conf
75 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
76 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
80 %defattr(644,root,root,755)
81 %doc doc/{configure,faq}.txt samples/dot-htaccess README
82 %config(noreplace) /etc/pam.d/httpd
83 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
84 %attr(755,root,root) %{_pkglibdir}/*