diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-07-27 22:30:32 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-07-27 22:30:32 +0000 |
commit | 59ce2e85625d0aa1b1b690d1c15ab9f278495cb2 (patch) | |
tree | ca8b6c6b1e1a6ccc269f0c9903dba50de5281ed8 /www/cntlm | |
parent | b0547724b97c2f1faab9b9268b81c6aaef5b420c (diff) |
Notes
Diffstat (limited to 'www/cntlm')
-rw-r--r-- | www/cntlm/Makefile | 37 | ||||
-rw-r--r-- | www/cntlm/distinfo | 3 | ||||
-rw-r--r-- | www/cntlm/files/cntlm.in | 39 | ||||
-rw-r--r-- | www/cntlm/pkg-descr | 11 | ||||
-rw-r--r-- | www/cntlm/pkg-plist | 4 |
5 files changed, 94 insertions, 0 deletions
diff --git a/www/cntlm/Makefile b/www/cntlm/Makefile new file mode 100644 index 000000000000..311221f8c028 --- /dev/null +++ b/www/cntlm/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: cntlm +# Date created: 23 July 2009 +# Whom: Antony Mawer <ports@mawer.org> +# +# $FreeBSD$ +# + +PORTNAME= cntlm +PORTVERSION= 0.35.1 +CATEGORIES= www +MASTER_SITES= SF + +MAINTAINER= ports@mawer.org +COMMENT= An NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy + +USE_RC_SUBR= cntlm +HAS_CONFIGURE= yes +ALL_TARGET= cntlm +MAN1= cntlm.1 + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cntlm ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/doc/cntlm.conf ${PREFIX}/etc/cntlm.conf.sample + ${INSTALL_MAN} ${WRKSRC}/doc/cntlm.1 ${PREFIX}/man/man1 + +post-install: + @if [ ! -f ${PREFIX}/etc/cntlm.conf ]; then \ + ${CP} -p ${PREFIX}/etc/cntlm.conf.sample ${PREFIX}/etc/cntlm.conf; \ + fi + +.include <bsd.port.post.mk> diff --git a/www/cntlm/distinfo b/www/cntlm/distinfo new file mode 100644 index 000000000000..b5ed2071e5e0 --- /dev/null +++ b/www/cntlm/distinfo @@ -0,0 +1,3 @@ +MD5 (cntlm-0.35.1.tar.gz) = 2547c73a1159062fdaa1877cc03a22f6 +SHA256 (cntlm-0.35.1.tar.gz) = 7b3fb7184e72cc3f1743bb8e503a5305e96458bc630a7e1ebfc9f3c07ffa6c5e +SIZE (cntlm-0.35.1.tar.gz) = 74188 diff --git a/www/cntlm/files/cntlm.in b/www/cntlm/files/cntlm.in new file mode 100644 index 000000000000..4d063f2dcefe --- /dev/null +++ b/www/cntlm/files/cntlm.in @@ -0,0 +1,39 @@ +#!/bin/sh +# +# PROVIDE: cntlm +# REQUIRE: LOGIN +# +# Add the following lines to /etc/rc.conf to enable cntlm +# +# cntlm_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable cntlm. +# cntlm_config (path): Config file. Defaults to /usr/local/etc/cntlm.conf. +# cntlm_user (str): User to run cntlm as +# cntlm_flags (str): Additional flags to pass to cntlm +# + +. %%RC_SUBR%% + +name="cntlm" +rcvar=${name}_enable + +load_rc_config $name + +: ${cntlm_enable="NO"} +: ${cntlm_config="%%{PREFIX}/etc/cntlm.conf"} +: ${cntlm_flags=""} +: ${cntlm_user="nobody"} + +pidfile=/var/run/${name}.pid +command=%%PREFIX%%/bin/${name} +command_args="-P $pidfile -c $cntlm_config" + +start_precmd="cntlm_prestartcmd" + +cntlm_prestartcmd() { + touch $pidfile + chown $cntlm_user $pidfile +} + +run_rc_command "$1" + diff --git a/www/cntlm/pkg-descr b/www/cntlm/pkg-descr new file mode 100644 index 000000000000..458fdc54aa8c --- /dev/null +++ b/www/cntlm/pkg-descr @@ -0,0 +1,11 @@ +Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy. It takes the address of your +proxy or proxies (host1..N and port1..N) and opens a listening socket, +forwarding each request to the parent proxy (moving in a circular list if the +active parent stops working). Along the way, a connection to the parent is +created anew and authenticated or, if available, previously cached connection +is reused to achieve higher efficiency and faster responses. When the chain is +set up, cntlm should be used as a proxy in your applications. Cntlm also +integrates transparent TCP/IP port forwarding (tunneling) through the parent +(incl. authentication). + +WWW: http://cntlm.sourceforge.net/ diff --git a/www/cntlm/pkg-plist b/www/cntlm/pkg-plist new file mode 100644 index 000000000000..2414de48f89c --- /dev/null +++ b/www/cntlm/pkg-plist @@ -0,0 +1,4 @@ +@unexec if cmp -s %D/etc/cntlm.conf.sample %D/etc/cntlm.conf; then rm -f %D/etc/cntlm.conf; fi +bin/cntlm +etc/cntlm.conf.sample +@exec if [ ! -f %D/etc/cntlm.conf ]; then cp -p %D/%F %B/cntlm.conf; fi |