Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2018 20:35:40 +0000 (UTC)
From:      Sean Chittenden <seanc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r469693 - in head/security/teleport: . files
Message-ID:  <201805112035.w4BKZeQA052712@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: seanc
Date: Fri May 11 20:35:39 2018
New Revision: 469693
URL: https://svnweb.freebsd.org/changeset/ports/469693

Log:
  Upgrade gravitational teleport to 2.5.7.
  
  Explicitly specify the git sha when building teleport. Restrict builds to amd64.
  
  Reviewed by:	swills, mat
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D15311

Added:
  head/security/teleport/files/patch-version.mk   (contents, props changed)
Modified:
  head/security/teleport/Makefile
  head/security/teleport/distinfo

Modified: head/security/teleport/Makefile
==============================================================================
--- head/security/teleport/Makefile	Fri May 11 20:34:00 2018	(r469692)
+++ head/security/teleport/Makefile	Fri May 11 20:35:39 2018	(r469693)
@@ -2,7 +2,7 @@
 
 PORTNAME=	teleport
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.5.6
+DISTVERSION=	2.5.7
 CATEGORIES=	security
 
 MAINTAINER=	seanc@FreeBSD.org
@@ -10,6 +10,8 @@ COMMENT=	Gravitational Telport SSH
 
 LICENSE=	APACHE20
 
+ONLY_FOR_ARCHS=	amd64
+
 BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go \
 		${LOCALBASE}/bin/zip:archivers/zip
 
@@ -18,6 +20,7 @@ USES=		compiler gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	gravitational
 GH_TAGNAME=	v${DISTVERSION}${DISTVERSIONSUFFIX}
+GH_TAG_COMMIT=	b3f4ecb
 
 USE_RC_SUBR=	teleport
 
@@ -38,11 +41,15 @@ post-extract:
 	@${CP} -rp ${WRKDIR}/${PRE_GOPATH_DIR}/vendor/* ${WRKDIR}/src/
 	@${CP} -rp ${WRKDIR}/${PRE_GOPATH_DIR}/* ${WRKDIR}/${GO_TELEPORT_SRC_DIR}/
 
+post-patch:
+	@${REINPLACE_CMD} -e "s|%%GH_TAG_COMMIT%%|${GH_TAG_COMMIT}|g" \
+		${WRKDIR}/${GO_TELEPORT_SRC_DIR}/version.mk
+
 do-build:
 	@cd ${WRKDIR}/${GO_TELEPORT_SRC_DIR} && \
 		${SETENV} ${MAKE_ENV} ${BUILD_ENV} \
 		CGO_ENABLED=1 GOPATH=${WRKDIR} \
-		${GMAKE} full
+		${GMAKE} -s full
 
 do-install:
 	${WRKDIR}/${GO_TELEPORT_SRC_DIR}/build/teleport configure > ${STAGEDIR}${PREFIX}/etc/teleport.yaml.sample

Modified: head/security/teleport/distinfo
==============================================================================
--- head/security/teleport/distinfo	Fri May 11 20:34:00 2018	(r469692)
+++ head/security/teleport/distinfo	Fri May 11 20:35:39 2018	(r469693)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1524207284
-SHA256 (gravitational-teleport-v2.5.6_GH0.tar.gz) = 7a7168df106b1d4ea3b81b5078eaf6ea8f6063b11c7171202d2e2b9bfbdcfe2c
-SIZE (gravitational-teleport-v2.5.6_GH0.tar.gz) = 16216649
+TIMESTAMP = 1525898627
+SHA256 (gravitational-teleport-v2.5.7_GH0.tar.gz) = 26a62a4ae91482d51191f53edde01a93b13e23a257b5336de06e336ed39c8e7e
+SIZE (gravitational-teleport-v2.5.7_GH0.tar.gz) = 16216353

Added: head/security/teleport/files/patch-version.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/teleport/files/patch-version.mk	Fri May 11 20:35:39 2018	(r469693)
@@ -0,0 +1,8 @@
+--- ../src/github.com/gravitational/teleport/version.mk.orig	2018-05-05 22:53:11 UTC
++++ ../src/github.com/gravitational/teleport/version.mk
+@@ -1,4 +1,4 @@
+-GITREF=`git describe --dirty --long --tags`
++GITREF="%%GH_TAG_COMMIT%%"
+ 
+ # $(VERSION_GO) will be written to version.go
+ VERSION_GO="/* DO NOT EDIT THIS FILE. IT IS GENERATED BY 'make setver'*/\n\n\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805112035.w4BKZeQA052712>