1 |
commit: c260e1915765c2348a4641f33a0a6fd0855d7d61 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 10 13:32:19 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 10 13:32:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c260e191 |
7 |
|
8 |
sys-cluster/kube-proxy: Install /var/lib/kube-proxy as well |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sys-cluster/kube-proxy/kube-proxy-1.7.3-r1.ebuild | 41 +++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/sys-cluster/kube-proxy/kube-proxy-1.7.3-r1.ebuild b/sys-cluster/kube-proxy/kube-proxy-1.7.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..4824d28abca |
18 |
--- /dev/null |
19 |
+++ b/sys-cluster/kube-proxy/kube-proxy-1.7.3-r1.ebuild |
20 |
@@ -0,0 +1,41 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit golang-build golang-vcs-snapshot |
26 |
+ |
27 |
+EGO_PN="k8s.io/kubernetes" |
28 |
+ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz" |
29 |
+KEYWORDS="~amd64" |
30 |
+ |
31 |
+DESCRIPTION="Kubernetes Proxy service" |
32 |
+HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io" |
33 |
+SRC_URI="${ARCHIVE_URI}" |
34 |
+ |
35 |
+LICENSE="Apache-2.0" |
36 |
+SLOT="0" |
37 |
+ |
38 |
+DEPEND="dev-go/go-bindata" |
39 |
+ |
40 |
+RESTRICT="test" |
41 |
+ |
42 |
+src_prepare() { |
43 |
+ default |
44 |
+ sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" src/${EGO_PN}/hack/lib/golang.sh || die |
45 |
+ sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die |
46 |
+} |
47 |
+ |
48 |
+src_compile() { |
49 |
+ LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=cmd/${PN} |
50 |
+} |
51 |
+ |
52 |
+src_install() { |
53 |
+ pushd src/${EGO_PN} || die |
54 |
+ dobin _output/bin/${PN} |
55 |
+ popd || die |
56 |
+ keepdir /var/log/${PN} /var/lib/${PN} |
57 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
58 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
59 |
+ insinto /etc/logrotate.d |
60 |
+ newins "${FILESDIR}"/${PN}.logrotated ${PN} |
61 |
+} |