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: Fri, 03 Aug 2018 17:02:07
Message-Id: 1533315687.3e9b20264f92e087260e3ad8e9658031b513ba57.mrueg@gentoo
1 commit: 3e9b20264f92e087260e3ad8e9658031b513ba57
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 3 16:58:18 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 3 17:01:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9b2026
7
8 net-misc/cni-plugins: Version bump to 0.7.2
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 net-misc/cni-plugins/Manifest | 1 +
13 net-misc/cni-plugins/cni-plugins-0.7.2.ebuild | 36 +++++++++++++++++++++++++++
14 2 files changed, 37 insertions(+)
15
16 diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
17 index 175a38da68c..c9298c14243 100644
18 --- a/net-misc/cni-plugins/Manifest
19 +++ b/net-misc/cni-plugins/Manifest
20 @@ -1 +1,2 @@
21 DIST cni-plugins-0.7.1.tar.gz 862546 BLAKE2B 9d13c616396017e3cb54dfdd5bde2c06d2ad572e55009b883d82757c173119694a40157f28fce5818bb8bd33325f2edb0ec197ff77aa2ab08615bfc55ce2bbe8 SHA512 23d3b35c22fdc85d087922fb59c63622a9283ff11d34d1a1043c323f9b07b3837418f333d2f2ab9c6a22514351d71aeeab6a57234b14f53ba29847cffa382ea0
22 +DIST cni-plugins-0.7.2.tar.gz 862552 BLAKE2B 6dfa8842fb86a50610d1d4b512a0d6199ac8c4981dfe609b0be544e1a37b696f15dec2431b6030a4238926685a5f0153840345093e34b1efe218c58a410dd9d5 SHA512 d73a0ffb8e5977781a3f9fa93c1615633f74dfbcfeb78eb4c877992ed30d62b782714620667f14b133348d3c253df3e4219dc7ed5f353c7ec6df6c11c25905dd
23
24 diff --git a/net-misc/cni-plugins/cni-plugins-0.7.2.ebuild b/net-misc/cni-plugins/cni-plugins-0.7.2.ebuild
25 new file mode 100644
26 index 00000000000..b07a467bf91
27 --- /dev/null
28 +++ b/net-misc/cni-plugins/cni-plugins-0.7.2.ebuild
29 @@ -0,0 +1,36 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit golang-vcs-snapshot
36 +
37 +KEYWORDS="~amd64"
38 +DESCRIPTION="Standard networking plugins for container networking"
39 +EGO_PN="github.com/containernetworking/plugins"
40 +HOMEPAGE="https://github.com/containernetworking/plugins"
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 +
46 +src_compile() {
47 + pushd src || die
48 + local i
49 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
50 + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}"
51 + done
52 + popd || die
53 +}
54 +
55 +src_install() {
56 + exeinto /opt/cni/bin
57 + doexe bin/*
58 + pushd src/${EGO_PN} || die
59 + dodoc README.md
60 + local i
61 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
62 + newdoc README.md ${i##*/}.README.md
63 + done
64 + popd || die
65 +}