]>
Commit | Line | Data |
---|---|---|
13e63204 | 1 | # TODO: review security issues |
5a9151ae | 2 | %define mod_name ntlm |
cf6743e7 | 3 | %define apxs /usr/sbin/apxs1 |
0241a871 | 4 | Summary: This is the NTLM authentication module for Apache |
dc757e91 | 5 | Summary(pl.UTF-8): Moduł uwierzytelnienia NTLM dla Apache |
cf6743e7 | 6 | Name: apache1-mod_%{mod_name} |
419a4f4f | 7 | Version: 0.4 |
5a8bbc4e | 8 | Release: 0.4 |
cf6743e7 | 9 | Epoch: 1 |
5a9151ae | 10 | License: GPL |
11 | Group: Networking/Daemons | |
8dd2d7d8 | 12 | Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz |
419a4f4f JB |
13 | # Source0-md5: 5e9b8d1abf872926d6ff01a05a7deb2a |
14 | Patch0: %{name}-security.patch | |
8dd2d7d8 | 15 | URL: http://modntlm.sourceforge.net/ |
bffaa1db | 16 | BuildRequires: apache1-devel >= 1.3.39 |
223cf739 | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
5a8bbc4e | 18 | Requires: apache1(EAPI) |
223cf739 | 19 | Obsoletes: apache-mod_ntlm <= 1:0.4 |
5a9151ae | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
eb1b77e2 ER |
22 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
23 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
5a9151ae | 24 | |
25 | %description | |
26 | This is an authentication module for Apache that allows you to | |
60308396 | 27 | authenticate HTTP clients using samba or windows-like server (using |
28 | NTLM protocol). | |
0241a871 | 29 | |
4f0ac014 JR |
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). | |
5a9151ae | 34 | |
9bf5b102 | 35 | %prep |
5a9151ae | 36 | %setup -q -n mod_%{mod_name}-%{version} |
667a33c6 | 37 | %patch0 -p1 |
5a9151ae | 38 | |
39 | %build | |
cf6743e7 | 40 | %{__make} APXS=%{apxs} |
5a9151ae | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
eb1b77e2 | 44 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} |
5a9151ae | 45 | |
46 | install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} | |
47 | ||
eb1b77e2 ER |
48 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ |
49 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf | |
50 | ||
8dd2d7d8 JB |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
5a9151ae | 54 | %post |
223cf739 | 55 | %service -q apache restart |
5a9151ae | 56 | |
85e1c503 | 57 | %postun |
5a9151ae | 58 | if [ "$1" = "0" ]; then |
223cf739 | 59 | %service -q apache restart |
5a9151ae | 60 | fi |
61 | ||
5a9151ae | 62 | %files |
63 | %defattr(644,root,root,755) | |
4988033d | 64 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf |
5a9151ae | 65 | %attr(755,root,root) %{_pkglibdir}/* |