1 |
commit: a07f698e50d707dd923cfa68a72f37506005b3a1 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 25 13:57:39 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 25 13:57:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a07f698e |
7 |
|
8 |
app-emulation/flannel: Version bump to 0.9.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.10, Repoman-2.3.3 |
11 |
|
12 |
app-emulation/flannel/Manifest | 1 + |
13 |
app-emulation/flannel/flannel-0.9.0.ebuild | 51 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/flannel/Manifest b/app-emulation/flannel/Manifest |
17 |
index 530a82a99a6..eb33a19d070 100644 |
18 |
--- a/app-emulation/flannel/Manifest |
19 |
+++ b/app-emulation/flannel/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST flannel-0.8.0.tar.gz 8089967 SHA256 8905f1706b649db8c9852ddd0d559ff8c1844886278455b8ff0c22b909b1e059 SHA512 8d3693d95f67ab273c68671d0b2ab76dd3761868bb956cb14c171525bbefab8223d202f2356de249e1add1bbac89f995367a6d5c1b8e1358bebaa317b4f0a2fc WHIRLPOOL c6c2d4cc2f864b2e3271933a99d5ae8b4ef08c12b7e5cca771ca86c4902a4f2469cee990c46b5a40337a89b52c44d17cebcd56be77b502c2fedc371aad299be1 |
22 |
+DIST flannel-0.9.0.tar.gz 8090296 SHA256 3d04611497eab9f066d0316a23e5cc931b730707cc5fdcd1ea9940146f41151f SHA512 b91a3da1b69c806d9af87d4c5f8702c845b328978e375d957bbb8dd3eeb35547cc63f8f13bef7520a8e012e4e958a7c6ca047d0b06a1f9a0e31f61ec2be40a4d WHIRLPOOL da8cb9b415bb6627e33f7e040316a8e882e8b7960353a4e69dd81c25fb3025dbaf06b0ef6350df0e5566cd0cef9f7313a273bd75d2f1d613c7f8961245fadf49 |
23 |
|
24 |
diff --git a/app-emulation/flannel/flannel-0.9.0.ebuild b/app-emulation/flannel/flannel-0.9.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..5135efe94f8 |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/flannel/flannel-0.9.0.ebuild |
29 |
@@ -0,0 +1,51 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit golang-vcs-snapshot systemd user |
36 |
+ |
37 |
+KEYWORDS="~amd64" |
38 |
+DESCRIPTION="An etcd backed network fabric for containers" |
39 |
+EGO_PN="github.com/coreos/flannel" |
40 |
+HOMEPAGE="https://github.com/coreos/flannel" |
41 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+LICENSE="Apache-2.0" |
43 |
+SLOT="0" |
44 |
+IUSE="hardened" |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ default |
49 |
+ sed -e "s:^var Version =.*:var Version = \"${PV}\":" \ |
50 |
+ -i "${S}/src/${EGO_PN}/version/version.go" || die |
51 |
+} |
52 |
+ |
53 |
+src_compile() { |
54 |
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"\ |
55 |
+ GOPATH="${WORKDIR}/${P}" \ |
56 |
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" |
57 |
+ [[ -x bin/${PN} ]] || die |
58 |
+} |
59 |
+ |
60 |
+src_test() { |
61 |
+ GOPATH="${WORKDIR}/${P}" \ |
62 |
+ go test -v -work -x "${EGO_PN}" || die |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ newbin "bin/${PN}" ${PN}d |
67 |
+ cd "src/${EGO_PN}" || die |
68 |
+ exeinto /usr/libexec/flannel |
69 |
+ doexe dist/mk-docker-opts.sh |
70 |
+ insinto /etc/systemd/system/docker.service.d |
71 |
+ newins "${FILESDIR}/flannel-docker.conf" flannel.conf |
72 |
+ newinitd "${FILESDIR}"/flanneld.initd flanneld |
73 |
+ newconfd "${FILESDIR}"/flanneld.confd flanneld |
74 |
+ keepdir /var/log/${PN} |
75 |
+ insinto /etc/logrotate.d |
76 |
+ newins "${FILESDIR}"/flanneld.logrotated flanneld |
77 |
+ systemd_newtmpfilesd "${FILESDIR}/flannel.tmpfilesd" flannel.conf |
78 |
+ systemd_dounit "${FILESDIR}/flanneld.service" |
79 |
+ dodoc README.md |
80 |
+} |