public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-proxy/, sys-cluster/kube-proxy/files/
@ 2017-08-07 12:13 Manuel Rüger
  0 siblings, 0 replies; 4+ messages in thread
From: Manuel Rüger @ 2017-08-07 12:13 UTC (permalink / raw
  To: gentoo-commits

commit:     07fd5cfe8cb64b319806b6b0787324a52fceb785
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 12:13:40 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 12:13:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fd5cfe

sys-cluster/kube-proxy: Initial version

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 sys-cluster/kube-proxy/Manifest                    |  1 +
 sys-cluster/kube-proxy/files/kube-proxy.confd      |  4 +++
 sys-cluster/kube-proxy/files/kube-proxy.initd      | 24 +++++++++++++
 sys-cluster/kube-proxy/files/kube-proxy.logrotated |  7 ++++
 sys-cluster/kube-proxy/kube-proxy-1.7.3.ebuild     | 41 ++++++++++++++++++++++
 sys-cluster/kube-proxy/metadata.xml                | 11 ++++++
 6 files changed, 88 insertions(+)

diff --git a/sys-cluster/kube-proxy/Manifest b/sys-cluster/kube-proxy/Manifest
new file mode 100644
index 00000000000..e169459929b
--- /dev/null
+++ b/sys-cluster/kube-proxy/Manifest
@@ -0,0 +1 @@
+DIST kubernetes-1.7.3.tar.gz 22019646 SHA256 7f84e08c2944865247c3fee26b010452e4a315a1cdd7983ff59d151f17167b13 SHA512 9c239cff3c3a18cc384079599abcffd7475052cff0d237e7b5b298229e08dea083c47284470ed5158484c9611c029aecca496391730793251389d05ce86d4146 WHIRLPOOL 35e6aaf16d9d411865e0ca594373fd08178d78899e06b1bbea7ef494b8e94264068700eb498684d54e665385b515055f4dca6df4345dfecff073afbd98bfe645

diff --git a/sys-cluster/kube-proxy/files/kube-proxy.confd b/sys-cluster/kube-proxy/files/kube-proxy.confd
new file mode 100644
index 00000000000..00f33f358bb
--- /dev/null
+++ b/sys-cluster/kube-proxy/files/kube-proxy.confd
@@ -0,0 +1,4 @@
+###
+# Kubernetes kube-proxy config
+#
+command_args=""

diff --git a/sys-cluster/kube-proxy/files/kube-proxy.initd b/sys-cluster/kube-proxy/files/kube-proxy.initd
new file mode 100644
index 00000000000..0c410f4a4a3
--- /dev/null
+++ b/sys-cluster/kube-proxy/files/kube-proxy.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Kubernetes Proxy service"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-root}
+group=${group:-root}
+
+command="/usr/bin/kube-proxy"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+	--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+	--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+
+depend() {
+	need net
+	after net
+}
+
+start_pre() {
+	checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
+}

diff --git a/sys-cluster/kube-proxy/files/kube-proxy.logrotated b/sys-cluster/kube-proxy/files/kube-proxy.logrotated
new file mode 100644
index 00000000000..892c730e83a
--- /dev/null
+++ b/sys-cluster/kube-proxy/files/kube-proxy.logrotated
@@ -0,0 +1,7 @@
+/var/log/kube-proxy/* {
+	missingok
+	size 5M
+	rotate 3
+	compress
+	copytruncate
+}

diff --git a/sys-cluster/kube-proxy/kube-proxy-1.7.3.ebuild b/sys-cluster/kube-proxy/kube-proxy-1.7.3.ebuild
new file mode 100644
index 00000000000..b3636fb8fb8
--- /dev/null
+++ b/sys-cluster/kube-proxy/kube-proxy-1.7.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit 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 Proxy service"
+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"
+
+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=cmd/${PN}
+}
+
+src_install() {
+	pushd src/${EGO_PN} || die
+	dobin _output/bin/${PN}
+	popd || die
+	keepdir /var/log/${PN}
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}"/${PN}.logrotated ${PN}
+}

diff --git a/sys-cluster/kube-proxy/metadata.xml b/sys-cluster/kube-proxy/metadata.xml
new file mode 100644
index 00000000000..f3dec694409
--- /dev/null
+++ b/sys-cluster/kube-proxy/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>mrueg@gentoo.org</email>
+		<name>Manuel Rüger</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">kubernetes/kubernetes</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-proxy/, sys-cluster/kube-proxy/files/
@ 2017-10-26 12:00 Manuel Rüger
  0 siblings, 0 replies; 4+ messages in thread
From: Manuel Rüger @ 2017-10-26 12:00 UTC (permalink / raw
  To: gentoo-commits

commit:     af5ea877fdc1a6e7c60906a7ec8aeac70d5823cd
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 26 12:00:30 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Oct 26 12:00:30 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af5ea877

sys-cluster/kube-proxy: Version bump to 1.8.2, fix logrotate

Package-Manager: Portage-2.3.12, Repoman-2.3.3

 sys-cluster/kube-proxy/Manifest                    |  1 +
 sys-cluster/kube-proxy/files/kube-proxy.logrotated |  2 +-
 sys-cluster/kube-proxy/kube-proxy-1.8.2.ebuild     | 41 ++++++++++++++++++++++
 3 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/kube-proxy/Manifest b/sys-cluster/kube-proxy/Manifest
index d2b4c0f10f2..aab0060ab6c 100644
--- a/sys-cluster/kube-proxy/Manifest
+++ b/sys-cluster/kube-proxy/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-proxy/files/kube-proxy.logrotated b/sys-cluster/kube-proxy/files/kube-proxy.logrotated
index 892c730e83a..b8d1032c1f7 100644
--- a/sys-cluster/kube-proxy/files/kube-proxy.logrotated
+++ b/sys-cluster/kube-proxy/files/kube-proxy.logrotated
@@ -1,4 +1,4 @@
-/var/log/kube-proxy/* {
+/var/log/kube-proxy/*.log {
 	missingok
 	size 5M
 	rotate 3

diff --git a/sys-cluster/kube-proxy/kube-proxy-1.8.2.ebuild b/sys-cluster/kube-proxy/kube-proxy-1.8.2.ebuild
new file mode 100644
index 00000000000..4824d28abca
--- /dev/null
+++ b/sys-cluster/kube-proxy/kube-proxy-1.8.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit 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 Proxy service"
+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"
+
+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=cmd/${PN}
+}
+
+src_install() {
+	pushd src/${EGO_PN} || die
+	dobin _output/bin/${PN}
+	popd || die
+	keepdir /var/log/${PN} /var/lib/${PN}
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}"/${PN}.logrotated ${PN}
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-proxy/, sys-cluster/kube-proxy/files/
@ 2023-08-23 15:02 William Hubbs
  0 siblings, 0 replies; 4+ messages in thread
From: William Hubbs @ 2023-08-23 15:02 UTC (permalink / raw
  To: gentoo-commits

commit:     ab6ae926fb59adf8eb2e0c166b1902cf8168ce9b
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 23 15:02:08 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Aug 23 15:02:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab6ae926

sys-cluster/kube-proxy: make gomaxprocs install optional

Bug: https://bugs.gentoo.org/912781
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 ...y-1.28.0-make-gomaxprocs-install-optional.patch | 78 ++++++++++++++++++++++
 sys-cluster/kube-proxy/kube-proxy-1.28.0.ebuild    |  4 ++
 2 files changed, 82 insertions(+)

diff --git a/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch b/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch
new file mode 100644
index 000000000000..1a8935b31c9c
--- /dev/null
+++ b/sys-cluster/kube-proxy/files/kube-proxy-1.28.0-make-gomaxprocs-install-optional.patch
@@ -0,0 +1,78 @@
+From cce3f6ffa796ea416021b0d62567a3f52b979567 Mon Sep 17 00:00:00 2001
+From: Jordan Liggitt <liggitt@google.com>
+Date: Wed, 16 Aug 2023 09:33:02 -0400
+Subject: [PATCH 2/2] Make gomaxprocs install optional, limit to tests
+
+---
+ hack/lib/golang.sh               | 25 +++++++++++++++----------
+ hack/make-rules/test-e2e-node.sh |  1 +
+ hack/make-rules/test.sh          |  1 +
+ 3 files changed, 17 insertions(+), 10 deletions(-)
+
+diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
+index 66772f08a81..983ff368e25 100755
+--- a/hack/lib/golang.sh
++++ b/hack/lib/golang.sh
+@@ -556,20 +556,25 @@ kube::golang::setup_env() {
+ 
+   # This seems to matter to some tools
+   export GO15VENDOREXPERIMENT=1
++}
+ 
++kube::golang::setup_gomaxprocs() {
+   # GOMAXPROCS by default does not reflect the number of cpu(s) available
+   # when running in a container, please see https://github.com/golang/go/issues/33803
+-  if ! command -v ncpu >/dev/null 2>&1; then
+-    # shellcheck disable=SC2164
+-    pushd "${KUBE_ROOT}/hack/tools" >/dev/null
+-    GO111MODULE=on go install ./ncpu
+-    # shellcheck disable=SC2164
+-    popd >/dev/null
++  if [[ -z "${GOMAXPROCS:-}" ]]; then
++    if ! command -v ncpu >/dev/null 2>&1; then
++      # shellcheck disable=SC2164
++      pushd "${KUBE_ROOT}/hack/tools" >/dev/null
++      GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
++      # shellcheck disable=SC2164
++      popd >/dev/null
++    fi
++    if command -v ncpu >/dev/null 2>&1; then
++      GOMAXPROCS=$(ncpu)
++      export GOMAXPROCS
++      kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}"
++    fi
+   fi
+-
+-  GOMAXPROCS=${GOMAXPROCS:-$(ncpu)}
+-  export GOMAXPROCS
+-  kube::log::status "Setting GOMAXPROCS: ${GOMAXPROCS}"
+ }
+ 
+ # This will take binaries from $GOPATH/bin and copy them to the appropriate
+diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh
+index 43dde0c740f..49e3e04ac71 100755
+--- a/hack/make-rules/test-e2e-node.sh
++++ b/hack/make-rules/test-e2e-node.sh
+@@ -18,6 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
+ source "${KUBE_ROOT}/hack/lib/init.sh"
+ 
+ kube::golang::setup_env
++kube::golang::setup_gomaxprocs
+ 
+ # start the cache mutation detector by default so that cache mutators will be found
+ KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
+diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh
+index e9074678a8f..4aa72730d83 100755
+--- a/hack/make-rules/test.sh
++++ b/hack/make-rules/test.sh
+@@ -22,6 +22,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
+ source "${KUBE_ROOT}/hack/lib/init.sh"
+ 
+ kube::golang::setup_env
++kube::golang::setup_gomaxprocs
+ 
+ # start the cache mutation detector by default so that cache mutators will be found
+ KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}"
+-- 
+2.41.0
+

diff --git a/sys-cluster/kube-proxy/kube-proxy-1.28.0.ebuild b/sys-cluster/kube-proxy/kube-proxy-1.28.0.ebuild
index ea991ff91e56..eb1ed50b5db5 100644
--- a/sys-cluster/kube-proxy/kube-proxy-1.28.0.ebuild
+++ b/sys-cluster/kube-proxy/kube-proxy-1.28.0.ebuild
@@ -19,6 +19,10 @@ BDEPEND=">=dev-lang/go-1.20"
 RESTRICT+=" test"
 S="${WORKDIR}/kubernetes-${PV}"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-make-gomaxprocs-install-optional.patch
+)
+
 src_compile() {
 	CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
 		emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-proxy/, sys-cluster/kube-proxy/files/
@ 2025-03-14 13:52 Arthur Zamarin
  0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2025-03-14 13:52 UTC (permalink / raw
  To: gentoo-commits

commit:     9486f745b3165dfd5dafd1fb21f348742ac0420c
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 13:43:26 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 13:51:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9486f745

sys-cluster/kube-proxy: add 1.32.3, add systemd unit

Closes: https://bugs.gentoo.org/695300
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sys-cluster/kube-proxy/Manifest                 |  1 +
 sys-cluster/kube-proxy/files/kube-proxy.service | 13 +++++++++
 sys-cluster/kube-proxy/kube-proxy-1.32.3.ebuild | 38 +++++++++++++++++++++++++
 3 files changed, 52 insertions(+)

diff --git a/sys-cluster/kube-proxy/Manifest b/sys-cluster/kube-proxy/Manifest
index e9987ce53387..9490e6033260 100644
--- a/sys-cluster/kube-proxy/Manifest
+++ b/sys-cluster/kube-proxy/Manifest
@@ -7,3 +7,4 @@ DIST kubernetes-1.31.5.tar.gz 36577053 BLAKE2B bda8223b667bbf9153b9c0d383715d565
 DIST kubernetes-1.31.6.tar.gz 36582120 BLAKE2B f2b27c89d8a8fb442fcd7487af23016776c90ec9f2cfd0c699e7f82341ee2c5a21409347e1b782f4199becd5459ed5c96345c1726bfd5147499d7dfee21c2aa2 SHA512 cc27eedde442c185d9b08bbe25b1d7f189d93d0519b4d02ab47a711dc6345ac3c942cc82ede4026bd20fdabef71f8615df63d06ebd550c60acba6a595c4574b7
 DIST kubernetes-1.32.1.tar.gz 36344641 BLAKE2B bd9c74dd30b257f70b8302d645754683df1202c3d7fa89a9966a0fc6c5f4b1daa1ddf7263848871d950a35626ae643575b45d6d960ad33ce209e69ad60167bb7 SHA512 060ebcd2b0b29391d9605cd059f2c5761f9f51c21e2bdd6d99f086e0e65f476c7d7dc3b4ad9b1507fe2c9d71e9ffbde2555ee67e2c2d7ba97d366af97f995322
 DIST kubernetes-1.32.2.tar.gz 36352120 BLAKE2B 80e5792e86dab9a861238a50748e06f6f265f489f2ac703cd2306ed62855ecf44cdda750f519d47f82b58b4ff1254bcbe47ee25215a38360cab359d14fef75a9 SHA512 ec1102ec06e1789a1e2e9cc554b6c0dc0fbc811bb89d502e19dc8367f12a3f6ac4ba2731f1f3085bbc78ba144daaca95be6d1830ceddac512b0dac8608a5c45d
+DIST kubernetes-1.32.3.tar.gz 36357402 BLAKE2B 084c653e9ee8e481508de6881e48bf852eb179769a7e8596c4b19f442d3b59291c2926e9b8d371aab7a5cc9b5cd7d66fbff342e57a8fc5dda2fb3cb299221ea0 SHA512 acc412079f45b9444a260c37cdb534abfc0618c413224e1e145eaa43504282e70a6d60cf863215e65e8310592ef6f7821168c38ea6c9af84e797027aee407147

diff --git a/sys-cluster/kube-proxy/files/kube-proxy.service b/sys-cluster/kube-proxy/files/kube-proxy.service
new file mode 100644
index 000000000000..33d3e8840ac2
--- /dev/null
+++ b/sys-cluster/kube-proxy/files/kube-proxy.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Kubernetes Proxy service
+Documentation=https://kubernetes.io/docs/concepts/architecture/#kube-proxy https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/
+After=docker.service
+Requires=docker.service
+
+[Service]
+ExecStart=/usr/bin/kube-proxy
+Restart=on-failure
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target

diff --git a/sys-cluster/kube-proxy/kube-proxy-1.32.3.ebuild b/sys-cluster/kube-proxy/kube-proxy-1.32.3.ebuild
new file mode 100644
index 000000000000..f21e133d20bb
--- /dev/null
+++ b/sys-cluster/kube-proxy/kube-proxy-1.32.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="Kubernetes Proxy service"
+HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
+SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
+S=${WORKDIR}/kubernetes-${PV}
+
+LICENSE="Apache-2.0"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="hardened"
+RESTRICT="test"
+
+RDEPEND="net-firewall/conntrack-tools"
+BDEPEND=">=dev-lang/go-1.23.3"
+
+src_compile() {
+	CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
+		emake -j1 GOFLAGS="${GOFLAGS}" GOLDFLAGS="" LDFLAGS="" FORCE_HOST_GO=yes \
+		WHAT=cmd/${PN}
+}
+
+src_install() {
+	dobin _output/bin/${PN}
+	keepdir /var/log/${PN} /var/lib/${PN}
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+	systemd_dounit "${FILESDIR}"/${PN}.service
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}"/${PN}.logrotated ${PN}
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-14 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 12:13 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kube-proxy/, sys-cluster/kube-proxy/files/ Manuel Rüger
  -- strict thread matches above, loose matches on Subject: below --
2017-10-26 12:00 Manuel Rüger
2023-08-23 15:02 William Hubbs
2025-03-14 13:52 Arthur Zamarin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox