void-packages/srcpkgs/kubernetes/template

45 lines
1 KiB
Bash
Raw Normal View History

2016-02-29 16:52:57 +00:00
# Template file for 'kubernetes'
pkgname=kubernetes
2016-09-14 09:04:21 +00:00
version=1.3.7
2016-04-23 09:16:43 +00:00
revision=1
2016-02-29 16:52:57 +00:00
build_style=go
nocross=yes
only_for_archs="x86_64 x86_64-musl"
hostmakedepends="rsync git git-perl"
short_desc="Container Cluster Manager for Docker"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
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"
2016-09-14 09:04:21 +00:00
checksum=40a655b5ae1734acfda157088a20853aaf87945508edf73497bec5fa26352a9b
2016-02-29 16:52:57 +00:00
system_accounts="kube"
make_dirs="/var/lib/kubelet 0755 kube kube"
conf_files="/etc/kubernetes/*"
do_build() {
./hack/build-go.sh
}
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
}