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