Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2009 10:42:31 +1000 (EST)
From:      Antony Mawer <ports@mawer.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ports@mawer.org
Subject:   ports/137016: New port: www/cntlm An NTLM/NTLM Session Response/NTLMv2 authenticating HTTP proxy
Message-ID:  <20090718004231.5B1F017255@ant-sentral.syd.gptech.local>
Resent-Message-ID: <200907222320.n6MNK2SS043589@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137016
>Category:       ports
>Synopsis:       New port: www/cntlm An NTLM/NTLM Session Response/NTLMv2 authenticating HTTP proxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 22 23:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Antony Mawer
>Release:        FreeBSD 6.3-FreeBSDL-p2 i386
>Organization:
GP Technology Solutions
>Environment:
System: FreeBSD ant-sentral.syd.gptech.local 6.3-FreeBSD-p2 FreeBSD 6.3-FreeBSD-p2 #1: Thu Jun 12 10:45:08 UTC 2008 ajmawer@sentral.gptech.com.au:/usr/obj/usr/src/sys/SENTRAL-SMP i386

>Description:
The following shar file adds a port for the cntlm http proxy, which provides a
standard unauthenticated loop-back proxy which is then tunnelled across an
NTLM-only proxy server. This can be useful in Windows enviroments where only
NTLM authenticated access is permitted to the Internet, as many UNIX-based
applications do not support NTLM natively.

>How-To-Repeat:
N/A

>Fix:

--- cntlm.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/www/cntlm
#	/usr/ports/www/cntlm/Makefile
#	/usr/ports/www/cntlm/pkg-descr
#	/usr/ports/www/cntlm/distinfo
#	/usr/ports/www/cntlm/files
#	/usr/ports/www/cntlm/files/cntlm.in
#	/usr/ports/www/cntlm/pkg-plist
#
echo c - /usr/ports/www/cntlm
mkdir -p /usr/ports/www/cntlm > /dev/null 2>&1
echo x - /usr/ports/www/cntlm/Makefile
sed 's/^X//' >/usr/ports/www/cntlm/Makefile << 'END-of-/usr/ports/www/cntlm/Makefile'
X# New ports collection makefile for:   cntlm
X# Date created:        23 July 2009
X# Whom:                Antony Mawer <ports@mawer.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		cntlm
XPORTVERSION=		0.35.1
XCATEGORIES=		www
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	cntlm
X
XMAINTAINER=		ports@mawer.org
XCOMMENT=		An NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy
X
XUSE_RC_SUBR=		cntlm
XHAS_CONFIGURE=		yes
XALL_TARGET=		cntlm
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
X	    ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/cntlm ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/doc/cntlm.conf ${PREFIX}/etc/cntlm.conf.sample
X	${INSTALL_MAN} ${WRKSRC}/doc/cntlm.1 ${PREFIX}/man/man1
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/etc/cntlm.conf ]; then \
X	    ${CP} -p ${PREFIX}/etc/cntlm.conf.sample ${PREFIX}/etc/cntlm.conf; \
X	fi
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/www/cntlm/Makefile
echo x - /usr/ports/www/cntlm/pkg-descr
sed 's/^X//' >/usr/ports/www/cntlm/pkg-descr << 'END-of-/usr/ports/www/cntlm/pkg-descr'
XCntlm is an NTLM/NTLMv2 authenticating HTTP proxy. It takes the address of your
Xproxy or proxies (host1..N and port1..N) and opens a listening socket,
Xforwarding each request to the parent proxy (moving in a circular list if the
Xactive parent stops working). Along the way, a connection to the parent is
Xcreated anew and authenticated or, if available, previously cached connection
Xis reused to achieve higher efficiency and faster responses. When the chain is
Xset up, cntlm should be used as a proxy in your applications. Cntlm also
Xintegrates transparent TCP/IP port forwarding (tunneling) through the parent
X(incl. authentication).
X
XWWW: http://cntlm.sourceforge.net/
END-of-/usr/ports/www/cntlm/pkg-descr
echo x - /usr/ports/www/cntlm/distinfo
sed 's/^X//' >/usr/ports/www/cntlm/distinfo << 'END-of-/usr/ports/www/cntlm/distinfo'
XMD5 (cntlm-0.35.1.tar.gz) = 2547c73a1159062fdaa1877cc03a22f6
XSHA256 (cntlm-0.35.1.tar.gz) = 7b3fb7184e72cc3f1743bb8e503a5305e96458bc630a7e1ebfc9f3c07ffa6c5e
XSIZE (cntlm-0.35.1.tar.gz) = 74188
END-of-/usr/ports/www/cntlm/distinfo
echo c - /usr/ports/www/cntlm/files
mkdir -p /usr/ports/www/cntlm/files > /dev/null 2>&1
echo x - /usr/ports/www/cntlm/files/cntlm.in
sed 's/^X//' >/usr/ports/www/cntlm/files/cntlm.in << 'END-of-/usr/ports/www/cntlm/files/cntlm.in'
X#!/bin/sh
X#
X# PROVIDE: cntlm
X# REQUIRE: LOGIN
X#
X# Add the following lines to /etc/rc.conf to enable cntlm
X#
X# cntlm_enable (bool):   Set to "NO" by default.
X#                        Set it to "YES" to enable cntlm.
X# cntlm_config (path):   Config file. Defaults to /usr/local/etc/cntlm.conf.
X# cntlm_user (str):      User to run cntlm as
X# cntlm_flags (str):     Additional flags to pass to cntlm
X#
X
X. %%RC_SUBR%%
X
Xname="cntlm"
Xrcvar=${name}_enable
X
Xload_rc_config $name
X
X: ${cntlm_enable="NO"}
X: ${cntlm_config="/usr/local/etc/cntlm.conf"}
X: ${cntlm_flags=""}
X: ${cntlm_user="nobody"}
X
Xpidfile=/var/run/${name}.pid
Xcommand=%%PREFIX%%/bin/${name}
Xcommand_args="-P $pidfile -c $cntlm_config"
X
Xstart_precmd="cntlm_prestartcmd"
X
Xcntlm_prestartcmd() {
X        touch $pidfile
X        chown $cntlm_user $pidfile
X}
X
Xrun_rc_command "$1"
X
END-of-/usr/ports/www/cntlm/files/cntlm.in
echo x - /usr/ports/www/cntlm/pkg-plist
sed 's/^X//' >/usr/ports/www/cntlm/pkg-plist << 'END-of-/usr/ports/www/cntlm/pkg-plist'
X@unexec if cmp -s %D/etc/cntlm.conf.sample %D/etc/cntlm.conf; then rm -f %D/etc/cntlm.conf; fi
Xbin/cntlm
Xman/man1/cntlm.1
Xetc/cntlm.conf.sample
X@exec if [ ! -f %D/etc/cntlm.conf ]; then cp -p %D/%F %B/cntlm.conf; fi
END-of-/usr/ports/www/cntlm/pkg-plist
exit
--- cntlm.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090718004231.5B1F017255>