1 # TODO: review security issues
3 %define apxs /usr/sbin/apxs
4 Summary: This is the NTLM authentication module for Apache
5 Summary(pl): Modu³ uwierzytelnienia NTLM dla Apache
6 Name: apache-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}2-%{version}.tgz
13 # Source0-md5: 8abe4f235af6825f723412e187cac96b
14 #Patch0: %{name}-security.patch
15 URL: http://modntlm.sourceforge.net/
16 BuildRequires: %{apxs}
17 BuildRequires: apache-devel >= 2.0
18 BuildRequires: rpmbuild(macros) >= 1.268
19 Requires: apache(modules-api) = %apache_modules_api
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
23 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
26 This is an authentication module for Apache that allows you to
27 authenticate HTTP clients using samba or windows-like server (using
31 To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
32 uwierzytelnianie klientów HTTP poprzez sambê lub serwer na Windows (z
33 u¿yciem protoko³u NTLM).
36 %setup -q -n mod_%{mod_name}2-%{version}
40 %{__make} APXS=%{apxs}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
46 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
47 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
48 $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
51 rm -rf $RPM_BUILD_ROOT
54 %service -q httpd restart
57 if [ "$1" = "0" ]; then
58 %service -q httpd restart
62 %defattr(644,root,root,755)
63 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
64 %attr(755,root,root) %{_pkglibdir}/*.so