diff options
author | Graeme Lawes <graemelawes@gmail.com> | 2019-10-10 23:11:48 -0400 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-10-11 16:48:02 +0300 |
commit | 18049927703f107986a3020db2437a8d2428b9c2 (patch) | |
tree | e1c77a76b9bf50cc3509911001fdd334ced45179 /sys-cluster/teleport/teleport-4.1.1.ebuild | |
parent | sys-cluster/teleport: add v4.0.9 (diff) | |
download | gentoo-18049927703f107986a3020db2437a8d2428b9c2.tar.gz gentoo-18049927703f107986a3020db2437a8d2428b9c2.tar.bz2 gentoo-18049927703f107986a3020db2437a8d2428b9c2.zip |
sys-cluster/teleport: add v4.1.1
Signed-off-by: Graeme Lawes <graemelawes@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-cluster/teleport/teleport-4.1.1.ebuild')
-rw-r--r-- | sys-cluster/teleport/teleport-4.1.1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-cluster/teleport/teleport-4.1.1.ebuild b/sys-cluster/teleport/teleport-4.1.1.ebuild new file mode 100644 index 000000000000..5421480e2d1b --- /dev/null +++ b/sys-cluster/teleport/teleport-4.1.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-build systemd + +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 + +IUSE="pam" +LICENSE="Apache-2.0 MIT BSD ISC" +RESTRICT="test strip" +SLOT="0" + +BDEPEND="app-arch/zip" +RDEPEND="pam? ( sys-libs/pam )" + +src_compile() { + BUILDFLAGS="" GOPATH="${S}" emake -j1 -C src/${EGO_PN%/*} full +} + +src_install() { + keepdir /var/lib/${PN} /etc/${PN} + dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport} + + insinto /etc/${PN} + newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml + + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + newconfd "${FILESDIR}"/${PN}.conf.d ${PN} + + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service + systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service +} + +src_test() { + BUILDFLAGS="" GOPATH="${S}" emake -C src/${EGO_PN%/*} test +} |