This repository has been archived on 2026-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
teleport-bin/PKGBUILD
T
Christian Heusel 5ef8bd4036 upgpkg: teleport-bin 15.1.8-1
upstream release
2024-03-18 14:59:15 +01:00

59 lines
2.6 KiB
Bash

# Maintainer: Ariel AxionL <arielaxionl@gmail.com | axionl@aosc.io>
# Maintainer: Maarten de Boer <maarten@cloudstek.nl>
# Maintainer: Christian Heusel <christian@heusel.eu>
# Contributor: Johannes Pfrang <johannespfrang+arch @ gmail.com>
# Contributor: Emanuele 'Lele aka eldios' Calo' <xeldiosx@gmail.com>
_pkgname=teleport
pkgname=teleport-bin
pkgver=15.1.8
pkgrel=1
pkgdesc="Modern SSH server for teams managing distributed infrastructure"
arch=('i386' 'x86_64' 'armv7h' 'aarch64')
url="https://goteleport.com/"
license=('Apache-2.0')
provides=('teleport' 'tctl' 'tsh' 'tbot')
conflicts=('teleport')
install=teleport.install
source=("teleport.service"
"teleport@.service"
"teleport.install")
# The teleport servers do not allow for byte ranges to continue download so we set -C0
# https://aur.archlinux.org/packages/teleport-bin#comment-906339
DLAGENTS=('https::/usr/bin/curl -qgb "" -fL -C0 --retry 3 --retry-delay 3 -o %o %u')
source_i386=("teleport-bin-${pkgver}-i386.tar.gz::https://get.gravitational.com/teleport-v${pkgver}-linux-386-bin.tar.gz")
source_x86_64=("teleport-bin-${pkgver}-x86_64.tar.gz::https://get.gravitational.com/teleport-v${pkgver}-linux-amd64-bin.tar.gz")
source_armv7h=("teleport-bin-${pkgver}-armv7h.tar.gz::https://get.gravitational.com/teleport-v${pkgver}-linux-arm-bin.tar.gz")
source_aarch64=("teleport-bin-${pkgver}-aarch64.tar.gz::https://get.gravitational.com/teleport-v${pkgver}-linux-arm64-bin.tar.gz")
sha256sums=('22fd1ee136e9422458740811c9946de447105f26e87dbbc8daa35d17bd1f3894'
'21ca4e56c9c5e1ce11570894e85ded853e26e91cc2e16ed9114b3d6a2c5c22ef'
'ce2dd61cae3c0c3684e7e629f98b77551e66ddedca2194250a34f0efbc674f3a')
sha256sums_i386=('4789f81e1214c9c16b99825e4884812b08b2166e88dca8a16df8bc02af6ec035')
sha256sums_x86_64=('f5c0562c576fff923dae82205a60dcca25d96d453a673e45958ef3066f8b1485')
sha256sums_armv7h=('c447f1194848d0c3e1da900deda416680e8bc5540770619b96101b681584ec29')
sha256sums_aarch64=('3c10116986c3ffd467f484671957d278a7f1820127729e5a27b7e2ed78c842ee')
options=(!strip)
package() {
cd "${_pkgname}"
# Install binaries
install -Dm755 teleport "${pkgdir}/usr/bin/teleport"
install -Dm755 tctl "${pkgdir}/usr/bin/tctl"
install -Dm755 tsh "${pkgdir}/usr/bin/tsh"
install -Dm755 tbot "${pkgdir}/usr/bin/tbot"
# Install services
install -Dm644 ${srcdir}/teleport.service "${pkgdir}/usr/lib/systemd/system/teleport.service"
install -Dm644 ${srcdir}/teleport@.service "${pkgdir}/usr/lib/systemd/system/teleport@.service"
# Copy example files
install -dm755 "${pkgdir}/usr/share/teleport"
cp -r examples "${pkgdir}/usr/share/teleport/"
}