1 %define mod_name auth_pam
2 Summary: This is the PAM authentication module for Apache
3 Name: apache-mod_%{mod_name}
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Source0: http://pam.sourceforge.net/mod_auth_pam/dist/mod_%{mod_name}.tar.gz
11 BuildRequires: /usr/sbin/apxs
12 BuildRequires: apache(EAPI)-devel
13 Prereq: /usr/sbin/apxs
14 Requires: apache(EAPI)
15 URL: http://pam.sourceforge.net/mod_auth_pam/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
21 This is an authentication module for Apache that allows you to
22 authenticate HTTP clients using user entries in an samba directory.
25 %setup -q -n mod_%{mod_name}-%{version}
28 /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_pkglibdir}
34 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
37 /usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
38 if [ -f /var/lock/subsys/httpd ]; then
39 /etc/rc.d/init.d/httpd restart 1>&2
43 if [ "$1" = "0" ]; then
44 /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
45 if [ -f /var/lock/subsys/httpd ]; then
46 /etc/rc.d/init.d/httpd restart 1>&2
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_pkglibdir}/*