1 |
commit: 0724ec6307b264be0e4747a7d9d57eaed9df6767 |
2 |
Author: Graeme Lawes <graemelawes <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jun 21 23:49:27 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 23 13:50:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0724ec63 |
7 |
|
8 |
sys-cluster/teleport: add teleport v2.2.1 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/4968 |
11 |
|
12 |
sys-cluster/teleport/Manifest | 1 + |
13 |
sys-cluster/teleport/teleport-2.2.1.ebuild | 51 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/teleport/Manifest b/sys-cluster/teleport/Manifest |
17 |
index c1a217ba386..0cd526ab748 100644 |
18 |
--- a/sys-cluster/teleport/Manifest |
19 |
+++ b/sys-cluster/teleport/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST teleport-2.2.0.tar.gz 7229371 SHA256 b12bea0474a0ce5f4df10729607661b1afbecd5e95083835ccee7b54493c9452 SHA512 bec288983371bd3807b7ce994b1533a5e869d903251f8a8ce6315768a1d3ae95d72f832037345c36c9cd4789fbc449c54b86359988b1e74d4f46f9e0db6b3239 WHIRLPOOL 5b128fda80b1ce4afe60e10e6d5d9e83f621f6a405e713af7d1b988562038aa927c9f7c733a927a3aa724c261d058dba1fa75526dd2eb9051b1e6fe4c984004c |
22 |
+DIST teleport-2.2.1.tar.gz 7235188 SHA256 5a5c7be4615a3ef3e6915a4330b71cd063dd3a86013b8a72a5dbbca882eb28ac SHA512 011ffd8fdf42131455c32b8a8ed1ddee0181a8dcd3424dc9cf5ac96c53ce719d369e0bfac4392cc0dec14e78fed94732bbcb56c2db5987ee778ad29e4f7a749d WHIRLPOOL 988da053d7c85acfe1103696e33eff9fbb37d4feb5af580b1fb7b8995ca7ec449786c997619f81717816298b4cdc0bf26b823ac62b3c85ce72d3bdd783d02215 |
23 |
|
24 |
diff --git a/sys-cluster/teleport/teleport-2.2.1.ebuild b/sys-cluster/teleport/teleport-2.2.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..50aac8796fe |
27 |
--- /dev/null |
28 |
+++ b/sys-cluster/teleport/teleport-2.2.1.ebuild |
29 |
@@ -0,0 +1,51 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+inherit eutils golang-build systemd user |
35 |
+ |
36 |
+DESCRIPTION="Modern SSH server for teams managing distributed infrastructure" |
37 |
+HOMEPAGE="https://gravitational.com/teleport" |
38 |
+ |
39 |
+EGO_PN="github.com/gravitational/${PN}/..." |
40 |
+ |
41 |
+if [ ${PV} == "9999" ] ; then |
42 |
+ inherit git-r3 golang-vcs |
43 |
+ EGIT_REPO_URI="https://github.com/gravitational/${PN}.git" |
44 |
+else |
45 |
+ inherit golang-vcs-snapshot |
46 |
+ SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~arm" |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+IUSE="" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ app-arch/zip |
56 |
+ >=dev-lang/go-1.8.3" |
57 |
+RDEPEND="" |
58 |
+ |
59 |
+src_compile() { |
60 |
+ GOPATH="${S}" emake -C src/${EGO_PN%/*} |
61 |
+ pushd src/${EGO_PN%/*}/web/dist >/dev/null || die |
62 |
+ zip -qr "${S}/src/${EGO_PN%/*}/build/webassets.zip" . || die |
63 |
+ popd >/dev/null || die |
64 |
+ cat "${S}/src/${EGO_PN%/*}/build/webassets.zip" >> "src/${EGO_PN%/*}/build/${PN}" || die |
65 |
+ zip -q -A "${S}/src/${EGO_PN%/*}/build/${PN}" || die |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ dodir /var/lib/${PN} /etc/${PN} |
70 |
+ dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport} |
71 |
+ |
72 |
+ insinto /etc/${PN} |
73 |
+ doins "${FILESDIR}"/${PN}.yaml |
74 |
+ |
75 |
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN} |
76 |
+ newconfd "${FILESDIR}"/${PN}.conf.d ${PN} |
77 |
+ |
78 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
79 |
+ systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service |
80 |
+} |