summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-10-26 13:58:24 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-10-26 13:58:24 +0200
commita15313b3236569cdb9129b93776182a0978b8968 (patch)
treeef2e42378e978eb5a263ac5f41ef4caca339e474 /sys-cluster
parentsys-cluster/kube-apiserver: Version bump to 1.8.2, fix logrotate (diff)
downloadgentoo-a15313b3236569cdb9129b93776182a0978b8968.tar.gz
gentoo-a15313b3236569cdb9129b93776182a0978b8968.tar.bz2
gentoo-a15313b3236569cdb9129b93776182a0978b8968.zip
sys-cluster/kube-scheduler: Version bump to 1.8.2, fix logrotate
Package-Manager: Portage-2.3.12, Repoman-2.3.3
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/kube-scheduler/Manifest1
-rw-r--r--sys-cluster/kube-scheduler/files/kube-scheduler.logrotated2
-rw-r--r--sys-cluster/kube-scheduler/kube-scheduler-1.8.2.ebuild47
3 files changed, 49 insertions, 1 deletions
diff --git a/sys-cluster/kube-scheduler/Manifest b/sys-cluster/kube-scheduler/Manifest
index d2b4c0f10f25..aab0060ab6c0 100644
--- a/sys-cluster/kube-scheduler/Manifest
+++ b/sys-cluster/kube-scheduler/Manifest
@@ -1 +1,2 @@
DIST kubernetes-1.8.1.tar.gz 23400352 SHA256 a262050d532275a1b340ca1a453a986eb977a094d7a8f4a7600358677f114a18 SHA512 b09e72990cd148c604a92d866e4dd07da113a9dd1e68faebea8dd9bf256bfd908070d4e38eed7ce04c8f416d20203cf29c9c7f8906e1b50b678cb18e2ef8f5b3 WHIRLPOOL 87142b40c7d19b8be8563ec5ccaefc3970b7ce79a081bd9c1ff8c3d5227843c267fe5ab8d56b7a42874b7f29d8517f0d69beb2842ab2b58f8fb1efa5e6a61291
+DIST kubernetes-1.8.2.tar.gz 23123452 SHA256 3052c0ce35bd1f8a1500588580947c7f17f09f1ddea3a54466036fd62b46c736 SHA512 a813681f07fc674f493701833a30bc6b156572e4c8d28558b0e22dd36c16257c6c0922df773e4a5799a2eec05674cd1180f2b15ab69b0bdce52d1a861723214b WHIRLPOOL d8beb599ca2e194af5e5e1eb6d521c7846ad2ffad72da965119c51c92b16db41a17222886e57de5aad83359f20c8b264eb2e7411048218c95790d1f95f0b75fe
diff --git a/sys-cluster/kube-scheduler/files/kube-scheduler.logrotated b/sys-cluster/kube-scheduler/files/kube-scheduler.logrotated
index 8bd67e8db69e..6cce6c6f5be7 100644
--- a/sys-cluster/kube-scheduler/files/kube-scheduler.logrotated
+++ b/sys-cluster/kube-scheduler/files/kube-scheduler.logrotated
@@ -1,4 +1,4 @@
-/var/log/kube-scheduler/* {
+/var/log/kube-scheduler/*.log {
missingok
size 5M
rotate 3
diff --git a/sys-cluster/kube-scheduler/kube-scheduler-1.8.2.ebuild b/sys-cluster/kube-scheduler/kube-scheduler-1.8.2.ebuild
new file mode 100644
index 000000000000..aa15c73ecc3a
--- /dev/null
+++ b/sys-cluster/kube-scheduler/kube-scheduler-1.8.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="k8s.io/kubernetes"
+ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Kubernetes Controller Manager"
+HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
+SRC_URI="${ARCHIVE_URI}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="dev-go/go-bindata"
+
+RESTRICT="test"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+ default
+ sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" src/${EGO_PN}/hack/lib/golang.sh || die
+ sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die
+}
+
+src_compile() {
+ LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=plugin/cmd/${PN}
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin _output/bin/${PN}
+ popd || die
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotated ${PN}
+}