diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-09 08:21:50 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-09 09:33:00 +0000 |
commit | 7ee41d732cde14129d451bea75519f31a8cd3b7e (patch) | |
tree | 346516df42ac3d1531c45312c6cf7d72b02d7bf7 /testing/kubernetes/APKBUILD | |
parent | ffebc4c48b3f06112d4e65cd5e80646a78a08f3b (diff) | |
download | aports-7ee41d732cde14129d451bea75519f31a8cd3b7e.tar.bz2 aports-7ee41d732cde14129d451bea75519f31a8cd3b7e.tar.xz |
testing/kubernetes: new aport
Diffstat (limited to 'testing/kubernetes/APKBUILD')
-rw-r--r-- | testing/kubernetes/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/kubernetes/APKBUILD b/testing/kubernetes/APKBUILD new file mode 100644 index 0000000000..bb02ec0624 --- /dev/null +++ b/testing/kubernetes/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=kubernetes +pkgver=1.2.3 +pkgrel=0 +pkgdesc="Container Cluster Manager for Docker" +url="http://kubernetes.io/" +arch="x86_64" +license="APACHE" +depends="bash" +depends_dev="" +makedepends="$depends_dev go rsync bash linux-headers" +install="" +subpackages="$pkgname-bash-completion:bashcomp" +source="$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + export GOPATH="$srcdir" + bash ./hack/build-go.sh +} + +package() { + cd "$builddir" + binaries="kube-apiserver kube-controller-manager kube-scheduler kube-proxy kubelet kubectl kubemark hyperkube" + for bin in $binaries ; do + install -Dm755 _output/local/bin/linux/amd64/$bin $pkgdir/usr/bin/$bin + done +} + +bashcomp() { + depends="bash" + pkgdesc="Bash completions for $pkgname" + arch="noarch" + cd "$builddir" + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions + mv "$builddir"/contrib/completions/bash/kubectl "$subpkgdir"/usr/share/bash-completion/completions/kubectl +} + + + +md5sums="1726b0eb541552fafb266cc4d8e487eb kubernetes-1.2.3.tar.gz" +sha256sums="542db5eb9f635aae53dc4055c778101e1192f34d04549505bd2ada8dec0d837c kubernetes-1.2.3.tar.gz" +sha512sums="4f5f2e5f2b0e74546ce640a2e5753f2aebb35fcff2685a42f4b67f75088c8d0afdbb88d69417071a6caa8d5d74022f1a7af4f10b2f8b4da3792d864c97264584 kubernetes-1.2.3.tar.gz" |