Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:biserov:cntlm-gss
cntlm
cntlm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cntlm.spec of Package cntlm
# # spec file for package cntlm # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2007 Scorpio IT, Deidesheim, Germany # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif Name: cntlm Version: 0.93.1gss Release: 0 Summary: Fast NTLM/Kerberos authentication proxy with tunneling License: GPL-2.0-or-later Group: Productivity/Networking/Web/Proxy URL: https://github.com/biserov/cntlm-gss/ Source0: cntlm-gss-%{version}.tar.gz Requires: krb5 BuildRequires: cmake BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(mit-krb5-gssapi) # suse_version %if %{defined suse_version} Requires(pre): pwdutils Requires(pre): group(nogroup) Provides: user(%{name}) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} < 1230 Requires(pre): %fillup_prereq Requires(pre): %insserv_prereq %else Requires(pre): %fillup_prereq %{?systemd_requires} %endif %endif # /suse_version %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 -q -n %name-gss-%version %build %cmake \ -DSYSCONF_INSTALL_DIR="%_sysconfdir" \ -DCMAKE_INSTALL_DOCDIR="%_docdir/%name" \ -DSYSTEMD_INSTALL_DIR="%_unitdir" %if %{defined cmake_build} %cmake_build %else %make_build %endif %install %if %{defined cmake_install} %cmake_install %else make install DESTDIR="%buildroot" %make_install %endif install -d %buildroot/%_localstatedir/run/%name install -d "%buildroot/%_localstatedir/log/%name" %if %{defined suse_version} ln -s %_sbindir/service %buildroot/%_sbindir/rc%name %endif install -d "%buildroot/%_tmpfilesdir/" cat >>"%buildroot/%_tmpfilesdir/%name.conf" <<-EOF d /run/%name 0700 %name nogroup - EOF # will be instlled by macro rm -f %buildroot/%_docdir/%name/COPYRIGHT rm -f %buildroot/%_docdir/%name/LICENSE %pre getent passwd "%name" >/dev/null || \ %_sbindir/useradd -c "CNTLM/GSS Proxy Auth" -d "%_localstatedir/run/%name" -g nogroup \ -r -s /bin/false "%name" %if 0%{?suse_version} >= 1230 %service_add_pre %{name}.service %endif %preun # on `rpm -e` PARAM is 0 %if 0%{?suse_version} < 1230 %stop_on_removal cntlm %else %service_del_preun %name.service %endif #if [ "$1" -eq 0 ]; then # %{_sbindir}/userdel %{name} #fi %post %fillup_only %service_add_post %name.service %if 0%{?suse_version} <= 1320 systemd-tmpfiles --create %_tmpfilesdir/%name.conf || : %else %tmpfiles_create %_tmpfilesdir/%name.conf %endif %postun %service_del_postun %name.service %files %defattr(-,root,root,-) %license COPYRIGHT LICENSE %dir %attr(-,root,root) %_docdir/%name %_docdir/%name/README %_docdir/%name/README.md %_docdir/%name/cntlm.conf %_mandir/man1/%name.1* %config(noreplace) %attr(0600,cntlm,nogroup) %_sysconfdir/%name.conf %_sbindir/* %_unitdir/%name.service %_tmpfilesdir/%name.conf %ghost %dir %attr(700,%name,nogroup) /run/%name %attr(700,%name,nogroup) %_localstatedir/log/%name %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor