Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2018 22:29:10 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479571 - head/sysutils/kubectl
Message-ID:  <201809112229.w8BMTA0N014512@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Tue Sep 11 22:29:10 2018
New Revision: 479571
URL: https://svnweb.freebsd.org/changeset/ports/479571

Log:
  - Update to 1.11.3
  - Use GO_* variables to simplify the Makefile

Modified:
  head/sysutils/kubectl/Makefile
  head/sysutils/kubectl/distinfo

Modified: head/sysutils/kubectl/Makefile
==============================================================================
--- head/sysutils/kubectl/Makefile	Tue Sep 11 22:27:26 2018	(r479570)
+++ head/sysutils/kubectl/Makefile	Tue Sep 11 22:29:10 2018	(r479571)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	kubectl
-PORTVERSION=	1.11.2
+PORTVERSION=	1.11.3
 DISTVERSIONPREFIX=	v
 CATEGORIES=	sysutils
 
@@ -16,22 +16,14 @@ USES=		go
 USE_GITHUB=	yes
 GH_ACCOUNT=	kubernetes
 GH_PROJECT=	kubernetes
-GH_SUBDIR=	src/k8s.io/kubernetes
 
-PLIST_FILES=	bin/${PORTNAME}
-
-do-build:
-	cd ${WRKSRC}/${GH_SUBDIR} && \
-		GOPATH=${WRKSRC} go build \
-		-ldflags="-X k8s.io/kubernetes/pkg/version.gitMajor=${PORTVERSION:R:R} \
+GO_PKGNAME=	k8s.io/kubernetes
+GO_TARGET=	${GO_PKGNAME}/cmd/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags="-X k8s.io/kubernetes/pkg/version.gitMajor=${PORTVERSION:R:R} \
 		-X k8s.io/kubernetes/pkg/version.gitMinor=${PORTVERSION:R:E} \
 		-X k8s.io/kubernetes/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ') \
-		-X k8s.io/kubernetes/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION}" \
-		./cmd/${PORTNAME}
+		-X k8s.io/kubernetes/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION}"
 
-do-install:
-	${INSTALL_PROGRAM} \
-		${WRKSRC}/${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME}
 
 .include <bsd.port.mk>

Modified: head/sysutils/kubectl/distinfo
==============================================================================
--- head/sysutils/kubectl/distinfo	Tue Sep 11 22:27:26 2018	(r479570)
+++ head/sysutils/kubectl/distinfo	Tue Sep 11 22:29:10 2018	(r479571)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1533735778
-SHA256 (kubernetes-kubernetes-v1.11.2_GH0.tar.gz) = 43f42c64426247d909010bf77f18c72ab1f36104a67e9c878cf897ee9f0ab6a6
-SIZE (kubernetes-kubernetes-v1.11.2_GH0.tar.gz) = 24780381
+TIMESTAMP = 1536692220
+SHA256 (kubernetes-kubernetes-v1.11.3_GH0.tar.gz) = f97edcfb593d18843e124590ce066e2fac3cd90a94f39d34faba640cc3c4a1bb
+SIZE (kubernetes-kubernetes-v1.11.3_GH0.tar.gz) = 24788666



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