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: apache1-devel >= 1.3.39
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires: apache1(EAPI)
19 Obsoletes: apache-mod_ntlm <= 1:0.4
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
30 %description -l pl.UTF-8
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}-%{version}
40 %{__make} APXS=%{apxs}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
46 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
48 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
49 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
52 rm -rf $RPM_BUILD_ROOT
55 %service -q apache restart
58 if [ "$1" = "0" ]; then
59 %service -q apache restart
63 %defattr(644,root,root,755)
64 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
65 %attr(755,root,root) %{_pkglibdir}/*