Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-scheduler/
Date: Mon, 19 Aug 2019 14:28:26
Message-Id: 1566224830.531ef5fdad934143afa3fcabdd9591e9fa5ec1f1.mrueg@gentoo
1 commit: 531ef5fdad934143afa3fcabdd9591e9fa5ec1f1
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 19 14:27:10 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 19 14:27:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531ef5fd
7
8 sys-cluster/kube-scheduler: Version bump to 1.15.3
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.16
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 sys-cluster/kube-scheduler/Manifest | 1 +
14 .../kube-scheduler/kube-scheduler-1.15.3.ebuild | 48 ++++++++++++++++++++++
15 2 files changed, 49 insertions(+)
16
17 diff --git a/sys-cluster/kube-scheduler/Manifest b/sys-cluster/kube-scheduler/Manifest
18 index 0fe4096409d..2721c8837d1 100644
19 --- a/sys-cluster/kube-scheduler/Manifest
20 +++ b/sys-cluster/kube-scheduler/Manifest
21 @@ -6,3 +6,4 @@ DIST kubernetes-1.14.4.tar.gz 28066996 BLAKE2B 1738564f1a6406d934faf10f1f7dd380f
22 DIST kubernetes-1.14.5.tar.gz 28071522 BLAKE2B 1d949f53ebae03c5ce02d32253e85e96c7c0fef85d16dac8442ca379b980ba553d1602a5ae5e984eb6ae5abe5998155f62521292a3683612a251e7b81c940b05 SHA512 3c15c3663fd81dbbfbfa15219cbf94306af1cb846f9e3a6739db8c188d90b8ae25c601e0c746e93c13cbc4734fe612f9b5ca42fad97055903ccc473e5f3e15c3
23 DIST kubernetes-1.15.0.tar.gz 26591862 BLAKE2B 114ae651bb1827913ff5294878956b46dba288928b9fec45796ce5f3c01ab611a7333bd955fb96e7fe970a9f4afc901570ff911dd946c1a72ff8e2c6b3bc927a SHA512 764268020e0fc27e8325058fefbc53200996e5a8f963c9156cf079425cdfed7545522ff8c779bfa074db8739e3ab97e829a049deaf0a0568f1434d7c1ed8446b
24 DIST kubernetes-1.15.2.tar.gz 26628888 BLAKE2B 49c72f9355e1bb00f743571f4253261b46d58fe6252b1f9284d0982a201502ef13ccc77da588087e407a7d6ed250d1ab224b9fcf99d2542225d6736a8dffb4d9 SHA512 0de798631a3bf82766b797f05084f40df4422808c8ec8651480c5c27ecd4adb51148d15c7260b06482eba11c9bbb68966abc03a2d472b98d12cb0fe2ccf38473
25 +DIST kubernetes-1.15.3.tar.gz 26635140 BLAKE2B 3189d1e79c47bd5e656972c9e2944a41b827f601e43d397fd2b1ea3f20b65acd80105556607a7699cacf8e0c819d2e09dd35e0283003c22972f4aeb83822ae98 SHA512 b4c3f65f7ae6c9b3e1bb8efd5182a0c922e372c0b8db77b71cd52025c7a00f592ad450c042d78b1d54b716c328c0b291296b36c102579a416b9cd8dda1be8ad2
26
27 diff --git a/sys-cluster/kube-scheduler/kube-scheduler-1.15.3.ebuild b/sys-cluster/kube-scheduler/kube-scheduler-1.15.3.ebuild
28 new file mode 100644
29 index 00000000000..2830ac40ff3
30 --- /dev/null
31 +++ b/sys-cluster/kube-scheduler/kube-scheduler-1.15.3.ebuild
32 @@ -0,0 +1,48 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +inherit user golang-build golang-vcs-snapshot
38 +
39 +EGO_PN="k8s.io/kubernetes"
40 +ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
41 +KEYWORDS="~amd64"
42 +
43 +DESCRIPTION="Kubernetes Scheduler"
44 +HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
45 +SRC_URI="${ARCHIVE_URI}"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +
50 +DEPEND="dev-go/go-bindata
51 + >=dev-lang/go-1.11"
52 +
53 +RESTRICT="test"
54 +
55 +pkg_setup() {
56 + enewgroup ${PN}
57 + enewuser ${PN} -1 -1 -1 ${PN}
58 +}
59 +
60 +src_prepare() {
61 + default
62 + sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" -e "s/-s -w/-w/" src/${EGO_PN}/hack/lib/golang.sh || die
63 + sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die
64 +}
65 +
66 +src_compile() {
67 + LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=cmd/${PN} GOFLAGS=-v
68 +}
69 +
70 +src_install() {
71 + pushd src/${EGO_PN} || die
72 + dobin _output/bin/${PN}
73 + popd || die
74 + keepdir /var/log/${PN}
75 + fowners ${PN}:${PN} /var/log/${PN}
76 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
77 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
78 + insinto /etc/logrotate.d
79 + newins "${FILESDIR}"/${PN}.logrotated ${PN}
80 +}