Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/teleport/
Date: Tue, 09 Apr 2019 12:06:24
Message-Id: 1554811558.b5c0098f78f050d3dac7cb8d96f81ee367b39f12.monsieurp@gentoo
1 commit: b5c0098f78f050d3dac7cb8d96f81ee367b39f12
2 Author: Graeme Lawes <graemelawes <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 5 01:40:19 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 12:05:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5c0098f
7
8 sys-cluster/teleport: add v3.2.0.
9
10 Signed-off-by: Graeme Lawes <graemelawes <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11593
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 sys-cluster/teleport/Manifest | 1 +
15 sys-cluster/teleport/teleport-3.2.0.ebuild | 49 ++++++++++++++++++++++++++++++
16 2 files changed, 50 insertions(+)
17
18 diff --git a/sys-cluster/teleport/Manifest b/sys-cluster/teleport/Manifest
19 index f7e6989ca4d..2bfa712d7d4 100644
20 --- a/sys-cluster/teleport/Manifest
21 +++ b/sys-cluster/teleport/Manifest
22 @@ -2,3 +2,4 @@ DIST teleport-2.6.7.tar.gz 16655508 BLAKE2B a020ab999b7503cb7aec54ed81532baf9d08
23 DIST teleport-2.7.1.tar.gz 18222601 BLAKE2B 86852a1c7f0b083d8fc46bb2e51e287f0d54ca8bd1a6306e21ad325b6f1487682f853eb313a1f6f6fc4dc4d25d93e909ed65dad6d00eb37f878904d6df30f98c SHA512 703056eb99aa91062c8d9cfa7852e3573c8968ce9dea0ff5b076d5225caf8d67b965948a47785cdc7e4341993ef3ed005677859d37653f7d22c05cb2db51efd7
24 DIST teleport-3.0.0.tar.gz 22365657 BLAKE2B a9cfec07ec73970b1050c51819ef4820be95fcd94dce0ffbb62deca38af28a944929c83a9ed2b443a93eb21f55d0cac024b66acf81c5d6939ba8e6b6ba40438a SHA512 8cba0b7471bebe9cdac07b44f17c99b7b323061f310ef0e61a3ebe1c4ea2ca2b1c853177528c4725a83366406e8b1a5aba23ecdd5fba7290bd6cab74ada3340d
25 DIST teleport-3.0.1.tar.gz 22365638 BLAKE2B 200d7612a56520607f7c157a4e1ff095f8621c2495cef520ce4db7b75f61346e7e5588ca8c9a9b9aa30b87d692c05d488343c3c7b1d30a46e90cacef42ed4172 SHA512 9a477ad174f0d7b0179cb4063731ebf0bd7cf31af22fb6db350b12839bfcdc9c8b68847bc33639546bf6b9026ee62ceb3197176f81a36d67f6b070f2eb4d65e1
26 +DIST teleport-3.2.0.tar.gz 22613098 BLAKE2B 0ff9675a071f5fb660ad4a7b0e085b9bec01c3d0967bdd206ce29a51addae545c4b2621854cbffdc0f76d0cbc6e5ec8f39e082b80b26ba13d352b1add199c965 SHA512 a3fdb520a62361f78632ac1680f86f183a533e47696791586b3c5ff7d505eb167a881c438c6a3dd72395140c521c065c8d8e4b93b5b8c9cbf134688dd8c1f8da
27
28 diff --git a/sys-cluster/teleport/teleport-3.2.0.ebuild b/sys-cluster/teleport/teleport-3.2.0.ebuild
29 new file mode 100644
30 index 00000000000..3fb8ff680c0
31 --- /dev/null
32 +++ b/sys-cluster/teleport/teleport-3.2.0.ebuild
33 @@ -0,0 +1,49 @@
34 +# Copyright 1999-2019 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +inherit golang-build systemd
39 +
40 +DESCRIPTION="Modern SSH server for teams managing distributed infrastructure"
41 +HOMEPAGE="https://gravitational.com/teleport"
42 +
43 +EGO_PN="github.com/gravitational/${PN}/..."
44 +
45 +if [[ ${PV} == "9999" ]] ; then
46 + inherit git-r3 golang-vcs
47 + EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
48 +else
49 + inherit golang-vcs-snapshot
50 + SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64 ~arm"
52 +fi
53 +
54 +IUSE="pam"
55 +LICENSE="Apache-2.0"
56 +RESTRICT="test strip"
57 +SLOT="0"
58 +
59 +DEPEND="app-arch/zip"
60 +RDEPEND="pam? ( sys-libs/pam )"
61 +
62 +src_compile() {
63 + BUILDFLAGS="" GOPATH="${S}" emake -j1 -C src/${EGO_PN%/*} full
64 +}
65 +
66 +src_install() {
67 + keepdir /var/lib/${PN} /etc/${PN}
68 + dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
69 +
70 + insinto /etc/${PN}
71 + newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml
72 +
73 + newinitd "${FILESDIR}"/${PN}.init.d ${PN}
74 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
75 +
76 + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
77 + systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
78 +}
79 +
80 +src_test() {
81 + BUILDFLAGS="" GOPATH="${S}" emake -C src/${EGO_PN%/*} test
82 +}