]> git.pld-linux.org Git - packages/apache-mod_ntlm.git/blame - apache-mod_ntlm.spec
- fix config dir
[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
524fd725 11Group: Networking/Daemons/HTTP
c366603f 12Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}2-%{version}.tgz
13# Source0-md5: 8abe4f235af6825f723412e187cac96b
5b445d33 14#Patch0: %{name}-security.patch
4d9cc2e5 15Patch1: %{name}-apr_pool.patch
9b75e456 16URL: http://modntlm.sourceforge.net/
90b333e3 17BuildRequires: %{apxs}
5b445d33 18BuildRequires: apache-devel >= 2.0
37668628 19BuildRequires: rpmbuild(macros) >= 1.268
5b445d33 20Requires: apache(modules-api) = %apache_modules_api
053182d6 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
9e6ddb97 23%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
5b445d33 24%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
053182d6 25
26%description
27This is an authentication module for Apache that allows you to
d46b1e9e 28authenticate HTTP clients using samba or windows-like server (using
29NTLM protocol).
ee611e8e 30
411d6c7f
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).
053182d6 35
cb169f56 36%prep
c366603f 37%setup -q -n mod_%{mod_name}2-%{version}
38#%patch -p1
77226201 39%patch1 -p0
053182d6 40
41%build
c366603f 42%{__make} APXS=%{apxs}
053182d6 43
44%install
45rm -rf $RPM_BUILD_ROOT
9e6ddb97 46install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
053182d6 47
5b445d33
ER
48install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
49echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
9e6ddb97 50 $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
053182d6 51
9b75e456
JB
52%clean
53rm -rf $RPM_BUILD_ROOT
54
053182d6 55%post
37668628 56%service -q httpd restart
053182d6 57
917fc0c9 58%postun
053182d6 59if [ "$1" = "0" ]; then
37668628 60 %service -q httpd restart
053182d6 61fi
62
053182d6 63%files
64%defattr(644,root,root,755)
9e6ddb97 65%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
5b445d33 66%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.070174 seconds and 4 git commands to generate.