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