|
Matt Domsch |
5d56d1b |
%{!?_initddir: %global _initddir %{_sysconfdir}/rc.d/init.d}
|
|
Matt Domsch |
5d56d1b |
|
|
Matt Domsch |
8ba2153 |
Summary: Fast NTLM authentication proxy with tunneling
|
|
Matt Domsch |
8ba2153 |
Name: cntlm
|
|
Matt Domsch |
8ba2153 |
Version: 0.35.1
|
|
Matt Domsch |
d5f57a4 |
Release: 6%{?dist}
|
|
Matt Domsch |
8ba2153 |
License: GPLv2+
|
|
Matt Domsch |
8ba2153 |
Group: System Environment/Daemons
|
|
Matt Domsch |
8ba2153 |
URL: http://cntlm.sourceforge.net/
|
|
Matt Domsch |
8ba2153 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Matt Domsch |
8ba2153 |
Source1: cntlm.init
|
|
Matt Domsch |
8ba2153 |
Source2: cntlm.init.fedora
|
|
Matt Domsch |
8ba2153 |
Source3: cntlm.sysconfig
|
|
Matt Domsch |
8ba2153 |
Patch0: cntlm-0.35.1-Makefile.patch
|
|
Matt Domsch |
8ba2153 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
Matt Domsch |
8ba2153 |
Requires(post): chkconfig
|
|
Matt Domsch |
8ba2153 |
Requires(preun): chkconfig
|
|
Matt Domsch |
8ba2153 |
Requires(preun): initscripts
|
|
Matt Domsch |
8ba2153 |
Requires(pre): shadow-utils
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%description
|
|
Matt Domsch |
8ba2153 |
Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
|
|
Matt Domsch |
8ba2153 |
authenticated connection caching, ACLs, proper daemon logging and behavior
|
|
Matt Domsch |
8ba2153 |
and much more. It has up to ten times faster responses than similar NTLM
|
|
Matt Domsch |
8ba2153 |
proxies, while using by orders or magnitude less RAM and CPU. Manual page
|
|
Matt Domsch |
8ba2153 |
contains detailed information.
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%prep
|
|
Matt Domsch |
8ba2153 |
%setup -q
|
|
Matt Domsch |
8ba2153 |
%patch0 -p1
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%build
|
|
Matt Domsch |
8ba2153 |
%configure
|
|
Matt Domsch |
f3d22f4 |
make %{?_smp_mflags} SYSCONFDIR=%{_sysconfdir}
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%install
|
|
Matt Domsch |
8ba2153 |
rm -rf %{buildroot}
|
|
Matt Domsch |
8ba2153 |
make BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir} SYSCONFDIR=%{buildroot}%{_sysconfdir} install
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
install -D -m 0755 %{SOURCE2} %{buildroot}%{_initddir}/cntlmd
|
|
Matt Domsch |
8ba2153 |
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/cntlmd
|
|
Matt Domsch |
8ba2153 |
mkdir -p -m 0755 %{buildroot}%{_localstatedir}/run/%{name}
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%clean
|
|
Matt Domsch |
8ba2153 |
rm -rf %{buildroot}
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%files
|
|
Matt Domsch |
8ba2153 |
%defattr(-,root,root,-)
|
|
Matt Domsch |
8ba2153 |
%doc LICENSE README COPYRIGHT
|
|
Matt Domsch |
8ba2153 |
%{_sbindir}/%{name}
|
|
Matt Domsch |
8ba2153 |
%{_mandir}/man1/%{name}.1*
|
|
Matt Domsch |
8ba2153 |
%{_initddir}/cntlmd
|
|
Matt Domsch |
8ba2153 |
%attr(-,cntlm,cntlm) %{_localstatedir}/run/%{name}
|
|
Matt Domsch |
8ba2153 |
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
Matt Domsch |
8ba2153 |
%config(noreplace) %{_sysconfdir}/sysconfig/cntlmd
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%pre
|
|
Matt Domsch |
8ba2153 |
getent group %{name} > /dev/null || groupadd -r %{name}
|
|
Matt Domsch |
8ba2153 |
getent passwd %{name} > /dev/null || \
|
|
Matt Domsch |
8ba2153 |
useradd -r -g %{name} -d %{_localstatedir}/run/%{name} -s /sbin/nologin \
|
|
Matt Domsch |
8ba2153 |
-c "%{name} daemon" %{name}
|
|
Matt Domsch |
8ba2153 |
exit 0
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%post
|
|
Matt Domsch |
8ba2153 |
/sbin/chkconfig --add cntlmd
|
|
Matt Domsch |
8ba2153 |
exit 0
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%preun
|
|
Matt Domsch |
8ba2153 |
if [ $1 = 0 ]; then
|
|
Matt Domsch |
8ba2153 |
/sbin/service cntlmd stop > /dev/null 2>&1
|
|
Matt Domsch |
8ba2153 |
/sbin/chkconfig --del cntlmd
|
|
Matt Domsch |
8ba2153 |
fi
|
|
Matt Domsch |
8ba2153 |
exit 0
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%postun
|
|
Matt Domsch |
8ba2153 |
if [ "$1" -ge "1" ]; then
|
|
Matt Domsch |
8ba2153 |
/sbin/service cntlmd condrestart > /dev/null 2>&1 || :
|
|
Matt Domsch |
8ba2153 |
fi
|
|
Matt Domsch |
8ba2153 |
exit 0
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
%changelog
|
|
Matt Domsch |
d5f57a4 |
* Mon Sep 27 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.35.1-6
|
|
Matt Domsch |
d5f57a4 |
- set SYSCONFDIR during build. Fixes BZ637767
|
|
Matt Domsch |
d5f57a4 |
|
|
Matt Domsch |
5d56d1b |
* Wed Sep 1 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.35.1-5
|
|
Matt Domsch |
5d56d1b |
- add define for _initddir, needed on el5
|
|
Matt Domsch |
5d56d1b |
|
|
Matt Domsch |
8ba2153 |
* Thu Aug 26 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.35.1-4
|
|
Matt Domsch |
8ba2153 |
- initscript: use pidfile to killproc
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Wed Aug 25 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.35.1-3
|
|
Matt Domsch |
8ba2153 |
- additional fixes per package review
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Tue Aug 24 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.35.1-2
|
|
Matt Domsch |
8ba2153 |
- updated spec to match Fedora packaging guidelines
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Fri Jul 27 2007 Radislav Vrnata <vrnata at gedas.cz>
|
|
Matt Domsch |
8ba2153 |
- added support for SuSE Linux
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Wed Jul 26 2007 Radislav Vrnata <vrnata at gedas.cz>
|
|
Matt Domsch |
8ba2153 |
- fixed pre, post, preun, postun macros bugs affecting upgrade process
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Mon May 30 2007 Since 0.28 maintained by <dave@awk.cz>
|
|
Matt Domsch |
8ba2153 |
|
|
Matt Domsch |
8ba2153 |
* Mon May 28 2007 Radislav Vrnata <vrnata at gedas.cz>
|
|
Matt Domsch |
8ba2153 |
- Version 0.27
|
|
Matt Domsch |
8ba2153 |
- First release
|