summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-07-01 19:21:44 +0000
committerPacho Ramos <pacho@gentoo.org>2014-07-01 19:21:44 +0000
commit10cff45f96bf9c8c1fba53ec19955f271b778b4b (patch)
tree573716f0171b50712031dbfce202b98d8cc4f5e7 /net-proxy
parentAdd unit file (#513850 by thorus90) (diff)
downloadgentoo-2-10cff45f96bf9c8c1fba53ec19955f271b778b4b.tar.gz
gentoo-2-10cff45f96bf9c8c1fba53ec19955f271b778b4b.tar.bz2
gentoo-2-10cff45f96bf9c8c1fba53ec19955f271b778b4b.zip
Add unit file (#513620 by StalkerNOVA)
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/cntlm/ChangeLog8
-rw-r--r--net-proxy/cntlm/cntlm-0.93_beta5-r1.ebuild55
-rw-r--r--net-proxy/cntlm/files/cntlm.service9
3 files changed, 71 insertions, 1 deletions
diff --git a/net-proxy/cntlm/ChangeLog b/net-proxy/cntlm/ChangeLog
index 11213e7bb830..2eb98eded2b2 100644
--- a/net-proxy/cntlm/ChangeLog
+++ b/net-proxy/cntlm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/cntlm
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.5 2014/01/08 06:23:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.6 2014/07/01 19:21:44 pacho Exp $
+
+*cntlm-0.93_beta5-r1 (01 Jul 2014)
+
+ 01 Jul 2014; Pacho Ramos <pacho@gentoo.org> +cntlm-0.93_beta5-r1.ebuild,
+ +files/cntlm.service:
+ Add unit file (#513620 by StalkerNOVA)
08 Jan 2014; Mike Frysinger <vapier@gentoo.org> cntlm-0.35.1-r1.ebuild,
cntlm-0.35.1-r2.ebuild, cntlm-0.92.3.ebuild, cntlm-0.93_beta5.ebuild:
diff --git a/net-proxy/cntlm/cntlm-0.93_beta5-r1.ebuild b/net-proxy/cntlm/cntlm-0.93_beta5-r1.ebuild
new file mode 100644
index 000000000000..730a330bbcf2
--- /dev/null
+++ b/net-proxy/cntlm/cntlm-0.93_beta5-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.93_beta5-r1.ebuild,v 1.1 2014/07/01 19:21:44 pacho Exp $
+
+EAPI=5
+inherit eutils systemd toolchain-funcs user
+
+DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
+HOMEPAGE="http://cntlm.sourceforge.net/"
+SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P//_}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buildsystem.patch # 334647
+}
+
+src_configure() {
+ tc-export CC
+
+ econf
+
+ # 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 V=1
+}
+
+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
+ systemd_dounit "${FILESDIR}"/cntlm.service
+ 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.service b/net-proxy/cntlm/files/cntlm.service
new file mode 100644
index 000000000000..01f2bcdfd803
--- /dev/null
+++ b/net-proxy/cntlm/files/cntlm.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=CNTLM HTTP Accelerator For NTLM Secured Proxies Authenticator
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/cntlm -f -U cntlm -c /etc/cntlm.conf
+
+[Install]
+WantedBy=multi-user.target