From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 222401396D1 for ; Thu, 10 Aug 2017 13:32:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6444C1FC046; Thu, 10 Aug 2017 13:32:39 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 468CD1FC046 for ; Thu, 10 Aug 2017 13:32:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0CC5734193E for ; Thu, 10 Aug 2017 13:32:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7AFEF746F for ; Thu, 10 Aug 2017 13:32:36 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1502371898.34b2e63455c5b457b750f5a0167604c2211266d0.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/kubelet/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/kubelet/kubelet-1.7.3-r1.ebuild X-VCS-Directories: sys-cluster/kubelet/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 34b2e63455c5b457b750f5a0167604c2211266d0 X-VCS-Branch: master Date: Thu, 10 Aug 2017 13:32:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 20eba32e-b719-44a8-9ece-456bd4df777b X-Archives-Hash: 088178838574efd5c4912e2f1e37d4d6 commit: 34b2e63455c5b457b750f5a0167604c2211266d0 Author: Manuel Rüger gentoo org> AuthorDate: Thu Aug 10 13:28:26 2017 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Thu Aug 10 13:31:38 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b2e634 sys-cluster/kubelet: Install /var/lib/kubelet as well Package-Manager: Portage-2.3.6, Repoman-2.3.3 sys-cluster/kubelet/kubelet-1.7.3-r1.ebuild | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/sys-cluster/kubelet/kubelet-1.7.3-r1.ebuild b/sys-cluster/kubelet/kubelet-1.7.3-r1.ebuild new file mode 100644 index 00000000000..8348f6d70ac --- /dev/null +++ b/sys-cluster/kubelet/kubelet-1.7.3-r1.ebuild @@ -0,0 +1,43 @@ +# 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 Node Agent" +HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io" +SRC_URI="${ARCHIVE_URI}" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="hardened" + +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() { + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" + 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 /etc/kubernetes/manifests /var/log/kubelet /var/lib/kubelet + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotated ${PN} +}