2 %define apxs /usr/sbin/apxs
3 Summary: This is the NTLM authentication module for Apache
4 Summary(pl): Modu³ uwierzytelnienia NTLM dla Apache
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons
10 Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz
11 # Source0-md5: 5e9b8d1abf872926d6ff01a05a7deb2a
12 Patch0: %{name}-security.patch
13 URL: http://modntlm.sourceforge.net/
14 BuildRequires: %{apxs}
15 BuildRequires: apache(EAPI)-devel
16 Requires(post,preun): %{apxs}
17 Requires: apache(EAPI)
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _pkglibdir %(%{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 (using
28 To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
29 uwierzytelnianie klientów HTTP poprzez sambê lub serwer na Windows (z
30 u¿yciem protoko³u NTLM).
33 %setup -q -n mod_%{mod_name}-%{version}
37 PATH=$PATH:/usr/sbin %{__make}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_pkglibdir}
43 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
46 rm -rf $RPM_BUILD_ROOT
49 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
50 if [ -f /var/lock/subsys/httpd ]; then
51 /etc/rc.d/init.d/httpd restart 1>&2
55 if [ "$1" = "0" ]; then
56 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
57 if [ -f /var/lock/subsys/httpd ]; then
58 /etc/rc.d/init.d/httpd restart 1>&2
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_pkglibdir}/*