Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/cni-plugins/
Date: Thu, 06 Jun 2019 09:33:43
Message-Id: 1559813355.1d13523f82f0b24f3e1cc7a9a8676baf7edb3fb8.mrueg@gentoo
1 commit: 1d13523f82f0b24f3e1cc7a9a8676baf7edb3fb8
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 6 09:29:15 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 6 09:29:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d13523f
7
8 net-misc/cni-plugins: Version bump to 0.8.1
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.14
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 net-misc/cni-plugins/Manifest | 1 +
14 net-misc/cni-plugins/cni-plugins-0.8.1.ebuild | 36 +++++++++++++++++++++++++++
15 2 files changed, 37 insertions(+)
16
17 diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
18 index 98fd186515c..4103de17f4e 100644
19 --- a/net-misc/cni-plugins/Manifest
20 +++ b/net-misc/cni-plugins/Manifest
21 @@ -1,2 +1,3 @@
22 DIST cni-plugins-0.7.5.tar.gz 862670 BLAKE2B 17734beabde562cfd52efd479cb24805681a3d8a8abd4fd9fdcf9dbd891b2d5b3026b84a880355388c893db147fd0952786a86716438e140a46cc9a2dfffe0c2 SHA512 7ab43f88b4763907f56ff26d684385e5a3f6314ffb4bcbe356ec33a014fc15207392bd26e2d3041e117c604a386d21841a37d093b04e003303554b03721b32c6
23 DIST cni-plugins-0.8.0.tar.gz 3249919 BLAKE2B 78c0b20c3745d8ceb3596b65a57323cc3baaa4ca02bed6de2bffeb5dbc7075f86f536faa5b75ad1bc05c359b2d9add8e6084831110337c0df08665b252eb8413 SHA512 de685a66e0e875e8a2209b76c5d1f5fd0e426804e3db6084cf2e89695a8b1876eae47ff1fcfdf065a3b027918fe7c4775d2321358402dbd1206928538edb52b4
24 +DIST cni-plugins-0.8.1.tar.gz 3253670 BLAKE2B 7de5b53e310b496137c0ea0d6b4d22d5604e49fb4ada456eaad377a0b20d0b8883e7420a8d5f8cf92922e98b493608d495126772fd4205e4efb42b784fe3cea7 SHA512 ed57162fc3d014c897ee2f7f82b738624ca42ad7c238ac6ac5c1eb9ac865fe27f8ded1510cfb131f7b43e44f6cd0366ab83011386bcb6add36ea11235767760f
25
26 diff --git a/net-misc/cni-plugins/cni-plugins-0.8.1.ebuild b/net-misc/cni-plugins/cni-plugins-0.8.1.ebuild
27 new file mode 100644
28 index 00000000000..c8c1659634b
29 --- /dev/null
30 +++ b/net-misc/cni-plugins/cni-plugins-0.8.1.ebuild
31 @@ -0,0 +1,36 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit golang-vcs-snapshot
38 +
39 +KEYWORDS="~amd64"
40 +DESCRIPTION="Standard networking plugins for container networking"
41 +EGO_PN="github.com/containernetworking/plugins"
42 +HOMEPAGE="https://github.com/containernetworking/plugins"
43 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +IUSE="hardened"
47 +
48 +src_compile() {
49 + pushd src || die
50 + local i
51 + for i in plugins/{meta/{bandwidth,firewall,flannel,portmap,sbr,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local,static},sample}; do
52 + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}" || die
53 + done
54 + popd || die
55 +}
56 +
57 +src_install() {
58 + exeinto /opt/cni/bin
59 + doexe bin/*
60 + pushd src/${EGO_PN} || die
61 + dodoc README.md
62 + local i
63 + for i in plugins/{meta/{bandwidth,firewall,flannel,portmap,sbr,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local,static},sample}; do
64 + newdoc README.md ${i##*/}.README.md
65 + done
66 + popd || die
67 +}