sys-cluster/kubernetes: 1.16.10 bump
authorWilliam Hubbs <williamh@gentoo.org>
Thu, 21 May 2020 03:03:13 +0000 (22:03 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 21 May 2020 03:47:19 +0000 (22:47 -0500)
Signed-off-by: William Hubbs <williamh@gentoo.org>
sys-cluster/kubernetes/Manifest
sys-cluster/kubernetes/kubernetes-1.16.10.ebuild [new file with mode: 0644]

index ddc36e9a213d35a05d14a373a4667dfbb90ca041..279aade0ecc1819e9082aace909c9ed970738929 100644 (file)
@@ -1,3 +1,4 @@
+DIST kubernetes-1.16.10.tar.gz 31761409 BLAKE2B caef0b60045d134e5243558da56301dfe2ef844e7e80ca82d86bd79e5ce00bc9d9aa61550f3356dcc6ee31bf925a22a87364fcf971e353129adb0c0e376b26c0 SHA512 b81b34f12c6d835ef86df598bb13350b7a94b02cb493df9c8e8b605c541d9a9db16331b264f66ecdaaf5451e3a2d13cc104d3d6e5facbf31c4b6bd2cc2a1441f
 DIST kubernetes-1.16.8.tar.gz 31731459 BLAKE2B 1d53c16586b5a7a41fc42d0fb3444b694531d3f04fb9e168a70d4b98f966f322bc82d39234612e38c71da052002c5bcc452c747d9f948dacbdd91ea40a9f5417 SHA512 04c8e9a9227ac9a98074cd52cbe90758134fedb10164fa69accbc19716a2f18dc133a4f880d0e35a3728c377faea431363f00ae9fe2ff5ca9e509444da9106c5
 DIST kubernetes-1.16.9.tar.gz 31752857 BLAKE2B 34c0ff54e60276bf41ce971a8a50d57256f696ac95b551a90a6d2ccf1540279010953119def539c0824217fbbfc287d24b6f080e1fefce8864c1eade72d0777f SHA512 08fffe855a433ad0cc7586afd12815adb3bcafcac86712181625198fedbfe170bc36ae31aca9783d30dd790c415d447f073234f621416a76a7e4e0de2eeb008d
 DIST kubernetes-1.17.4.tar.gz 31777775 BLAKE2B cd04e429d3f524f5dce7948db9b22230df8abdeb7570001ab985ffdb5b85709a8d1698490b9df13455d8f3968741db9571ee1ab3bc2a6fdd06a8c0fe274476e2 SHA512 fd1944d26c840bc1d2f585fccbabf48091fe8820ea089b3ea5c18652fd1edb3c8157a70ea19111b8b62aef16e0284a1607b583c3c1af79dd0dd266b99e20c549
diff --git a/sys-cluster/kubernetes/kubernetes-1.16.10.ebuild b/sys-cluster/kubernetes/kubernetes-1.16.10.ebuild
new file mode 100644 (file)
index 0000000..c333bba
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit bash-completion-r1 go-module systemd
+
+DESCRIPTION="production-grade container orchestration"
+HOMEPAGE="https://kubernetes.io"
+SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+AGENT="kubelet"
+CLI="kubeadm kubectl"
+SERVICES="kube-apiserver kube-controller-manager kube-proxy kube-scheduler"
+IUSE="hardened"
+for x in ${AGENT} ${CLI} ${SERVICES}; do
+       IUSE+=" +${x}"
+done
+
+BDEPEND=">=dev-lang/go-1.13"
+COMMON_DEPEND="
+       kube-apiserver? (
+               acct-group/kube-apiserver
+               acct-user/kube-apiserver
+       )
+       kube-controller-manager? (
+               acct-group/kube-controller-manager
+               acct-user/kube-controller-manager
+       )
+       kube-scheduler? (
+               acct-group/kube-scheduler
+               acct-user/kube-scheduler
+       )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+       kube-proxy? ( net-firewall/conntrack-tools )
+       !sys-cluster/kubeadm
+       !sys-cluster/kubectl
+       !sys-cluster/kubelet
+       !sys-cluster/kube-apiserver
+       !sys-cluster/kube-controller-manager
+       !sys-cluster/kube-proxy
+       !sys-cluster/kube-scheduler"
+
+RESTRICT+=" test"
+
+src_compile() {
+       local x
+       for x in ${AGENT} ${CLI} ${SERVICES}; do
+               use $x || continue
+               CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
+                       emake -j1 GOFLAGS=-v GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${x}
+       done
+}
+
+src_install() {
+       local x
+       for x in ${AGENT} ${CLI} ${SERVICES}; do
+               use $x || continue
+               dobin _output/bin/${x}
+               if has ${x} ${CLI}; then
+               _output/bin/${x} completion bash > ${x}.bash || die
+               _output/bin/${x} completion zsh > ${x}.zsh || die
+                       newbashcomp ${x}.bash ${x}
+                       insinto /usr/share/zsh/site-functions
+                       newins ${x}.zsh _${x}
+                       continue
+               fi
+               newinitd "${FILESDIR}"/${x}.initd ${x}
+               newconfd "${FILESDIR}"/${x}.confd ${x}
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}"/${x}.logrotated ${x}
+               keepdir /var/log/${x}
+               if [[ "$x" =~ kubelet ]]; then
+                       systemd_dounit "${FILESDIR}"/${x}.service
+                       insinto /etc/kubernetes
+                       newins "${FILESDIR}"/${x}.env ${x}.env
+                       keepdir /etc/kubernetes/manifests
+               fi
+               if [[ $x =~ kubelet|kube-proxy ]]; then
+                       keepdir /var/lib/${x}
+               fi
+               if [[ $x =~ .*apiserver|.*controller-manager|.*scheduler ]]; then
+                       fowners ${x}:${x} /var/log/${x}
+               fi
+       done
+}