Accepting request 297880 from home:pluskalm:branches:server:proxy
- Cleanup spec file with spec-cleaner - Use url for source - Correct unit file permissions, scriplet and rcservice symlink OBS-URL: https://build.opensuse.org/request/show/297880 OBS-URL: https://build.opensuse.org/package/show/server:proxy/cntlm?expand=0&rev=25
This commit is contained in:
parent
0fbd03ff88
commit
b054470f4c
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 12 20:03:45 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file with spec-cleaner
|
||||||
|
- Use url for source
|
||||||
|
- Correct unit file permissions, scriplet and rcservice
|
||||||
|
symlink
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 21 22:54:17 UTC 2014 - xrigou@otenet.gr
|
Fri Mar 21 22:54:17 UTC 2014 - xrigou@otenet.gr
|
||||||
|
|
||||||
|
73
cntlm.spec
73
cntlm.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cntlm
|
# spec file for package cntlm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2007 Scorpio IT, Deidesheim, Germany
|
# Copyright (c) 2007 Scorpio IT, Deidesheim, Germany
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -16,14 +16,15 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: cntlm
|
Name: cntlm
|
||||||
Summary: Fast NTLM authentication proxy with tunneling
|
|
||||||
Version: 0.92.3
|
Version: 0.92.3
|
||||||
Release: 1
|
Release: 0
|
||||||
|
Summary: Fast NTLM authentication proxy with tunneling
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Networking/Web/Proxy
|
Group: Productivity/Networking/Web/Proxy
|
||||||
Url: http://cntlm.sourceforge.net/
|
Url: http://cntlm.sourceforge.net/
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: http://sourceforge.net/projects/cntlm/files/cntlm/cntlm%{20}%{version}/%{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}.init
|
Source1: %{name}.init
|
||||||
Source2: %{name}.sysconfig
|
Source2: %{name}.sysconfig
|
||||||
Source3: %{name}.service
|
Source3: %{name}.service
|
||||||
@ -33,16 +34,17 @@ Patch0: cntlm-override-CFLAGS-CXXFLAGS-makefile.patch
|
|||||||
# PATCH-FIX-UPSTREAM cntlm-0.92.3-HTTP-1.1-persistent-connections-with-HTTP-1.0-clients.patch --cntlm doesn't handle correctly
|
# PATCH-FIX-UPSTREAM cntlm-0.92.3-HTTP-1.1-persistent-connections-with-HTTP-1.0-clients.patch --cntlm doesn't handle correctly
|
||||||
# between HTTP-1.0 and HTTP-1.1
|
# between HTTP-1.0 and HTTP-1.1
|
||||||
Patch1: cntlm-0.92.3-HTTP-1.1-persistent-connections-with-HTTP-1.0-clients.patch
|
Patch1: cntlm-0.92.3-HTTP-1.1-persistent-connections-with-HTTP-1.0-clients.patch
|
||||||
%if %suse_version < 1230
|
Requires(pre): grep
|
||||||
Requires(pre): %insserv_prereq %fillup_prereq
|
Requires(pre): pwdutils
|
||||||
%else
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%if 0%{?suse_version} < 1230
|
||||||
|
Requires(pre): %fillup_prereq
|
||||||
|
Requires(pre): %insserv_prereq
|
||||||
|
%else
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
BuildRequires: pkgconfig(systemd)
|
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Requires(pre): pwdutils
|
|
||||||
Requires(pre): grep
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
|
Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
|
||||||
@ -52,41 +54,45 @@ proxies, while using by orders or magnitude less RAM and CPU. Manual page
|
|||||||
contains detailed information.
|
contains detailed information.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p0
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
|
||||||
%if %suse_version < 1230
|
%if 0%{?suse_version} < 1230
|
||||||
%{__install} -d %{buildroot}/var/run/%{name}
|
install -d %{buildroot}%{_localstatedir}/run/%{name}
|
||||||
%{__install} -D -m 755 %{S:1} %{buildroot}/%{_initrddir}/%{name}
|
install -D -m 755 %{SOURCE1} %{buildroot}/%{_initddir}/%{name}
|
||||||
%{__ln_s} -f ../..%{_sysconfdir}/init.d/%{name} %{buildroot}/usr/sbin/rc%{name}
|
ln -s -f ../..%{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
||||||
%else
|
%else
|
||||||
# With systemd, use new standard pid directory /run
|
# With systemd, use new standard pid directory /run
|
||||||
%{__install} -d %{buildroot}/run/%{name}
|
install -d %{buildroot}/run/%{name}
|
||||||
%{__install} -D -m 755 %{S:3} %{buildroot}/%{_unitdir}/%{name}.service
|
install -D -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/%{name}.service
|
||||||
%{__install} -D -m 644 %{S:4} %{buildroot}/usr/lib/tmpfiles.d/%{name}.conf
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
|
||||||
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
%endif
|
%endif
|
||||||
%{__install} -D -m 644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# on `rpm -ivh` PARAM is 1
|
# on `rpm -ivh` PARAM is 1
|
||||||
# on `rpm -Uvh` PARAM is 2
|
# on `rpm -Uvh` PARAM is 2
|
||||||
# user cntlm
|
# user cntlm
|
||||||
if [ -z "`%{_bindir}/getent passwd "%{name}"`" ]; then
|
if [ -z "`%{_bindir}/getent passwd "%{name}"`" ]; then
|
||||||
%{_sbindir}/useradd -c "CNTLM Proxy Auth" -d /var/run/%{name} -g nogroup \
|
%{_sbindir}/useradd -c "CNTLM Proxy Auth" -d %{_localstatedir}/run/%{name} -g nogroup \
|
||||||
-r -s /bin/false %{name} 2>/dev/null;
|
-r -s /bin/false %{name} 2>/dev/null;
|
||||||
fi
|
fi
|
||||||
|
%if 0%{?suse_version} >= 1230
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
# on `rpm -e` PARAM is 0
|
# on `rpm -e` PARAM is 0
|
||||||
%if %suse_version < 1230
|
%if 0%{?suse_version} < 1230
|
||||||
%stop_on_removal cntlm
|
%stop_on_removal cntlm
|
||||||
%else
|
%else
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
@ -98,18 +104,18 @@ fi
|
|||||||
%post
|
%post
|
||||||
# on `rpm -ivh` PARAM is 1
|
# on `rpm -ivh` PARAM is 1
|
||||||
# on `rpm -Uvh` PARAM is 2
|
# on `rpm -Uvh` PARAM is 2
|
||||||
%if %suse_version < 1230
|
%if 0%{?suse_version} < 1230
|
||||||
%{fillup_and_insserv cntlm}
|
%{fillup_and_insserv cntlm}
|
||||||
%else
|
%else
|
||||||
%{fillup_only}
|
%fillup_only
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
# on `rpm -e` PARAM is 0
|
# on `rpm -e` PARAM is 0
|
||||||
%if %suse_version < 1230
|
%if 0%{?suse_version} < 1230
|
||||||
%restart_on_update cntlm
|
%restart_on_update cntlm
|
||||||
%{insserv_cleanup}
|
%insserv_cleanup
|
||||||
%else
|
%else
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
%endif
|
%endif
|
||||||
@ -118,16 +124,17 @@ fi
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYRIGHT LICENSE README VERSION
|
%doc COPYRIGHT LICENSE README VERSION
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
%if %suse_version < 1230
|
%if 0%{?suse_version} < 1230
|
||||||
%config(noreplace) %{_initrddir}/%{name}
|
%config(noreplace) %{_initddir}/%{name}
|
||||||
%ghost %dir %attr(755,%{name},root) /var/run/%{name}
|
%ghost %dir %attr(755,%{name},root) %{_localstatedir}/run/%{name}
|
||||||
%else
|
%else
|
||||||
%config(noreplace) %{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
%dir %{_libexecdir}/tmpfiles.d
|
||||||
%{_libexecdir}/tmpfiles.d/%{name}.conf
|
%{_libexecdir}/tmpfiles.d/%{name}.conf
|
||||||
%ghost %dir %attr(755,%{name},root) /run/%{name}
|
%ghost %dir %attr(755,%{name},root) /run/%{name}
|
||||||
%endif
|
%endif
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
/var/adm/fillup-templates/sysconfig.%{name}
|
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user