2 Summary: This is the NTLM authentication module for Apache
3 Summary(pl): Modu³ autentykacji NTLM dla Apache
4 Name: apache-mod_%{mod_name}
8 Group: Networking/Daemons
9 Group(de): Netzwerkwesen/Server
10 Group(pl): Sieciowe/Serwery
11 Source0: http://prdownloads.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz
12 Patch0: %{name}-symbol_fix.patch
13 BuildRequires: /usr/sbin/apxs
14 BuildRequires: apache(EAPI)-devel
15 Prereq: /usr/sbin/apxs
16 Requires: apache(EAPI)
17 URL: http://modntlm.sourceforge.net/
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
23 This is an authentication module for Apache that allows you to
24 authenticate HTTP clients using samba or windows-like server
25 (using NTLM protocol).
28 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
29 klientów HTTP poprzez sambê lub serwer na Windows (z u¿yciem
33 %setup -q -n mod_%{mod_name}-%{version}
37 /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_pkglibdir}
43 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
46 /usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
47 if [ -f /var/lock/subsys/httpd ]; then
48 /etc/rc.d/init.d/httpd restart 1>&2
52 if [ "$1" = "0" ]; then
53 /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
54 if [ -f /var/lock/subsys/httpd ]; then
55 /etc/rc.d/init.d/httpd restart 1>&2
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_pkglibdir}/*