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