1 |
commit: 6db97a29e135e71a1425be553b2240b1a0db2c7c |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 18:50:58 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 19:19:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6db97a29 |
7 |
|
8 |
net-proxy/cntlm: migrate to glep 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781458 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-proxy/cntlm/cntlm-0.93_beta5-r3.ebuild | 50 ++++++++++++++++++++++++++++++ |
15 |
1 file changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/net-proxy/cntlm/cntlm-0.93_beta5-r3.ebuild b/net-proxy/cntlm/cntlm-0.93_beta5-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..4c6879ddacc |
20 |
--- /dev/null |
21 |
+++ b/net-proxy/cntlm/cntlm-0.93_beta5-r3.ebuild |
22 |
@@ -0,0 +1,50 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit systemd toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy" |
31 |
+HOMEPAGE="http://cntlm.sourceforge.net/" |
32 |
+SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz" |
33 |
+S="${WORKDIR}/${P//_}" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ acct-group/cntlm |
41 |
+ acct-user/cntlm |
42 |
+" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ default |
46 |
+ eapply -p0 "${FILESDIR}"/${P}-buildsystem.patch # 334647 |
47 |
+} |
48 |
+ |
49 |
+src_configure() { |
50 |
+ tc-export CC |
51 |
+ |
52 |
+ econf |
53 |
+ |
54 |
+ # Replace default config file path in Makefile |
55 |
+ sed -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' -i "${S}"/Makefile || die |
56 |
+} |
57 |
+ |
58 |
+src_compile() { |
59 |
+ emake V=1 |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin cntlm |
64 |
+ dodoc COPYRIGHT README VERSION doc/cntlm.conf |
65 |
+ doman doc/cntlm.1 |
66 |
+ newinitd "${FILESDIR}"/cntlm.initd cntlm |
67 |
+ newconfd "${FILESDIR}"/cntlm.confd cntlm |
68 |
+ systemd_dounit "${FILESDIR}"/cntlm.service |
69 |
+ insinto /etc |
70 |
+ insopts -m0600 |
71 |
+ doins doc/cntlm.conf |
72 |
+} |