Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 21:38:36 +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: r476250 - in head/sysutils: . kubectl
Message-ID:  <201808022138.w72LcahY054958@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Thu Aug  2 21:38:36 2018
New Revision: 476250
URL: https://svnweb.freebsd.org/changeset/ports/476250

Log:
  - New port sysutils/kubectl
  
  Use the Kubernetes command-line tool, kubectl, to deploy and manage
  applications on Kubernetes. Using kubectl, you can inspect cluster
  resources; create, delete, and update components; and look at your
  new cluster and bring up example apps.

Added:
  head/sysutils/kubectl/
  head/sysutils/kubectl/Makefile   (contents, props changed)
  head/sysutils/kubectl/distinfo   (contents, props changed)
  head/sysutils/kubectl/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Thu Aug  2 21:17:16 2018	(r476249)
+++ head/sysutils/Makefile	Thu Aug  2 21:38:36 2018	(r476250)
@@ -579,6 +579,7 @@
     SUBDIR += ksysguardd-kde4
     SUBDIR += ksystemlog
     SUBDIR += ksystemlog-kde4
+    SUBDIR += kubectl
     SUBDIR += kuser-kde4
     SUBDIR += lava
     SUBDIR += lbl-cf

Added: head/sysutils/kubectl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/kubectl/Makefile	Thu Aug  2 21:38:36 2018	(r476250)
@@ -0,0 +1,40 @@
+# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	kubectl
+PORTVERSION=	1.11.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	danilo@FreeBSD.org
+COMMENT=	Kubernetes command-line tool
+
+LICENSE=	APACHE20
+
+USES=		go
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	kubernetes
+GH_PROJECT=	kubernetes
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-patch:
+	${LN} -s ${WRKSRC}/vendor ${WRKSRC}/src
+	${MKDIR} ${WRKSRC}/src/k8s.io/kubernetes
+	${LN} -s ${WRKSRC}/pkg ${WRKSRC}/src/k8s.io/kubernetes/pkg
+
+do-build:
+	cd ${WRKSRC}/cmd/${PORTNAME} && \
+		GOPATH=${WRKSRC} go build \
+		-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}"
+
+do-install:
+	${INSTALL_PROGRAM} \
+		${WRKSRC}/cmd/${PORTNAME}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/sysutils/kubectl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/kubectl/distinfo	Thu Aug  2 21:38:36 2018	(r476250)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1533233064
+SHA256 (kubernetes-kubernetes-v1.11.1_GH0.tar.gz) = 073b77321812f26df6513c0ad0aef3a8b0c17f6281a186d515f5855ae009ea17
+SIZE (kubernetes-kubernetes-v1.11.1_GH0.tar.gz) = 24774820

Added: head/sysutils/kubectl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/kubectl/pkg-descr	Thu Aug  2 21:38:36 2018	(r476250)
@@ -0,0 +1,6 @@
+Use the Kubernetes command-line tool, kubectl, to deploy and manage
+applications on Kubernetes. Using kubectl, you can inspect cluster
+resources; create, delete, and update components; and look at your
+new cluster and bring up example apps.
+
+WWW: https://github.com/kubernetes/kubectl



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