summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-11-22 18:22:02 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-11-22 18:22:02 +0100
commitdae500bab37d063568188af2f2fd09c24ba88903 (patch)
tree2292ef97a2c9ac7605014a05b4e08097cb97f7bb /sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild
parentsys-cluster/kube-proxy: Remove old (diff)
downloadgentoo-dae500bab37d063568188af2f2fd09c24ba88903.tar.gz
gentoo-dae500bab37d063568188af2f2fd09c24ba88903.tar.bz2
gentoo-dae500bab37d063568188af2f2fd09c24ba88903.zip
sys-cluster/kube-scheduler: Version bump to 1.8.4
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild')
-rw-r--r--sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild b/sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild
new file mode 100644
index 000000000000..61414d011f79
--- /dev/null
+++ b/sys-cluster/kube-scheduler/kube-scheduler-1.8.4.ebuild
@@ -0,0 +1,48 @@
+# 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 "s/git archive/git-archive/" src/${EGO_PN}/hack/lib/version.sh || die
+ 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} GOFLAGS=-v
+}
+
+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}
+}