Пакет cntlm: Specfile

Version:        0.35.1
Release:        alt3

Summary:        Fast NTLM authentication proxy with tunneling
Name:           cntlm
License:        GPL-2
Group: 		System/Servers
URL:            http://cntlm.sourceforge.net/


Source0:        %name-%version.tar.bz2
Source1:        cntlm.init

%description
Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
authenticated connection caching, ACLs, proper daemon logging and behaviour
and much more. It has up to ten times faster responses than similar NTLM
proxies, while using by orders or magnitude less RAM and CPU. Manual page 
contains detailed information.

%prep
%setup
%__subst 's!\-o root \-g root \-m [[:digit:]]\+!!g' Makefile

%build			
%configure
%make_build SYSCONFDIR=%_sysconfdir \
	BINDIR=%_bindir \
	MANDIR=%_mandir

%install
%makeinstall SYSCONFDIR=%buildroot/%_sysconfdir \
	BINDIR=%buildroot/%_bindir \
	MANDIR=%buildroot/%_mandir

%__install -D -m 755 %SOURCE1 %buildroot/%_initrddir/cntlmd

%files
%doc LICENSE README COPYRIGHT
%_bindir/cntlm
%_man1dir/cntlm.1*
%config(noreplace) %_sysconfdir/cntlm.conf
%config(noreplace) %_initrddir/cntlmd

%pre
%_sbindir/useradd -s /sbin/nologin -m -r -k /var/empty -d /var/run/cntlm cntlm >/dev/null 2>&1 ||:

%post
%post_service cntlmd

%preun
%preun_service cntlmd

%changelog
* Thu Feb 14 2008 Maxim Ivanov <redbaron@altlinux.ru> 0.35.1-alt3
- Init script fixed

* Wed Feb 13 2008 Maxim Ivanov <redbaron@altlinux.ru> 0.35.1-alt2
- Add user script corrected

* Tue Feb 12 2008 Maxim Ivanov <redbaron@altlinux.ru> 0.35.1-alt1
- Inital build for Sisyphus