Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220205

Summary: ebuild for cntlm an ntlm authenticating proxy
Product: Gentoo Linux Reporter: Simon Keimer <skeimer>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: mlm, svrmarty, wojciech
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: net-proxy/cntlm -0.35.1 initial ebuild
cntlm-0.35.1.ebuild
proposed ebuild
sample /etc/init.d/cntlm
sample /etc/conf.d/cntlm
revised ebuild
revised init script
revised conf.d script
again revised ebuild - moved enewuser/enewgroup to postinst.

Description Simon Keimer 2008-05-04 09:33:47 UTC
This is the initial ebuild for net-proxy/cntlm-0.35.1
Comment 1 Simon Keimer 2008-05-04 09:34:35 UTC
Created attachment 151779 [details]
net-proxy/cntlm -0.35.1 initial ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-05-04 12:01:51 UTC
- stray space at the end of the description
- invalid license, have a look at /usr/portage/licenses
- keywords should be ~arch
- i've the idea r/dependencies might be missing
Comment 3 Marek Miller 2008-05-22 21:47:35 UTC
I've fixed the ebuild. And tested it on my x86.
The man page says that default configuration file for
a version compiled from source is /usr/local/etc/cntlm.conf,
so I suggest changing the Makefile and setting it to /etc/cntlm.conf 
(Without this the porgram prints error message:
     cntlm: Could not open default config file
)


I also browsed the homepage for dependencies and found:

"Cntlm has no dependencies. It uses ISO C99 and POSIX.1-2001 interface (i.e. SUSv3 / UNIX 03), and can be made POSIX.1c / SUSv2 / UNIX 98 or even older standards compliant (incl. other threading libraries). Compiles cleanly on any UNIX-like system (both little and big endian; GCC and IBM XL C/C++ being officially supported) having sane libc and POSIX threads."

Comment 4 Marek Miller 2008-05-22 21:48:42 UTC
Created attachment 153995 [details]
cntlm-0.35.1.ebuild
Comment 5 Wojciech Porczyk 2008-06-18 20:52:20 UTC
Created attachment 157495 [details]
proposed ebuild

I am submitting improved ebuild. It creates user and group 'cntlm' and also installs init.d and conf.d files.
Comment 6 Wojciech Porczyk 2008-06-18 20:54:48 UTC
Created attachment 157497 [details]
sample /etc/init.d/cntlm

sample (i.e. _very_ stupid) /etc/init.d/cntlm
probably works
Comment 7 Wojciech Porczyk 2008-06-18 20:56:23 UTC
Created attachment 157499 [details]
sample /etc/conf.d/cntlm

/etc/conf.d/cntlm compatible with my /etc/init.d/cntlm
Comment 8 svrmarty 2010-02-24 09:43:21 UTC
please add this ebuild,

it's very useful if net-proxy/ntlmaps doesn't work
Comment 9 svrmarty 2010-02-24 10:26:25 UTC
i suggest to change pid-file in init.d to directory /var/run/cntlm
to run it with user cntlm, cause it won't start without write permissions in /var/run
Comment 10 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:04:10 UTC
Created attachment 220965 [details]
revised ebuild
Comment 11 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:04:38 UTC
Created attachment 220967 [details]
revised init script
Comment 12 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:04:56 UTC
Created attachment 220969 [details]
revised conf.d script
Comment 13 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:05:40 UTC
it builds installs and works for me now.
Comment 14 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:12:13 UTC
Created attachment 220971 [details]
again revised ebuild - moved enewuser/enewgroup to postinst.
Comment 15 Markus Duft (RETIRED) gentoo-dev 2010-02-24 13:19:06 UTC
added an ebuild for it :) using it personally too now.