From owner-svn-ports-all@freebsd.org Thu Sep 13 23:58:36 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08247109E42E; Thu, 13 Sep 2018 23:58:36 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF1818BF09; Thu, 13 Sep 2018 23:58:35 +0000 (UTC) (envelope-from danilo@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A37331C9E9; Thu, 13 Sep 2018 23:58:35 +0000 (UTC) (envelope-from danilo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8DNwZgr048498; Thu, 13 Sep 2018 23:58:35 GMT (envelope-from danilo@FreeBSD.org) Received: (from danilo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8DNwZCo048497; Thu, 13 Sep 2018 23:58:35 GMT (envelope-from danilo@FreeBSD.org) Message-Id: <201809132358.w8DNwZCo048497@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danilo set sender to danilo@FreeBSD.org using -f From: Danilo Egea Gondolfo Date: Thu, 13 Sep 2018 23:58:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479750 - head/sysutils/kops X-SVN-Group: ports-head X-SVN-Commit-Author: danilo X-SVN-Commit-Paths: head/sysutils/kops X-SVN-Commit-Revision: 479750 X-SVN-Commit-Repository: ports 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.27 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: Thu, 13 Sep 2018 23:58:36 -0000 Author: danilo Date: Thu Sep 13 23:58:35 2018 New Revision: 479750 URL: https://svnweb.freebsd.org/changeset/ports/479750 Log: - Use GO_* variables to simplify the Makefile Modified: head/sysutils/kops/Makefile Modified: head/sysutils/kops/Makefile ============================================================================== --- head/sysutils/kops/Makefile Thu Sep 13 22:36:19 2018 (r479749) +++ head/sysutils/kops/Makefile Thu Sep 13 23:58:35 2018 (r479750) @@ -16,21 +16,16 @@ USES= go USE_GITHUB= yes GH_ACCOUNT= kubernetes -GH_SUBDIR= src/k8s.io/${PORTNAME} +GO_PKGNAME= k8s.io/${PORTNAME} +GO_TARGET= ${GO_PKGNAME}/cmd/${PORTNAME} +GO_BUILDFLAGS= -ldflags=all="-X k8s.io/kops.Version=${PORTVERSION}" + PLIST_FILES= bin/${PORTNAME} -do-build: +pre-build: cd ${WRKSRC} && \ ${LOCALBASE}/bin/go-bindata -o upup/models/bindata.go -pkg models \ - -prefix upup/models/ upup/models/... && \ - GOPATH=${WRKSRC} go build \ - -ldflags=all="-X k8s.io/kops.Version=${PORTVERSION}" \ - k8s.io/kops/cmd/kops - -do-install: - ${INSTALL_PROGRAM} \ - ${WRKSRC}/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + -prefix upup/models/ upup/models/... .include