summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Duft <mduft@gentoo.org>2010-02-24 13:18:15 +0000
committerMarkus Duft <mduft@gentoo.org>2010-02-24 13:18:15 +0000
commit3875f6253f07a15692ea38cfa58d075ae0868911 (patch)
treee4d30c8d24f59c57d2f4a3aeda42b1365e91da9c /net-proxy
parentAdd a conditional patch for 1.0.x series to build against xulrunner 1.9.2, bu... (diff)
downloadgentoo-2-3875f6253f07a15692ea38cfa58d075ae0868911.tar.gz
gentoo-2-3875f6253f07a15692ea38cfa58d075ae0868911.tar.bz2
gentoo-2-3875f6253f07a15692ea38cfa58d075ae0868911.zip
initially added cntlm to tree
(Portage version: 2.1.7.16/cvs/Linux i686)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/cntlm/ChangeLog10
-rw-r--r--net-proxy/cntlm/cntlm-0.35.1-r1.ebuild47
-rw-r--r--net-proxy/cntlm/files/cntlm.confd5
-rw-r--r--net-proxy/cntlm/files/cntlm.initd22
-rw-r--r--net-proxy/cntlm/metadata.xml14
5 files changed, 98 insertions, 0 deletions
diff --git a/net-proxy/cntlm/ChangeLog b/net-proxy/cntlm/ChangeLog
new file mode 100644
index 000000000000..a5c06fdb9c52
--- /dev/null
+++ b/net-proxy/cntlm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-proxy/cntlm
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.1 2010/02/24 13:18:15 mduft Exp $
+
+*cntlm-0.35.1-r1 (24 Feb 2010)
+
+ 24 Feb 2010; Markus Duft <mduft@gentoo.org> +cntlm-0.35.1-r1.ebuild,
+ +files/cntlm.confd, +files/cntlm.initd, +metadata.xml:
+ initially added cntlm to tree
+
diff --git a/net-proxy/cntlm/cntlm-0.35.1-r1.ebuild b/net-proxy/cntlm/cntlm-0.35.1-r1.ebuild
new file mode 100644
index 000000000000..9cd3c8e0f4b3
--- /dev/null
+++ b/net-proxy/cntlm/cntlm-0.35.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.35.1-r1.ebuild,v 1.1 2010/02/24 13:18:15 mduft Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
+HOMEPAGE="http://cntlm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cntlm/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_configure() {
+ econf || die "econf failed"
+
+ # Replace default config file path in Makefile
+ sed -i -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' \
+ "${S}"/Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin cntlm
+ dodoc COPYRIGHT README VERSION doc/cntlm.conf
+ doman doc/cntlm.1
+ newinitd "${FILESDIR}"/cntlm.initd cntlm
+ newconfd "${FILESDIR}"/cntlm.confd cntlm
+ insinto /etc
+ insopts -m0600
+ doins doc/cntlm.conf
+}
+
+pkg_postinst() {
+ enewgroup cntlm
+ enewuser cntlm -1 -1 -1 cntlm
+}
diff --git a/net-proxy/cntlm/files/cntlm.confd b/net-proxy/cntlm/files/cntlm.confd
new file mode 100644
index 000000000000..bc3dce0fb18c
--- /dev/null
+++ b/net-proxy/cntlm/files/cntlm.confd
@@ -0,0 +1,5 @@
+# cntlm init script configuration file
+
+# here you can specify additional options to cntlm
+# NOTE that using config file is recommended
+CNTLM_OPTS=""
diff --git a/net-proxy/cntlm/files/cntlm.initd b/net-proxy/cntlm/files/cntlm.initd
new file mode 100644
index 000000000000..ae2ff0b95a2d
--- /dev/null
+++ b/net-proxy/cntlm/files/cntlm.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/files/cntlm.initd,v 1.1 2010/02/24 13:18:14 mduft Exp $
+
+PIDFILE=${PIDFILE:-/var/run/cntlm.pid}
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting cntlm"
+ start-stop-daemon --start --pidfile ${PIDFILE} --exec /usr/bin/cntlm -- -U cntlm ${CNTLM_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cntlm"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
diff --git a/net-proxy/cntlm/metadata.xml b/net-proxy/cntlm/metadata.xml
new file mode 100644
index 000000000000..75e01de88132
--- /dev/null
+++ b/net-proxy/cntlm/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>mduft@gentoo.org</email>
+ <name>Markus Duft</name>
+ </maintainer>
+ <longdescription lang="en">
+ NTLM authorizing proxy. Upstream seems dead, but this is still a good
+ alternative to ntlmaps.
+ </longdescription>
+</pkgmetadata>
+