import ntlmaps 0.9.9.0.1

NTLM Authorization Proxy Server is an http proxy server that allows
you to authenticate via the proprietary NTLM protocol, so you can
use web sites and web proxies that require NTLM authorization.

ok and help from sthen, merdely; 'schaweet' marco
This commit is contained in:
wcmaier 2008-04-16 17:34:47 +00:00
parent 732f0939de
commit 552d46603e
7 changed files with 153 additions and 0 deletions

40
www/ntlmaps/Makefile Normal file
View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/04/16 17:34:47 wcmaier Exp $
COMMENT = http proxy to authenticate using NTLM
DISTNAME = ntlmaps-0.9.9.0.1
CATEGORIES = www
HOMEPAGE = http://ntlmaps.sourceforge.net/
# GPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ntlmaps/}
MODULES = lang/python
NO_REGRESS = Yes
# Do some gymnastics to work around what appears to be a
# distutils bug.
pre-patch:
@cp ${FILESDIR}/setup.py ${WRKSRC}/setup.py
@mkdir ${WRKSRC}/ntlmaps
@touch ${WRKSRC}/ntlmaps/__init__.py
@mv ${WRKSRC}/lib/* ${WRKSRC}/ntlmaps/.
@mv ${WRKSRC}/ntlmaps ${WRKSRC}/lib/.
@rm ${WRKSRC}/__init__.py
@mv ${WRKSRC}/main.py ${WRKSRC}/ntlmaps
@find ${WRKSRC} -type f -print0 | xargs -r0 perl -pi -e 's,\r,,'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ntlmaps
.for i in COPYING Install.txt changelog.txt readme.txt research.txt
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/ntlmaps/
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntlmaps
${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/share/examples/ntlmaps
.include <bsd.port.mk>

5
www/ntlmaps/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (ntlmaps-0.9.9.0.1.tar.gz) = fuCgDVRG85675fD5BGWYbg==
RMD160 (ntlmaps-0.9.9.0.1.tar.gz) = R5jkriOcZmKsSncNDIHQezFQj4k=
SHA1 (ntlmaps-0.9.9.0.1.tar.gz) = 4R2/t5ppoFtYT0eEv0cTP1p2W2o=
SHA256 (ntlmaps-0.9.9.0.1.tar.gz) = bwQdh7B/Fgisd4ZlNrW1INe4UV0+mtEjF7zIEfRYsbg=
SIZE (ntlmaps-0.9.9.0.1.tar.gz) = 55908

View File

@ -0,0 +1,17 @@
# $OpenBSD: setup.py,v 1.1.1.1 2008/04/16 17:34:47 wcmaier Exp $
from distutils.core import setup
import sys, os
setup(
name = "NTLMaps",
version = "0.9.9.0.1",
description = "proxy for NTLM authentication",
author = "Dmitry Rozmanov",
author_email = "dima@xenon.spb.ru",
license = "GPL",
url = "http://ntlmaps.sourceforge.net/",
packages = ('ntlmaps',),
package_dir = {'': 'lib'},
scripts = ('ntlmaps',)
)

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-ntlmaps,v 1.1.1.1 2008/04/16 17:34:47 wcmaier Exp $
--- ntlmaps.orig Fri Apr 4 15:00:18 2008
+++ ntlmaps Fri Apr 4 15:00:36 2008
@@ -18,17 +18,21 @@
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
-import __init__
+import sys, os, grp, pwd
-import sys
+from ntlmaps import server, config, config_affairs
-import server, config, config_affairs
+# Drop privileges.
+uid = os.geteuid()
+if uid == 0:
+ os.setgid(grp.getgrnam('_ntlmaps')[2]);
+ os.setuid(pwd.getpwnam('_ntlmaps')[2]);
#--------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
-conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/'))
+conf = config.read_config(config.findConfigFileNameInArgv(sys.argv))
conf['GENERAL']['VERSION'] = '0.9.9.0.1'

3
www/ntlmaps/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
NTLM Authorization Proxy Server is an http proxy server that allows
you to authenticate via the proprietary NTLM protocol, so you can
use web sites and web proxies that require NTLM authorization.

6
www/ntlmaps/pkg/MESSAGE Normal file
View File

@ -0,0 +1,6 @@
To run NTLMAPS at startup, you can add the following lines to
/etc/rc.local.
if [ -x ${PREFIX}/bin/ntlmaps ]; then
echo -n ' ntlmaps'; ${PREFIX}/bin/ntlmaps -c /etc/ntlmaps.cfg &
fi

53
www/ntlmaps/pkg/PLIST Normal file
View File

@ -0,0 +1,53 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/04/16 17:34:47 wcmaier Exp $
@newgroup _ntlmaps:600
@newuser _ntlmaps:600:_ntlmaps:daemon:ntlmaps user:/nonexistent:/sbin/nologin
bin/ntlmaps
lib/python${MODPY_VERSION}/site-packages/NTLMaps-0.9.9.0.1-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/ntlmaps/
lib/python${MODPY_VERSION}/site-packages/ntlmaps/U32.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/U32.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/__init__.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/basic_auth.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/basic_auth.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/config.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/config.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/config_affairs.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/config_affairs.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des_c.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des_c.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des_data.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/des_data.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/http_header.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/http_header.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/logger.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/logger.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/md4.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/md4.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/monitor_upstream.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/monitor_upstream.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_auth.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_auth.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_messages.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_messages.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_procs.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/ntlm_procs.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/proxy_client.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/proxy_client.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/server.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/server.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/utils.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/utils.pyc
lib/python${MODPY_VERSION}/site-packages/ntlmaps/www_client.py
lib/python${MODPY_VERSION}/site-packages/ntlmaps/www_client.pyc
share/doc/ntlmaps/
share/doc/ntlmaps/COPYING
share/doc/ntlmaps/Install.txt
share/doc/ntlmaps/changelog.txt
share/doc/ntlmaps/readme.txt
share/doc/ntlmaps/research.txt
share/examples/ntlmaps/
share/examples/ntlmaps/server.cfg
@sample ${SYSCONFDIR}/ntlmaps.cfg