diff --git a/sysutils/Makefile b/sysutils/Makefile index 3a5e66bda32a..100a9737dfa4 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -480,6 +480,7 @@ SUBDIR += healthd SUBDIR += heartbeat SUBDIR += heirloom + SUBDIR += helm SUBDIR += hextools SUBDIR += hfm SUBDIR += hfsexplorer diff --git a/sysutils/helm/Makefile b/sysutils/helm/Makefile new file mode 100644 index 000000000000..351964dbf804 --- /dev/null +++ b/sysutils/helm/Makefile @@ -0,0 +1,50 @@ +# Created by: Danilo Egea Gondolfo +# $FreeBSD$ + +PORTNAME= helm +PORTVERSION= 2.9.1 +CATEGORIES= sysutils +MASTER_SITES= LOCAL/danilo + +MAINTAINER= danilo@FreeBSD.org +COMMENT= Kubernetes Package Manager + +LICENSE= APACHE20 + +RUN_DEPENDS= kubectl:sysutils/kubectl + +USES= go tar:xz + +PLIST_FILES= bin/${PORTNAME} \ + bin/tiller \ + bin/rudder + +post-patch: + ${RM} -r ${WRKSRC}/vendor/k8s.io/kubernetes/vendor + ${RM} -r ${WRKSRC}/vendor/k8s.io/apiextensions-apiserver/vendor + ${MV} ${WRKSRC}/vendor/* ${WRKDIR}/src/ + ${LN} -s ${WRKSRC} ${WRKDIR}/src/k8s.io/helm + +do-build: +.for cmd in helm tiller rudder + cd ${WRKDIR}/src/k8s.io/helm/cmd/${cmd} ; \ + GOPATH=${WRKDIR} go build \ + -ldflags="-X k8s.io/helm/pkg/version.Version=v${PORTVERSION} \ + -X k8s.io/helm/pkg/version.BuildMetadata=" +.endfor + +do-install: +.for cmd in helm tiller rudder + ${INSTALL_PROGRAM} \ + ${WRKSRC}/cmd/${cmd}/${cmd} \ + ${STAGEDIR}${PREFIX}/bin/${cmd} +.endfor + +maintainer-distfile: + (cd /tmp; fetch https://github.com/helm/helm/archive/v${PORTVERSION}.tar.gz; \ + tar xzf v${PORTVERSION}.tar.gz; \ + cd helm-${PORTVERSION}; \ + glide install; \ + cd ..; tar cJf helm-${PORTVERSION}.tar.xz helm-${PORTVERSION}) + +.include diff --git a/sysutils/helm/distinfo b/sysutils/helm/distinfo new file mode 100644 index 000000000000..14c1a715d737 --- /dev/null +++ b/sysutils/helm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1534458415 +SHA256 (helm-2.9.1.tar.xz) = d0147464ab36bfdeab593c3f4f5472d5c0c21db66a0b4fa15a8a511d6f3d1ae9 +SIZE (helm-2.9.1.tar.xz) = 35800132 diff --git a/sysutils/helm/pkg-descr b/sysutils/helm/pkg-descr new file mode 100644 index 000000000000..07a2305e63ec --- /dev/null +++ b/sysutils/helm/pkg-descr @@ -0,0 +1,11 @@ +Helm is a tool for managing Kubernetes charts. +Charts are packages of pre-configured Kubernetes resources. + +Use Helm to: +- Find and use popular software packaged as Kubernetes charts +- Share your own applications as Kubernetes charts +- Create reproducible builds of your Kubernetes applications +- Intelligently manage your Kubernetes manifest files +- Manage releases of Helm packages + +WWW: https://helm.sh