1 |
commit: 5d894a4a3e23bdce5ea553e2e3e41412b89a1b2c |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 31 18:32:06 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 31 18:33:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d894a4a |
7 |
|
8 |
app-containers/flannel: Bump to version 0.16.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-containers/flannel/Manifest | 1 + |
14 |
app-containers/flannel/flannel-0.16.0.ebuild | 54 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/app-containers/flannel/Manifest b/app-containers/flannel/Manifest |
18 |
index fdfb49c6cbe8..9ee6f0eb03c0 100644 |
19 |
--- a/app-containers/flannel/Manifest |
20 |
+++ b/app-containers/flannel/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST flannel-0.11.0.tar.gz 6443391 BLAKE2B 5358e513a73fec6d8fcdb0182ec814fcf204eb12830f7d60acb3d4432f821ccc9e174fcc7adb57584ab1782c3f285e46b51bb0f76635fab9cf851cb2bd40c1b3 SHA512 72d18cd4ec58ede3848da3b94b7f3e33f8dda59d9fceb13864757998a24f0b312bc5b5d7927d3da8a805475efee469095ac09390fa632eb0c6ef9dd0f5d38a3b |
23 |
DIST flannel-0.14.0.tar.gz 8324790 BLAKE2B 47fd65d531f9fa10e602ccf1858549ede97d8f8c9afa32ffeb010d733060703262cafd02b5daddc65142dfa96b1c6b429eaff30b7fdaca27e2a5397c0d756e7c SHA512 a5d9f45d55f18c744e635b4d697200cf9d5a8c4387cd6d9c57220e652e3688337f2ee50fef193135dd0073b14edb8800fac8d5ca9f9d0d3e9ef70d09a52f259c |
24 |
+DIST flannel-0.16.0.tar.gz 8697548 BLAKE2B a307990554a6cf215bef6ac75a544d00d8c6cd702f02e98efaf80b89d0ecf4592c1c338d1f80cf22ee086355ee7edb77492e6af587cbf037f38b6e3dbc4ac252 SHA512 7b80fe1e282c312b8b242d2201ecd164d87b551f4bc02d8375ca856c0dcfad2d31bd1b4041663016130b0bd7ebaf0062afe59c0946e97f10478142ca8ffd94f0 |
25 |
|
26 |
diff --git a/app-containers/flannel/flannel-0.16.0.ebuild b/app-containers/flannel/flannel-0.16.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..ec33f31625ba |
29 |
--- /dev/null |
30 |
+++ b/app-containers/flannel/flannel-0.16.0.ebuild |
31 |
@@ -0,0 +1,54 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+inherit go-module systemd tmpfiles |
37 |
+ |
38 |
+KEYWORDS="~amd64 ~arm64" |
39 |
+DESCRIPTION="An etcd backed network fabric for containers" |
40 |
+HOMEPAGE="https://github.com/coreos/flannel" |
41 |
+SRC_URI="https://github.com/coreos/flannel/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0 BSD ISC LGPL-3 MIT" |
44 |
+SLOT="0" |
45 |
+IUSE="hardened" |
46 |
+ |
47 |
+RESTRICT+=" test" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ sed -e "s:^var Version =.*:var Version = \"${PV}\":" \ |
52 |
+ -i "${S}/version/version.go" || die |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"\ |
57 |
+ go build -o dist/flanneld -ldflags " |
58 |
+ -X github.com/flannel-io/flannel/version.Version=v${PV} |
59 |
+ -extldflags \"-static\"" . || die |
60 |
+} |
61 |
+ |
62 |
+src_test() { |
63 |
+ GOPATH="${WORKDIR}/${P}" \ |
64 |
+ go test -v -work -x "${EGO_PN}" || die |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ dobin dist/${PN}d |
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 |
+ newtmpfiles "${FILESDIR}/flannel.tmpfilesd" flannel.conf |
79 |
+ systemd_dounit "${FILESDIR}/flanneld.service" |
80 |
+ dodoc README.md |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ tmpfiles_process flannel.conf |
85 |
+} |