45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
# Template file for 'kubernetes'
|
|
pkgname=kubernetes
|
|
version=1.9.5
|
|
revision=1
|
|
build_style=go
|
|
nocross=yes
|
|
only_for_archs="x86_64 x86_64-musl"
|
|
hostmakedepends="rsync git go-bindata"
|
|
short_desc="Container Cluster Manager for Docker"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
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"
|
|
checksum=da01224e1bf198ad83791654ccbe54a902c4f73c54fbb58675912a990c530f56
|
|
system_accounts="kube"
|
|
make_dirs="/var/lib/kubelet 0755 kube kube"
|
|
conf_files="/etc/kubernetes/*"
|
|
|
|
do_build() {
|
|
make
|
|
}
|
|
|
|
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
|
|
}
|