1 # TODO: review security issues
3 %define apxs /usr/sbin/apxs1
4 Summary: This is the NTLM authentication module for Apache
5 Summary(pl.UTF-8): Moduł uwierzytelnienia NTLM dla Apache
6 Name: apache1-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz
13 # Source0-md5: 5e9b8d1abf872926d6ff01a05a7deb2a
14 Patch0: %{name}-security.patch
15 URL: http://modntlm.sourceforge.net/
16 BuildRequires: %{apxs}
17 BuildRequires: apache1-devel >= 1.3.33-2
18 BuildRequires: rpmbuild(macros) >= 1.268
19 Requires: apache1 >= 1.3.33-2
20 Obsoletes: apache-mod_ntlm <= 1:0.4
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
24 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
27 This is an authentication module for Apache that allows you to
28 authenticate HTTP clients using samba or windows-like server (using
31 %description -l pl.UTF-8
32 To jest moduł uwierzytelnienia dla Apache pozwalający na
33 uwierzytelnianie klientów HTTP poprzez sambę lub serwer na Windows (z
34 użyciem protokołu NTLM).
37 %setup -q -n mod_%{mod_name}-%{version}
41 %{__make} APXS=%{apxs}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
47 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
49 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
50 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
53 rm -rf $RPM_BUILD_ROOT
56 %service -q apache restart
59 if [ "$1" = "0" ]; then
60 %service -q apache restart
64 %defattr(644,root,root,755)
65 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
66 %attr(755,root,root) %{_pkglibdir}/*