commit:     137c6ece701b2ba359ce3a1cd17fc80bc6fa8f3a
Author:     Graeme Lawes <graemelawes <AT> gmail <DOT> com>
AuthorDate: Sun Jul  8 17:04:56 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 26 20:39:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137c6ece

sys-cluster/teleport-9999: use latest ebuild file

 sys-cluster/teleport/teleport-9999.ebuild | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/sys-cluster/teleport/teleport-9999.ebuild 
b/sys-cluster/teleport/teleport-9999.ebuild
index a16c3c13370..1111454a646 100644
--- a/sys-cluster/teleport/teleport-9999.ebuild
+++ b/sys-cluster/teleport/teleport-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils golang-build systemd user
+inherit golang-build systemd
 
 DESCRIPTION="Modern SSH server for teams managing distributed infrastructure"
 HOMEPAGE="https://gravitational.com/teleport";
@@ -15,29 +15,23 @@ if [[ ${PV} == "9999" ]] ; then
 else
        inherit golang-vcs-snapshot
        SRC_URI="https://github.com/gravitational/${PN}/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
-       KEYWORDS="~amd64"
+       KEYWORDS="~amd64 ~arm"
 fi
 
+IUSE="pam"
 LICENSE="Apache-2.0"
+RESTRICT="test strip"
 SLOT="0"
-IUSE=""
 
-DEPEND="
-       app-arch/zip
-       >=dev-lang/go-1.7"
-RDEPEND=""
+DEPEND="app-arch/zip"
+RDEPEND="pam? ( sys-libs/pam )"
 
 src_compile() {
-       BUILDFLAGS="" 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
+       BUILDFLAGS="" GOPATH="${S}" emake -j1 -C src/${EGO_PN%/*} full
 }
 
 src_install() {
-       dodir /var/lib/${PN} /etc/${PN}
+       keepdir /var/lib/${PN} /etc/${PN}
        dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
 
        insinto /etc/${PN}
@@ -46,10 +40,10 @@ src_install() {
        newinitd "${FILESDIR}"/${PN}.init.d ${PN}
        newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
 
-       systemd_dounit "${FILESDIR}"/${PN}.service
+       systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
        systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
 }
 
 src_test() {
-       GOPATH="${S}" emake -C src/${EGO_PN%/*} test
+       BUILDFLAGS="" GOPATH="${S}" emake -C src/${EGO_PN%/*} test
 }

Reply via email to