commit:     ae8c21d02633f88d77cb9ba617f418066be38afa
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 27 17:03:13 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Jul 27 17:47:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae8c21d0

sys-cluster/kube-apiserver: add 1.30.3

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 sys-cluster/kube-apiserver/Manifest                |  1 +
 .../kube-apiserver/kube-apiserver-1.30.3.ebuild    | 39 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/sys-cluster/kube-apiserver/Manifest 
b/sys-cluster/kube-apiserver/Manifest
index 76069a0e98e6..ab1eeaa170ec 100644
--- a/sys-cluster/kube-apiserver/Manifest
+++ b/sys-cluster/kube-apiserver/Manifest
@@ -2,3 +2,4 @@ DIST kubernetes-1.27.12.tar.gz 39200862 BLAKE2B 
ce4112403399121bfd71ec61fe4c434a
 DIST kubernetes-1.28.11.tar.gz 40007157 BLAKE2B 
93afb8552627861c0d49cfc343cceaeb961939b8748cd125cc65b01f27b35c877007e3a1bfe416f2abcc5aa2bf5ee82673dad4a7276c1f4aaaf0a6b9abd9df19
 SHA512 
31c721b9fa5f73fd216587073e3308249bdb9a28b8534415e99d2630529f1a85fb7a6b18eb91f1b6bbd3f21dfdc6aa1ad0fe6ce257263e34b7fe7bd5cbbd584b
 DIST kubernetes-1.29.6.tar.gz 41177485 BLAKE2B 
c02b17fe4cb2314a005180ba6813d056f49e980af9a96f392d9e46b7b436e062fbabf2f64b996e23c7a84db9f3970a1a24dc63d5ee0ac3029e375cfdec47f473
 SHA512 
d7b1401a6844c8e43a822b4f062ea4cc58f8fefd74c31a2936e9121220f30e9bcb9358683836d68f66cb28451cf3462a1c2c81f85f9ea53b4e919a370d3245e2
 DIST kubernetes-1.30.2.tar.gz 39581297 BLAKE2B 
7d1f303d21b870ad29d2cac96626edc3a19addedd544624e5cd9f42beb368e0959e499e5fd88bc7ee491a01cd29573115d1e77dfb73098ea88204a2614f7b635
 SHA512 
73f87da96fae889805e3e8fe644228159746c139e907755ec8654dd2fe46bf4561c6c5bb015bd95a6a1f5ba9be2e193aea9bb43b37ce1d67fb4ba42a50b9dac8
+DIST kubernetes-1.30.3.tar.gz 39587795 BLAKE2B 
ba6d819866247dd0d26cb014857d238075dc6beb9cfacfc4ecaccab9d88c4295189309d62e4856c0f4f6c57762b14bfa16fb6bd96548cb88f69dd350e00dbf59
 SHA512 
303c823f74ccc5c1685ec16ba3de9dbbe9614ddf19e279e43ee392a4ef04ee68400a3e0c2a839d6a3f43712fab426084037ed871e3e4caafe8b37999fd83b73a

diff --git a/sys-cluster/kube-apiserver/kube-apiserver-1.30.3.ebuild 
b/sys-cluster/kube-apiserver/kube-apiserver-1.30.3.ebuild
new file mode 100644
index 000000000000..1e1f4ab1cbbe
--- /dev/null
+++ b/sys-cluster/kube-apiserver/kube-apiserver-1.30.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 go-module systemd
+
+DESCRIPTION="Kubernetes API server"
+HOMEPAGE="https://kubernetes.io";
+SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> 
kubernetes-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="hardened"
+
+COMMON_DEPEND="
+       acct-group/kube-apiserver
+       acct-user/kube-apiserver"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+BDEPEND=">=dev-lang/go-1.21.6"
+
+RESTRICT+=" test"
+S="${WORKDIR}/kubernetes-${PV}"
+
+src_compile() {
+       CGO_LDFLAGS="$(usex hardened '-fNO-PIC ' '')" FORCE_HOST_GO="yes" \
+               emake -j1 GOFLAGS=-v GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN}
+}
+
+src_install() {
+       dobin _output/bin/${PN}
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}"/${PN}.logrotated ${PN}
+       keepdir /var/log/${PN}
+       fowners ${PN}:${PN} /var/log/${PN}
+}

Reply via email to