From owner-svn-ports-all@freebsd.org Sun Oct 30 10:24:10 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C135DC26192; Sun, 30 Oct 2016 10:24:10 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 934DE1292; Sun, 30 Oct 2016 10:24:10 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9UAO9Tn083428; Sun, 30 Oct 2016 10:24:09 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9UAO9bG083424; Sun, 30 Oct 2016 10:24:09 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201610301024.u9UAO9bG083424@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Date: Sun, 30 Oct 2016 10:24:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424940 - in head/net: . concourse-fly X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 10:24:10 -0000 Author: dumbbell (src committer) Date: Sun Oct 30 10:24:09 2016 New Revision: 424940 URL: https://svnweb.freebsd.org/changeset/ports/424940 Log: net/concourse-fly: New port for Concourse's CLI Approved by: mat Differential Revision: https://reviews.freebsd.org/D7819 Added: head/net/concourse-fly/ head/net/concourse-fly/Makefile (contents, props changed) head/net/concourse-fly/distinfo (contents, props changed) head/net/concourse-fly/pkg-descr (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sun Oct 30 09:22:15 2016 (r424939) +++ head/net/Makefile Sun Oct 30 10:24:09 2016 (r424940) @@ -75,6 +75,7 @@ SUBDIR += cnd SUBDIR += coda6_client SUBDIR += coda6_server + SUBDIR += concourse-fly SUBDIR += corkscrew SUBDIR += corosync SUBDIR += courier-authlib-ldap Added: head/net/concourse-fly/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/concourse-fly/Makefile Sun Oct 30 10:24:09 2016 (r424940) @@ -0,0 +1,68 @@ +# $FreeBSD$ + +PORTNAME= concourse +PORTVERSION= 2.3.1 +CATEGORIES= net sysutils +MASTER_SITES= LOCAL/dumbbell/concourse/ +PKGNAMESUFFIX= -fly + +MAINTAINER= dumbbell@FreeBSD.org +COMMENT= CLI for Concourse + +LICENSE= APACHE20 + +CONFLICTS_INSTALL= fly + +GO_CMD= ${LOCALBASE}/bin/go +GO_PKGNAME= github.com/concourse/fly + +USES= go tar:xz + +PLIST_FILES= bin/fly + +STRIP= # stripping can break go binaries + +# The build instructions for `fly` suggest to clone the global Concourse +# repository, which contains many Git submodules, including fly, and +# build from there. So basically: +# +# git clone --recursive http://github.com/concourse/concourse.gi +# cd concourse +# export GOPATH=$PWD +# cd src/github.com/concourse/fly +# go build +# +# Therefore, the source archive contains the Concourse top-level +# repository and all its submodules. It's created using the +# create-src-archive below: +# +# make create-src-archive +# +# Because it doesn't match the project layout USES=go expects, we +# override the post-extract and do-build targets to adapt the commands. +# +# `fly` version is set by default to "0.0.0-dev" in version/Version.go. +# Instead of patching the file, we use a linker flag to set the variable +# to the port's version. + +post-extract: + ${LN} -sf ${WRKSRC}/src ${GO_WRKDIR_SRC} + +do-build: + (cd ${WRKDIR}; \ + ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} \ + install -v -ldflags="-X github.com/concourse/fly/version.Version=${PORTVERSION}" ${GO_TARGET}) + +.include + +.PHONY: create-src-archive +ARCHIVE_DIR= ${DISTDIR}/concourse-${PORTVERSION} +create-src-archive: + ${RM} -rf ${ARCHIVE_DIR} + git clone --recursive -b v${PORTVERSION} \ + https://github.com/concourse/concourse.git \ + ${ARCHIVE_DIR} + ${FIND} ${ARCHIVE_DIR} \( -name ".git*" -o -name "testdata" \) -depth -exec rm -rf {} \; + ${TAR} -cf - -C ${ARCHIVE_DIR:H} ${ARCHIVE_DIR:T} | ${XZ_CMD} > ${ARCHIVE_DIR}.tar.xz + ${RM} -rf ${ARCHIVE_DIR} + ${MAKE} makesum Added: head/net/concourse-fly/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/concourse-fly/distinfo Sun Oct 30 10:24:09 2016 (r424940) @@ -0,0 +1,3 @@ +TIMESTAMP = 1476452215 +SHA256 (concourse-2.3.1.tar.xz) = f5bbe289cd107da02795bb0e9fb0d6365be78ee8ffd3b35272afd5b0ce850ba7 +SIZE (concourse-2.3.1.tar.xz) = 8586184 Added: head/net/concourse-fly/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/concourse-fly/pkg-descr Sun Oct 30 10:24:09 2016 (r424940) @@ -0,0 +1,7 @@ +The `fly` tool is a command line interface to Concourse. It is used for +a number of tasks from connecting to a shell in one of your build's +containers to uploading new pipeline configuration into a running +Concourse. Learning how to use `fly` will make using Concourse faster +and more useful. + +WWW: http://concourse.ci/