void-packages/srcpkgs/kubernetes/template

45 lines
1.0 KiB
Bash
Raw Normal View History

2016-02-29 17:52:57 +01:00
# Template file for 'kubernetes'
pkgname=kubernetes
2017-04-20 18:08:30 +02:00
version=1.6.2
revision=1
2016-02-29 17:52:57 +01:00
build_style=go
nocross=yes
only_for_archs="x86_64 x86_64-musl"
2016-10-01 10:30:54 +02:00
hostmakedepends="rsync git git-perl go-bindata"
2016-02-29 17:52:57 +01:00
short_desc="Container Cluster Manager for Docker"
2017-04-06 18:52:20 +02:00
maintainer="Andrea Brancaleoni <abc@pompel.me>"
2016-02-29 17:52:57 +01:00
license="Apache-2.0"
go_import_path="github.com/kubernetes/kubernetes"
homepage="http://kubernetes.io"
distfiles="https://$go_import_path/archive/v$version.tar.gz"
2017-04-20 18:08:30 +02:00
checksum=2af4bcc196a90b78baf65d5bcdf6cbb613d71d3952a98813e15bb6a41f3b922c
2016-02-29 17:52:57 +01:00
system_accounts="kube"
make_dirs="/var/lib/kubelet 0755 kube kube"
conf_files="/etc/kubernetes/*"
do_build() {
2016-10-01 10:30:54 +02:00
make
2016-02-29 17:52:57 +01:00
}
do_install() {
find "_output/local/bin/linux/" -type f -executable | grep "kube" | egrep -v "gen|test" | while read line
do
vbin "${line}"
done
for MAN in docs/man/man1/*.1; do
vman ${MAN}
done
vmkdir etc/kubernetes
vcopy ${FILESDIR}/environ/* etc/kubernetes
vsv kube-apiserver
vsv kube-controller-manager
vsv kubelet
vsv kube-scheduler
vsv kube-proxy
vlicense LICENSE
}