1 %define mod_name auth_any
2 Summary: This is the any authentication module for Apache
3 Summary(pl): To jest modu³ dowolnej autentykacji dla Apache
4 Name: apache-mod_%{mod_name}
8 Group: Networking/Daemons
9 Group(de): Netzwerkwesen/Server
10 Group(pl): Sieciowe/Serwery
11 Source0: ftp://ftp.itlab.musc.edu/pub/toolbox/mod_%{mod_name}/mod_%{mod_name}-%{version}.tar.gz
12 URL: http://www.itlab.musc.edu/~nafees/mod_%{mod_name}.html
13 Prereq: /usr/sbin/apxs
14 Requires: apache(EAPI)
15 BuildRequires: /usr/sbin/apxs
16 BuildRequires: apache(EAPI)-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
22 This module allows you to use any command line program (such as
23 webNIS) to authenticate a user.
26 Ten modu³ pozwala na u¿ycie dowolnego programu dzia³aj±cego z linii
27 poleceñ (jak np. webNIS) do autentykacji u¿ytkownika.
30 %setup -q -n mod_%{mod_name}
33 /usr/sbin/apxs -c src/mod_%{mod_name}.c -o mod_%{mod_name}.so
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_pkglibdir}
39 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
44 rm -rf $RPM_BUILD_ROOT
47 /usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
48 if [ -f /var/lock/subsys/httpd ]; then
49 /etc/rc.d/init.d/httpd restart 1>&2
53 if [ "$1" = "0" ]; then
54 /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
55 if [ -f /var/lock/subsys/httpd ]; then
56 /etc/rc.d/init.d/httpd restart 1>&2
61 %defattr(644,root,root,755)
62 %attr(755,root,root) %{_pkglibdir}/*