1 |
commit: acb75018d8c55fab6e74784431bd6246f06dadfa |
2 |
Author: Graeme Lawes <graemelawes <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 25 02:54:32 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 27 14:56:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acb75018 |
7 |
|
8 |
sys-cluster/teleport: add v4.0.1 |
9 |
|
10 |
Signed-off-by: Graeme Lawes <graemelawes <AT> gmail.com> |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/teleport/Manifest | 1 + |
14 |
sys-cluster/teleport/teleport-4.0.1.ebuild | 49 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/teleport/Manifest b/sys-cluster/teleport/Manifest |
18 |
index 71c801b74e9..44fb4ed605e 100644 |
19 |
--- a/sys-cluster/teleport/Manifest |
20 |
+++ b/sys-cluster/teleport/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST teleport-3.2.6.tar.gz 22620079 BLAKE2B 07b4bcb5b53a511c25f0556fad33b461307b524554e993097f634b1751d7fd3c664de0478427efa18dc20e597fb73f3c5bd09ba961754456245e1306372ed0ee SHA512 20be34820f9b9f29c492f8dabe8914012b66ebfb9db51f3dff0e19b8a1f7b85b948cc1036861d03ca6de9e6f30ba0b43caf4760bc95c74e45a38f0cad080820c |
23 |
DIST teleport-4.0.0.tar.gz 34913323 BLAKE2B 2890d18fed82d9a2da18be6ce9c981ddc1a4ac374862d853f09001c88ed3f9092b9a006c98f6d489dcaae8a702827f98ee12e870708d6746f429f9457debbb33 SHA512 b59ee7e99808475d50e84feff160e2a3c71f04d67dc7d8caa9476251c3e1f51d057de7384f4750b60c121db630c49a8315f9903d8f7ae3e04469f4532ca7078c |
24 |
+DIST teleport-4.0.1.tar.gz 34914632 BLAKE2B 88861a36b4cea94d24ccbb03294202a88845f444df31642b2878d8e3c9c0f46f4ed70b4f713e32889895e59be3629c1e861446c051ea5a74aaa4b7b044f17f6b SHA512 db5d477e430fc7d439e352a2e6605f6662a206b0395268f19d52422994344e1b26bb89f4eae0dd0a453cc0e3d19549bd03959e37e29dccf2b8504994922eb946 |
25 |
|
26 |
diff --git a/sys-cluster/teleport/teleport-4.0.1.ebuild b/sys-cluster/teleport/teleport-4.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..546c0f2921f |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/teleport/teleport-4.0.1.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+inherit golang-build systemd |
37 |
+ |
38 |
+DESCRIPTION="Modern SSH server for teams managing distributed infrastructure" |
39 |
+HOMEPAGE="https://gravitational.com/teleport" |
40 |
+ |
41 |
+EGO_PN="github.com/gravitational/${PN}/..." |
42 |
+ |
43 |
+if [[ ${PV} == "9999" ]] ; then |
44 |
+ inherit git-r3 golang-vcs |
45 |
+ EGIT_REPO_URI="https://github.com/gravitational/${PN}.git" |
46 |
+else |
47 |
+ inherit golang-vcs-snapshot |
48 |
+ SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ KEYWORDS="~amd64 ~arm" |
50 |
+fi |
51 |
+ |
52 |
+IUSE="pam" |
53 |
+LICENSE="Apache-2.0" |
54 |
+RESTRICT="test strip" |
55 |
+SLOT="0" |
56 |
+ |
57 |
+DEPEND="app-arch/zip" |
58 |
+RDEPEND="pam? ( sys-libs/pam )" |
59 |
+ |
60 |
+src_compile() { |
61 |
+ BUILDFLAGS="" GOPATH="${S}" emake -j1 -C src/${EGO_PN%/*} full |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ keepdir /var/lib/${PN} /etc/${PN} |
66 |
+ dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport} |
67 |
+ |
68 |
+ insinto /etc/${PN} |
69 |
+ newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml |
70 |
+ |
71 |
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN} |
72 |
+ newconfd "${FILESDIR}"/${PN}.conf.d ${PN} |
73 |
+ |
74 |
+ systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service |
75 |
+ systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+ BUILDFLAGS="" GOPATH="${S}" emake -C src/${EGO_PN%/*} test |
80 |
+} |