Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/cntlm/files/, net-proxy/cntlm/
Date: Tue, 03 May 2016 19:17:52
Message-Id: 1462303021.1cae73b27b17f7b64ed6cf0fe9ca47b0fbe60a81.wizardedit@gentoo
1 commit: 1cae73b27b17f7b64ed6cf0fe9ca47b0fbe60a81
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 18:52:50 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 19:17:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cae73b2
7
8 net-proxy/cntlm: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild | 57 ++++++++++++++++++++++++++++++
15 net-proxy/cntlm/files/cntlm.initd | 4 +--
16 2 files changed, 59 insertions(+), 2 deletions(-)
17
18 diff --git a/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild b/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild
19 new file mode 100644
20 index 0000000..bd7cbb1
21 --- /dev/null
22 +++ b/net-proxy/cntlm/cntlm-0.93_beta5-r2.ebuild
23 @@ -0,0 +1,57 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +inherit eutils systemd toolchain-funcs user
30 +
31 +DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
32 +HOMEPAGE="http://cntlm.sourceforge.net/"
33 +SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE=""
39 +
40 +DEPEND=""
41 +RDEPEND=""
42 +
43 +S="${WORKDIR}/${P//_}"
44 +
45 +src_prepare() {
46 + eapply -p0 "${FILESDIR}"/${P}-buildsystem.patch # 334647
47 +
48 + default
49 +}
50 +
51 +src_configure() {
52 + tc-export CC
53 +
54 + econf
55 +
56 + # Replace default config file path in Makefile
57 + sed -i -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' \
58 + "${S}"/Makefile || die "sed failed"
59 +}
60 +
61 +src_compile() {
62 + emake V=1
63 +}
64 +
65 +src_install() {
66 + dobin cntlm
67 + dodoc COPYRIGHT README VERSION doc/cntlm.conf
68 + doman doc/cntlm.1
69 + newinitd "${FILESDIR}"/cntlm.initd cntlm
70 + newconfd "${FILESDIR}"/cntlm.confd cntlm
71 + systemd_dounit "${FILESDIR}"/cntlm.service
72 + insinto /etc
73 + insopts -m0600
74 + doins doc/cntlm.conf
75 +}
76 +
77 +pkg_postinst() {
78 + enewgroup cntlm
79 + enewuser cntlm -1 -1 -1 cntlm
80 +}
81
82 diff --git a/net-proxy/cntlm/files/cntlm.initd b/net-proxy/cntlm/files/cntlm.initd
83 index daa19e3..6ebe838 100644
84 --- a/net-proxy/cntlm/files/cntlm.initd
85 +++ b/net-proxy/cntlm/files/cntlm.initd
86 @@ -1,5 +1,5 @@
87 -#!/sbin/runscript
88 -# Copyright 1999-2011 Gentoo Foundation
89 +#!/sbin/openrc-run
90 +# Copyright 1999-2016 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Id$