blob: d62271ce57e0b5cf6b3eee7babb99e1185bac03b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# TODO: review security issues
%define mod_name ntlm
%define apxs /usr/sbin/apxs
Summary: This is the NTLM authentication module for Apache
Summary(pl.UTF-8): Moduł uwierzytelnienia NTLM dla Apache
Name: apache-mod_%{mod_name}
Version: 0.1
Release: 0.1
Epoch: 1
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}2-%{version}.tgz
# Source0-md5: 8abe4f235af6825f723412e187cac96b
#Patch0: %{name}-security.patch
URL: http://modntlm.sourceforge.net/
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0
BuildRequires: rpmbuild(macros) >= 1.268
Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
%description
This is an authentication module for Apache that allows you to
authenticate HTTP clients using samba or windows-like server (using
NTLM protocol).
%description -l pl.UTF-8
To jest moduł uwierzytelnienia dla Apache pozwalający na
uwierzytelnianie klientów HTTP poprzez sambę lub serwer na Windows (z
użyciem protokołu NTLM).
%prep
%setup -q -n mod_%{mod_name}2-%{version}
#%patch -p1
%build
%{__make} APXS=%{apxs}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
%service -q httpd restart
%postun
if [ "$1" = "0" ]; then
%service -q httpd restart
fi
%files
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*.so
|