sys-cluster/teleport: add teleport v.2.2.4
authorGraeme Lawes <graemelawes@gmail.com>
Sat, 1 Jul 2017 09:01:34 +0000 (05:01 -0400)
committerMichał Górny <mgorny@gentoo.org>
Sat, 19 Aug 2017 18:20:31 +0000 (20:20 +0200)
sys-cluster/teleport/Manifest
sys-cluster/teleport/teleport-2.2.0.ebuild
sys-cluster/teleport/teleport-2.2.1.ebuild
sys-cluster/teleport/teleport-2.2.4.ebuild [new file with mode: 0644]
sys-cluster/teleport/teleport-9999.ebuild

index 0cd526ab748ad38c6cc30cae23f711be23e3f37a..4d5b5f9f7430803edc3276b3a14589c9367cbb40 100644 (file)
@@ -1,2 +1,3 @@
 DIST teleport-2.2.0.tar.gz 7229371 SHA256 b12bea0474a0ce5f4df10729607661b1afbecd5e95083835ccee7b54493c9452 SHA512 bec288983371bd3807b7ce994b1533a5e869d903251f8a8ce6315768a1d3ae95d72f832037345c36c9cd4789fbc449c54b86359988b1e74d4f46f9e0db6b3239 WHIRLPOOL 5b128fda80b1ce4afe60e10e6d5d9e83f621f6a405e713af7d1b988562038aa927c9f7c733a927a3aa724c261d058dba1fa75526dd2eb9051b1e6fe4c984004c
 DIST teleport-2.2.1.tar.gz 7235188 SHA256 5a5c7be4615a3ef3e6915a4330b71cd063dd3a86013b8a72a5dbbca882eb28ac SHA512 011ffd8fdf42131455c32b8a8ed1ddee0181a8dcd3424dc9cf5ac96c53ce719d369e0bfac4392cc0dec14e78fed94732bbcb56c2db5987ee778ad29e4f7a749d WHIRLPOOL 988da053d7c85acfe1103696e33eff9fbb37d4feb5af580b1fb7b8995ca7ec449786c997619f81717816298b4cdc0bf26b823ac62b3c85ce72d3bdd783d02215
+DIST teleport-2.2.4.tar.gz 7234252 SHA256 25624d3b8dff987eab70cfadd0fe55a96d741ef8955064cd6e51e718da7f0363 SHA512 859bc34c90c4d1a504b9fa2958e49803c7af8bee3c2692d70590095ef0356a00cf963c5fc30613f3a7852b602fc7fbbd81ca99fc24ce51787f6d8d2e05af4762 WHIRLPOOL 4572b9b0cd9b84a579b99135759cd270d6b6c1f4590a990f3652bd4a80ce80f54e061564518500615ac77a321bebfd1476596a83e822b33a166fa1b3ae62311f
index 50aac8796fe3de963f9087fb60a9f394361f78af..73701f3ef24220a37e62bcaede75628b389c5e47 100644 (file)
@@ -9,7 +9,7 @@ HOMEPAGE="https://gravitational.com/teleport"
 
 EGO_PN="github.com/gravitational/${PN}/..."
 
-if [ ${PV} == "9999" ] ; then
+if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 golang-vcs
        EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
 else
index 50aac8796fe3de963f9087fb60a9f394361f78af..73701f3ef24220a37e62bcaede75628b389c5e47 100644 (file)
@@ -9,7 +9,7 @@ HOMEPAGE="https://gravitational.com/teleport"
 
 EGO_PN="github.com/gravitational/${PN}/..."
 
-if [ ${PV} == "9999" ] ; then
+if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 golang-vcs
        EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
 else
diff --git a/sys-cluster/teleport/teleport-2.2.4.ebuild b/sys-cluster/teleport/teleport-2.2.4.ebuild
new file mode 100644 (file)
index 0000000..d4cdaf8
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils golang-build systemd user
+
+DESCRIPTION="Modern SSH server for teams managing distributed infrastructure"
+HOMEPAGE="https://gravitational.com/teleport"
+
+EGO_PN="github.com/gravitational/${PN}/..."
+
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3 golang-vcs
+       EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
+else
+       inherit golang-vcs-snapshot
+       SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="
+       app-arch/zip
+       >=dev-lang/go-1.8.3"
+RDEPEND=""
+
+src_compile() {
+       GOPATH="${S}" emake -C src/${EGO_PN%/*}
+       pushd src/${EGO_PN%/*}/web/dist >/dev/null || die
+       zip -qr "${S}/src/${EGO_PN%/*}/build/webassets.zip" . || die
+       popd >/dev/null || die
+       cat "${S}/src/${EGO_PN%/*}/build/webassets.zip" >> "src/${EGO_PN%/*}/build/${PN}" || die
+       zip -q -A "${S}/src/${EGO_PN%/*}/build/${PN}" || die
+}
+
+src_install() {
+       dodir /var/lib/${PN} /etc/${PN}
+       dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
+
+       insinto /etc/${PN}
+       doins "${FILESDIR}"/${PN}.yaml
+
+       newinitd "${FILESDIR}"/${PN}.init.d ${PN}
+       newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
+
+       systemd_dounit "${FILESDIR}"/${PN}.service
+       systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
+}
+
+src_test() {
+       GOPATH="${S}" emake -C src/${EGO_PN%/*} test
+}
index 875028053444b903ba6458cc3e7c02608570aadf..99620ea6684161e609093ff57ddd3baa181d3f61 100644 (file)
@@ -9,7 +9,7 @@ HOMEPAGE="https://gravitational.com/teleport"
 
 EGO_PN="github.com/gravitational/${PN}/..."
 
-if [ ${PV} == "9999" ] ; then
+if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 golang-vcs
        EGIT_REPO_URI="https://github.com/gravitational/${PN}.git"
 else