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
18 Requires(post,preun): %{apxs}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
25 This is an authentication module for Apache that allows you to
26 authenticate HTTP clients using samba or windows-like server (using
30 To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
31 uwierzytelnianie klientów HTTP poprzez sambê lub serwer na Windows (z
32 u¿yciem protoko³u NTLM).
35 %setup -q -n mod_%{mod_name}2-%{version}
39 %{__make} APXS=%{apxs}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_pkglibdir}
45 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
48 rm -rf $RPM_BUILD_ROOT
51 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
52 if [ -f /var/lock/subsys/httpd ]; then
53 /etc/rc.d/init.d/httpd restart 1>&2
57 if [ "$1" = "0" ]; then
58 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
59 if [ -f /var/lock/subsys/httpd ]; then
60 /etc/rc.d/init.d/httpd restart 1>&2
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_pkglibdir}/*