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, 28 Mar 2019 14:15:06
Message-Id: 1553782455.186d7b0c10198c042028916938b599911d199d53.mrueg@gentoo
1 commit: 186d7b0c10198c042028916938b599911d199d53
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 28 14:14:15 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 28 14:14:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=186d7b0c
7
8 net-misc/cni-plugins: Version bump to 0.7.5
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
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.7.5.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 f17b6938bc9..86ba6c6ddbd 100644
19 --- a/net-misc/cni-plugins/Manifest
20 +++ b/net-misc/cni-plugins/Manifest
21 @@ -2,3 +2,4 @@ DIST cni-plugins-0.7.1.tar.gz 862546 BLAKE2B 9d13c616396017e3cb54dfdd5bde2c06d2a
22 DIST cni-plugins-0.7.2.tar.gz 862552 BLAKE2B 6dfa8842fb86a50610d1d4b512a0d6199ac8c4981dfe609b0be544e1a37b696f15dec2431b6030a4238926685a5f0153840345093e34b1efe218c58a410dd9d5 SHA512 d73a0ffb8e5977781a3f9fa93c1615633f74dfbcfeb78eb4c877992ed30d62b782714620667f14b133348d3c253df3e4219dc7ed5f353c7ec6df6c11c25905dd
23 DIST cni-plugins-0.7.3.tar.gz 863596 BLAKE2B 8a4eda2b4ac9b6f53fda5a83cdeab4da862f5e48ddc9ae7c08f8ffa4c65c600543fcb968fa42182051a21a7233ea4e3a613aa6ff60d0e971284703de634e90d0 SHA512 d5c9744de2075270dd2a3e87ddf183c12e9f77b2d9df954d266105285042475b2f1f068f0024671f855c3aecc1269e49d6a146dd2f7647df0208aa8a9ec5195f
24 DIST cni-plugins-0.7.4.tar.gz 862510 BLAKE2B 7ec9ec84614caecaca1583430552bd93606ae1f178f92cb4f7047ab47292084c5102437fbc9fdfe0ebf7043c94bb1b9fbb9d2ac0bc78abadb40da11cdd62b512 SHA512 2ffe18353b525d90679eca4950e96afcaadd7c387956ef5baaf4ce97c0550315fda63403161ab8f23df086955dc2a47da612fb8d0cdd30ccfe12649393e2242c
25 +DIST cni-plugins-0.7.5.tar.gz 862670 BLAKE2B 17734beabde562cfd52efd479cb24805681a3d8a8abd4fd9fdcf9dbd891b2d5b3026b84a880355388c893db147fd0952786a86716438e140a46cc9a2dfffe0c2 SHA512 7ab43f88b4763907f56ff26d684385e5a3f6314ffb4bcbe356ec33a014fc15207392bd26e2d3041e117c604a386d21841a37d093b04e003303554b03721b32c6
26
27 diff --git a/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild b/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild
28 new file mode 100644
29 index 00000000000..f875d2d0f72
30 --- /dev/null
31 +++ b/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild
32 @@ -0,0 +1,36 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit golang-vcs-snapshot
39 +
40 +KEYWORDS="~amd64"
41 +DESCRIPTION="Standard networking plugins for container networking"
42 +EGO_PN="github.com/containernetworking/plugins"
43 +HOMEPAGE="https://github.com/containernetworking/plugins"
44 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +IUSE="hardened"
48 +
49 +src_compile() {
50 + pushd src || die
51 + local i
52 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
53 + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}"
54 + done
55 + popd || die
56 +}
57 +
58 +src_install() {
59 + exeinto /opt/cni/bin
60 + doexe bin/*
61 + pushd src/${EGO_PN} || die
62 + dodoc README.md
63 + local i
64 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
65 + newdoc README.md ${i##*/}.README.md
66 + done
67 + popd || die
68 +}