Last active
November 30, 2016 22:16
-
-
Save bfritz/c3f4e52f4d86d5250161bad31e829fca to your computer and use it in GitHub Desktop.
kubernetes-1.5.0_beta.2 for Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by mksrcinfo v8 | |
# Sun Nov 20 09:43:00 UTC 2016 | |
pkgbase = kubernetes | |
pkgdesc = Container Cluster Manager for Docker | |
pkgver = 1.5.0_beta.2 | |
pkgrel = 1 | |
url = http://kubernetes.io/ | |
install = kubernetes.install | |
arch = x86_64 | |
arch = i686 | |
license = APACHE | |
makedepends = go | |
makedepends = rsync | |
makedepends = go-bindata-git | |
depends = glibc | |
depends = bash | |
optdepends = etcd: etcd cluster required to run Kubernetes | |
backup = etc/kubernetes/apiserver | |
backup = etc/kubernetes/config | |
backup = etc/kubernetes/controller-manager | |
backup = etc/kubernetes/kubelet | |
backup = etc/kubernetes/proxy | |
backup = etc/kubernetes/scheduler | |
source = https://github.com/kubernetes/kubernetes/archive/v1.5.0-beta.2.tar.gz | |
source = https://github.com/kubernetes/contrib/archive/0.7.0.tar.gz | |
source = kubernetes.install | |
sha256sums = 3f7a1e2919264b421cfbb7b7cac3f09ad6b487f61253874561d61305679d76f4 | |
sha256sums = 1d4e651ea59ea0d2b440e290fda5e166a21847891abca2907b8a1683c2252b8d | |
sha256sums = f40b4b14a71f8138de69021e967d993e8b14db2cebe66eee20c7e66839ad1fde | |
pkgname = kubernetes | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
getent group kube >/dev/null || groupadd -r kube | |
getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin -c "Kubernetes user" kube | |
chown -R kube:kube /var/lib/kubelet | |
} | |
post_upgrade() { | |
post_install | |
} | |
post_remove() { | |
getent passwd kube >/dev/null && userdel kube | |
getent group kube >/dev/null && groupdel kube | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Maintainer: Iwan Timmer <[email protected]> | |
pkgname=kubernetes | |
pkgver=1.5.0_beta.2 | |
_pkgver_upstream=(${pkgver//_/-}) | |
_contribver=0.7.0 | |
pkgrel=1 | |
pkgdesc="Container Cluster Manager for Docker" | |
depends=('glibc' 'bash') | |
makedepends=('go' 'rsync' 'go-bindata-git') | |
optdepends=('etcd: etcd cluster required to run Kubernetes') | |
arch=('x86_64' 'i686') | |
source=("https://github.com/kubernetes/kubernetes/archive/v$_pkgver_upstream.tar.gz" | |
"https://github.com/kubernetes/contrib/archive/$_contribver.tar.gz" | |
"kubernetes.install") | |
url="http://kubernetes.io/" | |
license=("APACHE") | |
backup=('etc/kubernetes/apiserver' | |
'etc/kubernetes/config' | |
'etc/kubernetes/controller-manager' | |
'etc/kubernetes/kubelet' | |
'etc/kubernetes/proxy' | |
'etc/kubernetes/scheduler') | |
install=kubernetes.install | |
sha256sums=('3f7a1e2919264b421cfbb7b7cac3f09ad6b487f61253874561d61305679d76f4' | |
'1d4e651ea59ea0d2b440e290fda5e166a21847891abca2907b8a1683c2252b8d' | |
'f40b4b14a71f8138de69021e967d993e8b14db2cebe66eee20c7e66839ad1fde') | |
build() { | |
cd $srcdir/kubernetes-$_pkgver_upstream | |
make | |
} | |
package() { | |
cd $srcdir/kubernetes-$_pkgver_upstream | |
[ "$CARCH" = 'i686' ] && _kubearch=386 | |
[ "$CARCH" = 'x86_64' ] && _kubearch=amd64 | |
binaries=(kube-dns kube-proxy kube-apiserver kube-controller-manager kubelet kubemark hyperkube kube-scheduler kubectl kubeadm) | |
for bin in "${binaries[@]}"; do | |
install -Dm755 _output/local/bin/linux/$_kubearch/$bin $pkgdir/usr/bin/$bin | |
done | |
# install manpages | |
install -d $pkgdir/usr/share/man/man1/ | |
install -pm 644 docs/man/man1/* $pkgdir/usr/share/man/man1 | |
# install the place the kubelet defaults to put volumes | |
install -d $pkgdir/var/lib/kubelet | |
cd $srcdir/contrib-$_contribver | |
# install config files | |
install -dm 755 $pkgdir/etc/kubernetes/ | |
install -m 644 -t $pkgdir/etc/kubernetes/ init/systemd/environ/* | |
# install service files | |
install -dm 755 $pkgdir/usr/lib/systemd/system | |
install -m 644 -t $pkgdir/usr/lib/systemd/system init/systemd/*.service | |
install -dm 755 $pkgdir/usr/lib/tmpfiles.d | |
install -m 644 -t $pkgdir/usr/lib/tmpfiles.d init/systemd/tmpfiles.d/*.conf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment