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: Sun, 05 Aug 2018 21:48:07
Message-Id: 1533505644.8783871c3cc62b2b3888ff6c5c15e83a0ad4c61f.monsieurp@gentoo
1 commit: 8783871c3cc62b2b3888ff6c5c15e83a0ad4c61f
2 Author: Graeme Lawes <graemelawes <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 5 03:45:51 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 5 21:47:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8783871c
7
8 sys-cluster/teleport: version bump to 2.7.1.
9
10 sys-cluster/teleport/Manifest | 1 +
11 sys-cluster/teleport/teleport-2.7.1.ebuild | 49 ++++++++++++++++++++++++++++++
12 2 files changed, 50 insertions(+)
13
14 diff --git a/sys-cluster/teleport/Manifest b/sys-cluster/teleport/Manifest
15 index 2137c4cdac5..4297926a089 100644
16 --- a/sys-cluster/teleport/Manifest
17 +++ b/sys-cluster/teleport/Manifest
18 @@ -1 +1,2 @@
19 DIST teleport-2.6.7.tar.gz 16655508 BLAKE2B a020ab999b7503cb7aec54ed81532baf9d08b98000f2c659f63859d89f7f2b5fb311c41d6fcafb7d9bf72ea1c97eecfc6ac621b7c90d74f5afe2717edb8b0402 SHA512 45002dcf7b99108ca6fffae94d6608188eb9b0bea05cd14068618bfb11c496cad5546e261f349fee70f2acb574e7fc44093683dd991001e01406da6982c5c4c3
20 +DIST teleport-2.7.1.tar.gz 18222601 BLAKE2B 86852a1c7f0b083d8fc46bb2e51e287f0d54ca8bd1a6306e21ad325b6f1487682f853eb313a1f6f6fc4dc4d25d93e909ed65dad6d00eb37f878904d6df30f98c SHA512 703056eb99aa91062c8d9cfa7852e3573c8968ce9dea0ff5b076d5225caf8d67b965948a47785cdc7e4341993ef3ed005677859d37653f7d22c05cb2db51efd7
21
22 diff --git a/sys-cluster/teleport/teleport-2.7.1.ebuild b/sys-cluster/teleport/teleport-2.7.1.ebuild
23 new file mode 100644
24 index 00000000000..4a7a27e42a4
25 --- /dev/null
26 +++ b/sys-cluster/teleport/teleport-2.7.1.ebuild
27 @@ -0,0 +1,49 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +inherit golang-build systemd
33 +
34 +DESCRIPTION="Modern SSH server for teams managing distributed infrastructure"
35 +HOMEPAGE="https://gravitational.com/teleport"
36 +
37 +EGO_PN="github.com/gravitational/${PN}/..."
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + inherit git-r3 golang-vcs
41 + EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
42 +else
43 + inherit golang-vcs-snapshot
44 + SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm"
46 +fi
47 +
48 +IUSE="pam"
49 +LICENSE="Apache-2.0"
50 +RESTRICT="test strip"
51 +SLOT="0"
52 +
53 +DEPEND="app-arch/zip"
54 +RDEPEND="pam? ( sys-libs/pam )"
55 +
56 +src_compile() {
57 + BUILDFLAGS="" GOPATH="${S}" emake -j1 -C src/${EGO_PN%/*} full
58 +}
59 +
60 +src_install() {
61 + keepdir /var/lib/${PN} /etc/${PN}
62 + dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
63 +
64 + insinto /etc/${PN}
65 + newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml
66 +
67 + newinitd "${FILESDIR}"/${PN}.init.d ${PN}
68 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
69 +
70 + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
71 + systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
72 +}
73 +
74 +src_test() {
75 + BUILDFLAGS="" GOPATH="${S}" emake -C src/${EGO_PN%/*} test
76 +}