* [PR PATCH] New package: teleport-7.3.3
@ 2021-11-15 8:01 jcgruenhage
2021-11-15 14:07 ` jcgruenhage
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: jcgruenhage @ 2021-11-15 8:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
There is a new pull request by jcgruenhage against master on the void-packages repository
https://github.com/jcgruenhage/void-packages teleport-7.3.3_1
https://github.com/void-linux/void-packages/pull/34091
New package: teleport-7.3.3
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
To elaborate on what "briefly" means: I've used the client package successfully to connect to an SSH server protected by a teleport proxy. I have not tried running the server bits of this at all, which are included in this package anyway. Is that still enough for inclusion as is?
A patch file from https://github.com/void-linux/void-packages/pull/34091.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-teleport-7.3.3_1-34091.patch --]
[-- Type: text/x-diff, Size: 2353 bytes --]
From aca6fb393136a8c484ab0feef38e06ead003074b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Sun, 14 Nov 2021 22:42:21 +0100
Subject: [PATCH] New package: teleport-7.3.3
---
srcpkgs/teleport-client | 1 +
srcpkgs/teleport/template | 54 +++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 120000 srcpkgs/teleport-client
create mode 100644 srcpkgs/teleport/template
diff --git a/srcpkgs/teleport-client b/srcpkgs/teleport-client
new file mode 120000
index 000000000000..27d1669ea808
--- /dev/null
+++ b/srcpkgs/teleport-client
@@ -0,0 +1 @@
+teleport
\ No newline at end of file
diff --git a/srcpkgs/teleport/template b/srcpkgs/teleport/template
new file mode 100644
index 000000000000..5d5ec7509172
--- /dev/null
+++ b/srcpkgs/teleport/template
@@ -0,0 +1,54 @@
+# Template file for 'teleport'
+pkgname=teleport
+version=7.3.3
+revision=1
+_webassets_ref="15ef31441805c81aae1095a59a9b152a779ccd79"
+create_wrksrc=yes
+build_style=gnu-makefile
+hostmakedepends="go"
+short_desc="Identity aware access proxy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://goteleport.com/"
+distfiles="https://github.com/gravitational/teleport/archive/refs/tags/v${version}.tar.gz
+ https://github.com/gravitational/webassets/archive/${_webassets_ref}.tar.gz"
+
+checksum="893fb8e06f28eb5ee48989bf8e4fa2358a41d65d3c0372fe95076c948b530514
+ 8082e79fb2c192124192c1c2ba09f0bad7be8e3b3bb93ddfa0221ed4351bf80a"
+make_dirs="/var/lib/teleport 755 root root"
+
+do_extract() {
+ local f curfile
+
+ mkdir -p "${wrksrc}"
+ for f in ${distfiles}; do
+ curfile="${f#*>}"
+ curfile="${curfile##*/}"
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} "${wrksrc}/${curfile}"
+ done
+}
+
+post_extract() {
+ bsdtar -xf "v${version}.tar.gz"
+ bsdtar -xf ${_webassets_ref}.tar.gz
+ mv webassets-${_webassets_ref}/* teleport-${version}/webassets
+ rm v${version}.tar.gz ${_webassets_ref}.tar.gz webassets-${_webassets_ref} -r
+ mv teleport-${version}/* .
+ rm teleport-${version} -r
+}
+
+pre_build() {
+ export ADDFLAGS="-buildmode=pie"
+}
+
+do_install() {
+ vbin build/teleport
+}
+
+teleport-client_package() {
+ short_desc+=" - client binaries"
+ pkg_install() {
+ vbin build/tsh
+ vbin build/tctl
+ }
+}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: New package: teleport-7.3.3
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
@ 2021-11-15 14:07 ` jcgruenhage
2021-11-20 14:58 ` Chocimier
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jcgruenhage @ 2021-11-15 14:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
New comment by jcgruenhage on void-packages repository
https://github.com/void-linux/void-packages/pull/34091#issuecomment-968945023
Comment:
This fails to cross compile right now, because GOARCH etc aren't set up correctly. Would it make sense to move some bits out of the go build-style and put them into a go build-helper instead, allowing me to load them here while keeping the gnu-makefile build-style?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: New package: teleport-7.3.3
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
2021-11-15 14:07 ` jcgruenhage
@ 2021-11-20 14:58 ` Chocimier
2022-02-26 18:23 ` [PR PATCH] [Updated] " jcgruenhage
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Chocimier @ 2021-11-20 14:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
New comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/34091#issuecomment-974661563
Comment:
Go build-helper may be useful, make a separate PR.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] New package: teleport-7.3.3
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
2021-11-15 14:07 ` jcgruenhage
2021-11-20 14:58 ` Chocimier
@ 2022-02-26 18:23 ` jcgruenhage
2022-06-13 2:16 ` github-actions
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jcgruenhage @ 2022-02-26 18:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]
There is an updated pull request by jcgruenhage against master on the void-packages repository
https://github.com/jcgruenhage/void-packages teleport-7.3.3_1
https://github.com/void-linux/void-packages/pull/34091
New package: teleport-7.3.3
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
To elaborate on what "briefly" means: I've used the client package successfully to connect to an SSH server protected by a teleport proxy. I have not tried running the server bits of this at all, which are included in this package anyway. Is that still enough for inclusion as is?
A patch file from https://github.com/void-linux/void-packages/pull/34091.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-teleport-7.3.3_1-34091.patch --]
[-- Type: text/x-diff, Size: 2354 bytes --]
From f2bf51cd62610aa7ae2997b21be79afa4e80869d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Sun, 14 Nov 2021 22:42:21 +0100
Subject: [PATCH] New package: teleport-8.3.1.
---
srcpkgs/teleport-client | 1 +
srcpkgs/teleport/template | 54 +++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 120000 srcpkgs/teleport-client
create mode 100644 srcpkgs/teleport/template
diff --git a/srcpkgs/teleport-client b/srcpkgs/teleport-client
new file mode 120000
index 000000000000..27d1669ea808
--- /dev/null
+++ b/srcpkgs/teleport-client
@@ -0,0 +1 @@
+teleport
\ No newline at end of file
diff --git a/srcpkgs/teleport/template b/srcpkgs/teleport/template
new file mode 100644
index 000000000000..2c1712b54025
--- /dev/null
+++ b/srcpkgs/teleport/template
@@ -0,0 +1,54 @@
+# Template file for 'teleport'
+pkgname=teleport
+version=8.3.1
+revision=1
+_webassets_ref="763ddfa16d2a2d8f4b1d24a7d6b9591c0677a20c"
+create_wrksrc=yes
+build_style=gnu-makefile
+hostmakedepends="go"
+short_desc="Identity aware access proxy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://goteleport.com/"
+distfiles="https://github.com/gravitational/teleport/archive/refs/tags/v${version}.tar.gz
+ https://github.com/gravitational/webassets/archive/${_webassets_ref}.tar.gz"
+
+checksum="b7312da301e8acd2aaf5667afc4529b1830636f2ffbbd490019d973ef510b3d6
+ 033d77412d34c6cc72a1545c74cf3f56a32c6ef0dc2d6a64ea2dcf9de1c88eaf"
+make_dirs="/var/lib/teleport 755 root root"
+
+do_extract() {
+ local f curfile
+
+ mkdir -p "${wrksrc}"
+ for f in ${distfiles}; do
+ curfile="${f#*>}"
+ curfile="${curfile##*/}"
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} "${wrksrc}/${curfile}"
+ done
+}
+
+post_extract() {
+ bsdtar -xf "v${version}.tar.gz"
+ bsdtar -xf ${_webassets_ref}.tar.gz
+ mv webassets-${_webassets_ref}/* teleport-${version}/webassets
+ rm v${version}.tar.gz ${_webassets_ref}.tar.gz webassets-${_webassets_ref} -r
+ mv teleport-${version}/* .
+ rm teleport-${version} -r
+}
+
+pre_build() {
+ export ADDFLAGS="-buildmode=pie"
+}
+
+do_install() {
+ vbin build/teleport
+}
+
+teleport-client_package() {
+ short_desc+=" - client binaries"
+ pkg_install() {
+ vbin build/tsh
+ vbin build/tctl
+ }
+}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: New package: teleport-7.3.3
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (2 preceding siblings ...)
2022-02-26 18:23 ` [PR PATCH] [Updated] " jcgruenhage
@ 2022-06-13 2:16 ` github-actions
2022-06-14 9:32 ` [PR PATCH] [Updated] New package: teleport-9.3.4 jcgruenhage
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: github-actions @ 2022-06-13 2:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/34091#issuecomment-1153388153
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] New package: teleport-9.3.4
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (3 preceding siblings ...)
2022-06-13 2:16 ` github-actions
@ 2022-06-14 9:32 ` jcgruenhage
2022-06-14 9:32 ` jcgruenhage
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jcgruenhage @ 2022-06-14 9:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]
There is an updated pull request by jcgruenhage against master on the void-packages repository
https://github.com/jcgruenhage/void-packages teleport-7.3.3_1
https://github.com/void-linux/void-packages/pull/34091
New package: teleport-9.3.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
To elaborate on what "briefly" means: I've used the client package successfully to connect to an SSH server protected by a teleport proxy. I have not tried running the server bits of this at all, which are included in this package anyway. Is that still enough for inclusion as is?
A patch file from https://github.com/void-linux/void-packages/pull/34091.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-teleport-7.3.3_1-34091.patch --]
[-- Type: text/x-diff, Size: 6171 bytes --]
From 0020a697dabc10a88c192fab2ff9bfc60a72c390 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Mon, 13 Jun 2022 14:46:00 +0200
Subject: [PATCH 1/2] New build-helper: go
This moves most of the go environment definition into a go build helper,
allowing projects that don't use the go build-style to use those
environment variables.
---
common/build-helper/go.sh | 45 +++++++++++++++++++++++++++
common/environment/build-style/go.sh | 46 +---------------------------
2 files changed, 46 insertions(+), 45 deletions(-)
create mode 100644 common/build-helper/go.sh
diff --git a/common/build-helper/go.sh b/common/build-helper/go.sh
new file mode 100644
index 000000000000..afa9082c927a
--- /dev/null
+++ b/common/build-helper/go.sh
@@ -0,0 +1,45 @@
+if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
+ # gc compiler
+ if [ -z "$archs" ]; then
+ archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
+ fi
+ hostmakedepends+=" go"
+ nopie=yes
+else
+ # gccgo compiler
+ if [ -z "$archs" ]; then
+ # we have support for these in our gcc
+ archs="aarch64* armv[567]* i686* x86_64* ppc64*"
+ fi
+ if [ "$CROSS_BUILD" ]; then
+ # target compiler to use; otherwise it'll just call gccgo
+ export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"
+ fi
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+ aarch64*) export GOARCH=arm64;;
+ armv5*) export GOARCH=arm; export GOARM=5;;
+ armv6*) export GOARCH=arm; export GOARM=6;;
+ armv7*) export GOARCH=arm; export GOARM=7;;
+ i686*) export GOARCH=386;;
+ x86_64*) export GOARCH=amd64;;
+ ppc64le*) export GOARCH=ppc64le;;
+ ppc64*) export GOARCH=ppc64;;
+ ppc*) export GOARCH=ppc;;
+ mipsel*) export GOARCH=mipsle;;
+ mips*) export GOARCH=mips;;
+esac
+
+export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
+GOSRCPATH="${GOPATH}/src/${go_import_path}"
+export CGO_CFLAGS="$CFLAGS"
+export CGO_CPPFLAGS="$CPPFLAGS"
+export CGO_CXXFLAGS="$CXXFLAGS"
+export CGO_LDFLAGS="$LDFLAGS"
+export CGO_ENABLED=1
+export GO111MODULE=auto
+case "$XBPS_TARGET_MACHINE" in
+ *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
+ *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
+esac
diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh
index afa9082c927a..a765f7bab896 100644
--- a/common/environment/build-style/go.sh
+++ b/common/environment/build-style/go.sh
@@ -1,45 +1 @@
-if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
- # gc compiler
- if [ -z "$archs" ]; then
- archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
- fi
- hostmakedepends+=" go"
- nopie=yes
-else
- # gccgo compiler
- if [ -z "$archs" ]; then
- # we have support for these in our gcc
- archs="aarch64* armv[567]* i686* x86_64* ppc64*"
- fi
- if [ "$CROSS_BUILD" ]; then
- # target compiler to use; otherwise it'll just call gccgo
- export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"
- fi
-fi
-
-case "$XBPS_TARGET_MACHINE" in
- aarch64*) export GOARCH=arm64;;
- armv5*) export GOARCH=arm; export GOARM=5;;
- armv6*) export GOARCH=arm; export GOARM=6;;
- armv7*) export GOARCH=arm; export GOARM=7;;
- i686*) export GOARCH=386;;
- x86_64*) export GOARCH=amd64;;
- ppc64le*) export GOARCH=ppc64le;;
- ppc64*) export GOARCH=ppc64;;
- ppc*) export GOARCH=ppc;;
- mipsel*) export GOARCH=mipsle;;
- mips*) export GOARCH=mips;;
-esac
-
-export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
-GOSRCPATH="${GOPATH}/src/${go_import_path}"
-export CGO_CFLAGS="$CFLAGS"
-export CGO_CPPFLAGS="$CPPFLAGS"
-export CGO_CXXFLAGS="$CXXFLAGS"
-export CGO_LDFLAGS="$LDFLAGS"
-export CGO_ENABLED=1
-export GO111MODULE=auto
-case "$XBPS_TARGET_MACHINE" in
- *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
- *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
-esac
+build_helper+=" go"
From 549d30e487eb1f7339cb146f15e1bfe742737eec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Sun, 14 Nov 2021 22:42:21 +0100
Subject: [PATCH 2/2] New package: teleport-9.3.4
---
srcpkgs/teleport-client | 1 +
srcpkgs/teleport/template | 54 +++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 120000 srcpkgs/teleport-client
create mode 100644 srcpkgs/teleport/template
diff --git a/srcpkgs/teleport-client b/srcpkgs/teleport-client
new file mode 120000
index 000000000000..27d1669ea808
--- /dev/null
+++ b/srcpkgs/teleport-client
@@ -0,0 +1 @@
+teleport
\ No newline at end of file
diff --git a/srcpkgs/teleport/template b/srcpkgs/teleport/template
new file mode 100644
index 000000000000..975c17b5e07e
--- /dev/null
+++ b/srcpkgs/teleport/template
@@ -0,0 +1,54 @@
+# Template file for 'teleport'
+pkgname=teleport
+version=9.3.4
+revision=1
+_webassets_ref="e53be3321bece0a3a7bbbc25b406d6131243409d"
+create_wrksrc=yes
+build_style=gnu-makefile
+hostmakedepends="go"
+short_desc="Identity aware access proxy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://goteleport.com/"
+distfiles="https://github.com/gravitational/teleport/archive/refs/tags/v${version}.tar.gz
+ https://github.com/gravitational/webassets/archive/${_webassets_ref}.tar.gz"
+
+checksum="4561a069e87ab9e9cededa12b8ba1e7373b8aba47ebf48c6f3c02c8b23a0ccd0
+ bc31a5400acfc85e842be98055a764da41a83c385420a8afac19a801f4d609c8"
+make_dirs="/var/lib/teleport 755 root root"
+
+do_extract() {
+ local f curfile
+
+ mkdir -p "${wrksrc}"
+ for f in ${distfiles}; do
+ curfile="${f#*>}"
+ curfile="${curfile##*/}"
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} "${wrksrc}/${curfile}"
+ done
+}
+
+post_extract() {
+ bsdtar -xf "v${version}.tar.gz"
+ bsdtar -xf ${_webassets_ref}.tar.gz
+ mv webassets-${_webassets_ref}/* teleport-${version}/webassets
+ rm v${version}.tar.gz ${_webassets_ref}.tar.gz webassets-${_webassets_ref} -r
+ mv teleport-${version}/* .
+ rm teleport-${version} -r
+}
+
+pre_build() {
+ export ADDFLAGS="-buildmode=pie"
+}
+
+do_install() {
+ vbin build/teleport
+}
+
+teleport-client_package() {
+ short_desc+=" - client binaries"
+ pkg_install() {
+ vbin build/tsh
+ vbin build/tctl
+ }
+}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] New package: teleport-9.3.4
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (4 preceding siblings ...)
2022-06-14 9:32 ` [PR PATCH] [Updated] New package: teleport-9.3.4 jcgruenhage
@ 2022-06-14 9:32 ` jcgruenhage
2022-06-27 19:18 ` jcgruenhage
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jcgruenhage @ 2022-06-14 9:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]
There is an updated pull request by jcgruenhage against master on the void-packages repository
https://github.com/jcgruenhage/void-packages teleport-7.3.3_1
https://github.com/void-linux/void-packages/pull/34091
New package: teleport-9.3.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
To elaborate on what "briefly" means: I've used the client package successfully to connect to an SSH server protected by a teleport proxy. I have not tried running the server bits of this at all, which are included in this package anyway. Is that still enough for inclusion as is?
A patch file from https://github.com/void-linux/void-packages/pull/34091.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-teleport-7.3.3_1-34091.patch --]
[-- Type: text/x-diff, Size: 6187 bytes --]
From 0020a697dabc10a88c192fab2ff9bfc60a72c390 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Mon, 13 Jun 2022 14:46:00 +0200
Subject: [PATCH 1/2] New build-helper: go
This moves most of the go environment definition into a go build helper,
allowing projects that don't use the go build-style to use those
environment variables.
---
common/build-helper/go.sh | 45 +++++++++++++++++++++++++++
common/environment/build-style/go.sh | 46 +---------------------------
2 files changed, 46 insertions(+), 45 deletions(-)
create mode 100644 common/build-helper/go.sh
diff --git a/common/build-helper/go.sh b/common/build-helper/go.sh
new file mode 100644
index 000000000000..afa9082c927a
--- /dev/null
+++ b/common/build-helper/go.sh
@@ -0,0 +1,45 @@
+if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
+ # gc compiler
+ if [ -z "$archs" ]; then
+ archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
+ fi
+ hostmakedepends+=" go"
+ nopie=yes
+else
+ # gccgo compiler
+ if [ -z "$archs" ]; then
+ # we have support for these in our gcc
+ archs="aarch64* armv[567]* i686* x86_64* ppc64*"
+ fi
+ if [ "$CROSS_BUILD" ]; then
+ # target compiler to use; otherwise it'll just call gccgo
+ export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"
+ fi
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+ aarch64*) export GOARCH=arm64;;
+ armv5*) export GOARCH=arm; export GOARM=5;;
+ armv6*) export GOARCH=arm; export GOARM=6;;
+ armv7*) export GOARCH=arm; export GOARM=7;;
+ i686*) export GOARCH=386;;
+ x86_64*) export GOARCH=amd64;;
+ ppc64le*) export GOARCH=ppc64le;;
+ ppc64*) export GOARCH=ppc64;;
+ ppc*) export GOARCH=ppc;;
+ mipsel*) export GOARCH=mipsle;;
+ mips*) export GOARCH=mips;;
+esac
+
+export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
+GOSRCPATH="${GOPATH}/src/${go_import_path}"
+export CGO_CFLAGS="$CFLAGS"
+export CGO_CPPFLAGS="$CPPFLAGS"
+export CGO_CXXFLAGS="$CXXFLAGS"
+export CGO_LDFLAGS="$LDFLAGS"
+export CGO_ENABLED=1
+export GO111MODULE=auto
+case "$XBPS_TARGET_MACHINE" in
+ *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
+ *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
+esac
diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh
index afa9082c927a..a765f7bab896 100644
--- a/common/environment/build-style/go.sh
+++ b/common/environment/build-style/go.sh
@@ -1,45 +1 @@
-if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
- # gc compiler
- if [ -z "$archs" ]; then
- archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
- fi
- hostmakedepends+=" go"
- nopie=yes
-else
- # gccgo compiler
- if [ -z "$archs" ]; then
- # we have support for these in our gcc
- archs="aarch64* armv[567]* i686* x86_64* ppc64*"
- fi
- if [ "$CROSS_BUILD" ]; then
- # target compiler to use; otherwise it'll just call gccgo
- export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"
- fi
-fi
-
-case "$XBPS_TARGET_MACHINE" in
- aarch64*) export GOARCH=arm64;;
- armv5*) export GOARCH=arm; export GOARM=5;;
- armv6*) export GOARCH=arm; export GOARM=6;;
- armv7*) export GOARCH=arm; export GOARM=7;;
- i686*) export GOARCH=386;;
- x86_64*) export GOARCH=amd64;;
- ppc64le*) export GOARCH=ppc64le;;
- ppc64*) export GOARCH=ppc64;;
- ppc*) export GOARCH=ppc;;
- mipsel*) export GOARCH=mipsle;;
- mips*) export GOARCH=mips;;
-esac
-
-export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
-GOSRCPATH="${GOPATH}/src/${go_import_path}"
-export CGO_CFLAGS="$CFLAGS"
-export CGO_CPPFLAGS="$CPPFLAGS"
-export CGO_CXXFLAGS="$CXXFLAGS"
-export CGO_LDFLAGS="$LDFLAGS"
-export CGO_ENABLED=1
-export GO111MODULE=auto
-case "$XBPS_TARGET_MACHINE" in
- *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
- *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;
-esac
+build_helper+=" go"
From 714c7678a2d114c2ae7376740b087ef465a2520b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Sun, 14 Nov 2021 22:42:21 +0100
Subject: [PATCH 2/2] New package: teleport-9.3.4
---
srcpkgs/teleport-client | 1 +
srcpkgs/teleport/template | 55 +++++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+)
create mode 120000 srcpkgs/teleport-client
create mode 100644 srcpkgs/teleport/template
diff --git a/srcpkgs/teleport-client b/srcpkgs/teleport-client
new file mode 120000
index 000000000000..27d1669ea808
--- /dev/null
+++ b/srcpkgs/teleport-client
@@ -0,0 +1 @@
+teleport
\ No newline at end of file
diff --git a/srcpkgs/teleport/template b/srcpkgs/teleport/template
new file mode 100644
index 000000000000..048c0cbeaabf
--- /dev/null
+++ b/srcpkgs/teleport/template
@@ -0,0 +1,55 @@
+# Template file for 'teleport'
+pkgname=teleport
+version=9.3.4
+revision=1
+_webassets_ref="e53be3321bece0a3a7bbbc25b406d6131243409d"
+create_wrksrc=yes
+build_style=gnu-makefile
+build_heler=go
+hostmakedepends="go"
+short_desc="Identity aware access proxy"
+maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
+license="Apache-2.0"
+homepage="https://goteleport.com/"
+distfiles="https://github.com/gravitational/teleport/archive/refs/tags/v${version}.tar.gz
+ https://github.com/gravitational/webassets/archive/${_webassets_ref}.tar.gz"
+
+checksum="4561a069e87ab9e9cededa12b8ba1e7373b8aba47ebf48c6f3c02c8b23a0ccd0
+ bc31a5400acfc85e842be98055a764da41a83c385420a8afac19a801f4d609c8"
+make_dirs="/var/lib/teleport 755 root root"
+
+do_extract() {
+ local f curfile
+
+ mkdir -p "${wrksrc}"
+ for f in ${distfiles}; do
+ curfile="${f#*>}"
+ curfile="${curfile##*/}"
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} "${wrksrc}/${curfile}"
+ done
+}
+
+post_extract() {
+ bsdtar -xf "v${version}.tar.gz"
+ bsdtar -xf ${_webassets_ref}.tar.gz
+ mv webassets-${_webassets_ref}/* teleport-${version}/webassets
+ rm v${version}.tar.gz ${_webassets_ref}.tar.gz webassets-${_webassets_ref} -r
+ mv teleport-${version}/* .
+ rm teleport-${version} -r
+}
+
+pre_build() {
+ export ADDFLAGS="-buildmode=pie"
+}
+
+do_install() {
+ vbin build/teleport
+}
+
+teleport-client_package() {
+ short_desc+=" - client binaries"
+ pkg_install() {
+ vbin build/tsh
+ vbin build/tctl
+ }
+}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: New package: teleport-9.3.4
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (5 preceding siblings ...)
2022-06-14 9:32 ` jcgruenhage
@ 2022-06-27 19:18 ` jcgruenhage
2022-09-26 2:15 ` github-actions
2022-10-11 2:13 ` [PR PATCH] [Closed]: " github-actions
8 siblings, 0 replies; 10+ messages in thread
From: jcgruenhage @ 2022-06-27 19:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
New comment by jcgruenhage on void-packages repository
https://github.com/void-linux/void-packages/pull/34091#issuecomment-1167779106
Comment:
not stale, just broken..
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: New package: teleport-9.3.4
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (6 preceding siblings ...)
2022-06-27 19:18 ` jcgruenhage
@ 2022-09-26 2:15 ` github-actions
2022-10-11 2:13 ` [PR PATCH] [Closed]: " github-actions
8 siblings, 0 replies; 10+ messages in thread
From: github-actions @ 2022-09-26 2:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/34091#issuecomment-1257385828
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Closed]: New package: teleport-9.3.4
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
` (7 preceding siblings ...)
2022-09-26 2:15 ` github-actions
@ 2022-10-11 2:13 ` github-actions
8 siblings, 0 replies; 10+ messages in thread
From: github-actions @ 2022-10-11 2:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
There's a closed pull request on the void-packages repository
New package: teleport-9.3.4
https://github.com/void-linux/void-packages/pull/34091
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
To elaborate on what "briefly" means: I've used the client package successfully to connect to an SSH server protected by a teleport proxy. I have not tried running the server bits of this at all, which are included in this package anyway. Is that still enough for inclusion as is?
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-10-11 2:13 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 8:01 [PR PATCH] New package: teleport-7.3.3 jcgruenhage
2021-11-15 14:07 ` jcgruenhage
2021-11-20 14:58 ` Chocimier
2022-02-26 18:23 ` [PR PATCH] [Updated] " jcgruenhage
2022-06-13 2:16 ` github-actions
2022-06-14 9:32 ` [PR PATCH] [Updated] New package: teleport-9.3.4 jcgruenhage
2022-06-14 9:32 ` jcgruenhage
2022-06-27 19:18 ` jcgruenhage
2022-09-26 2:15 ` github-actions
2022-10-11 2:13 ` [PR PATCH] [Closed]: " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).