public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/teleport/, sys-cluster/teleport/files/
@ 2017-08-19 18:34 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2017-08-19 18:34 UTC (permalink / raw
  To: gentoo-commits

commit:     3868a4ae836f49d059d295c39a94a1fca4675d4a
Author:     Graeme Lawes <graemelawes <AT> gmail <DOT> com>
AuthorDate: Fri Aug 18 03:37:59 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 19 18:20:34 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3868a4ae

sys-cluster/teleport: don't pre-strip binaries

Needed to patch Makefile to allow BUILDFLAGS to be overridden.  This
will be fixed in later upstream releases.

 sys-cluster/teleport/files/teleport-makefile-buildflags.patch | 11 +++++++++++
 sys-cluster/teleport/teleport-2.2.0.ebuild                    |  4 +++-
 sys-cluster/teleport/teleport-2.2.1.ebuild                    |  4 +++-
 sys-cluster/teleport/teleport-2.2.4.ebuild                    |  4 +++-
 sys-cluster/teleport/teleport-9999.ebuild                     |  2 +-
 5 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/sys-cluster/teleport/files/teleport-makefile-buildflags.patch b/sys-cluster/teleport/files/teleport-makefile-buildflags.patch
new file mode 100644
index 00000000000..d3da35350d8
--- /dev/null
+++ b/sys-cluster/teleport/files/teleport-makefile-buildflags.patch
@@ -0,0 +1,11 @@
+--- work/src/github.com/gravitational/teleport/Makefile
++++ work/src/github.com/gravitational/teleport/Makefile
+@@ -12,7 +12,7 @@
+ PWD ?= `pwd`
+ TELEPORT_DEBUG ?= no
+ GITTAG=v$(VERSION)
+-BUILDFLAGS := $(ADDFLAGS) -ldflags '-w -s'
++BUILDFLAGS ?= $(ADDFLAGS) -ldflags '-w -s'
+ 
+ RELEASE=teleport-$(GITTAG)-`go env GOOS`-`go env GOARCH`-bin
+ BINARIES=$(BUILDDIR)/tsh $(BUILDDIR)/teleport $(BUILDDIR)/tctl

diff --git a/sys-cluster/teleport/teleport-2.2.0.ebuild b/sys-cluster/teleport/teleport-2.2.0.ebuild
index 73701f3ef24..3fafc3ed333 100644
--- a/sys-cluster/teleport/teleport-2.2.0.ebuild
+++ b/sys-cluster/teleport/teleport-2.2.0.ebuild
@@ -27,8 +27,10 @@ DEPEND="
 	>=dev-lang/go-1.8.3"
 RDEPEND=""
 
+PATCHES=( "${FILESDIR}"/${PN}-makefile-buildflags.patch )
+
 src_compile() {
-	GOPATH="${S}" emake -C src/${EGO_PN%/*}
+	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

diff --git a/sys-cluster/teleport/teleport-2.2.1.ebuild b/sys-cluster/teleport/teleport-2.2.1.ebuild
index 73701f3ef24..3fafc3ed333 100644
--- a/sys-cluster/teleport/teleport-2.2.1.ebuild
+++ b/sys-cluster/teleport/teleport-2.2.1.ebuild
@@ -27,8 +27,10 @@ DEPEND="
 	>=dev-lang/go-1.8.3"
 RDEPEND=""
 
+PATCHES=( "${FILESDIR}"/${PN}-makefile-buildflags.patch )
+
 src_compile() {
-	GOPATH="${S}" emake -C src/${EGO_PN%/*}
+	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

diff --git a/sys-cluster/teleport/teleport-2.2.4.ebuild b/sys-cluster/teleport/teleport-2.2.4.ebuild
index d4cdaf815da..90fddb344c0 100644
--- a/sys-cluster/teleport/teleport-2.2.4.ebuild
+++ b/sys-cluster/teleport/teleport-2.2.4.ebuild
@@ -28,8 +28,10 @@ DEPEND="
 	>=dev-lang/go-1.8.3"
 RDEPEND=""
 
+PATCHES=( "${FILESDIR}"/${PN}-makefile-buildflags.patch )
+
 src_compile() {
-	GOPATH="${S}" emake -C src/${EGO_PN%/*}
+	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

diff --git a/sys-cluster/teleport/teleport-9999.ebuild b/sys-cluster/teleport/teleport-9999.ebuild
index 99620ea6684..3e870fac4bd 100644
--- a/sys-cluster/teleport/teleport-9999.ebuild
+++ b/sys-cluster/teleport/teleport-9999.ebuild
@@ -28,7 +28,7 @@ DEPEND="
 RDEPEND=""
 
 src_compile() {
-	GOPATH="${S}" emake -C src/${EGO_PN%/*}
+	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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/teleport/, sys-cluster/teleport/files/
@ 2018-10-11 18:53 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2018-10-11 18:53 UTC (permalink / raw
  To: gentoo-commits

commit:     fa0c17775cb38c262fd74222a7bea12db379dde6
Author:     Graeme Lawes <graemelawes <AT> gmail <DOT> com>
AuthorDate: Thu Oct  4 00:35:04 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 11 18:52:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa0c1777

sys-cluster/teleport: use files/teleport-2.yaml for config file source

Signed-off-by: Graeme Lawes <graemelawes <AT> gmail.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-cluster/teleport/files/{teleport.yaml => teleport-2.yaml} | 0
 sys-cluster/teleport/teleport-2.6.7.ebuild                    | 2 +-
 sys-cluster/teleport/teleport-2.7.1.ebuild                    | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-cluster/teleport/files/teleport.yaml b/sys-cluster/teleport/files/teleport-2.yaml
similarity index 100%
rename from sys-cluster/teleport/files/teleport.yaml
rename to sys-cluster/teleport/files/teleport-2.yaml

diff --git a/sys-cluster/teleport/teleport-2.6.7.ebuild b/sys-cluster/teleport/teleport-2.6.7.ebuild
index 4a7a27e42a4..e7bfb7ce040 100644
--- a/sys-cluster/teleport/teleport-2.6.7.ebuild
+++ b/sys-cluster/teleport/teleport-2.6.7.ebuild
@@ -35,7 +35,7 @@ src_install() {
 	dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
 
 	insinto /etc/${PN}
-	newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml
+	newins "${FILESDIR}"/${PN}-2.yaml ${PN}.yaml
 
 	newinitd "${FILESDIR}"/${PN}.init.d ${PN}
 	newconfd "${FILESDIR}"/${PN}.conf.d ${PN}

diff --git a/sys-cluster/teleport/teleport-2.7.1.ebuild b/sys-cluster/teleport/teleport-2.7.1.ebuild
index 4a7a27e42a4..e7bfb7ce040 100644
--- a/sys-cluster/teleport/teleport-2.7.1.ebuild
+++ b/sys-cluster/teleport/teleport-2.7.1.ebuild
@@ -35,7 +35,7 @@ src_install() {
 	dobin src/${EGO_PN%/*}/build/{tsh,tctl,teleport}
 
 	insinto /etc/${PN}
-	newins "${FILESDIR}"/${PN}.yaml ${PN}.yaml
+	newins "${FILESDIR}"/${PN}-2.yaml ${PN}.yaml
 
 	newinitd "${FILESDIR}"/${PN}.init.d ${PN}
 	newconfd "${FILESDIR}"/${PN}.conf.d ${PN}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-11 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-11 18:53 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/teleport/, sys-cluster/teleport/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2017-08-19 18:34 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox