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: Wed, 13 Sep 2017 11:46:02
Message-Id: 1505303119.64e2b7590889d33ecf888c528bfaefdbc341c932.mrueg@gentoo
1 commit: 64e2b7590889d33ecf888c528bfaefdbc341c932
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 13 11:44:45 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 13 11:45:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e2b759
7
8 net-misc/cni-plugins: Initial version
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 net-misc/cni-plugins/Manifest | 1 +
13 net-misc/cni-plugins/cni-plugins-0.6.0.ebuild | 36 +++++++++++++++++++++++++++
14 net-misc/cni-plugins/metadata.xml | 11 ++++++++
15 3 files changed, 48 insertions(+)
16
17 diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
18 new file mode 100644
19 index 00000000000..b6133f4cd9d
20 --- /dev/null
21 +++ b/net-misc/cni-plugins/Manifest
22 @@ -0,0 +1 @@
23 +DIST cni-plugins-0.6.0.tar.gz 787756 SHA256 8589670f7f9b211a351dfcd211d4fe0b961d77283a7415443dc188f3dbf05668 SHA512 4b3c1901154eb1af86dc35888fda7b7666ee88d2cf728fb09182df5385d32b747de34c5c01598e1f37ae1e3497dbf5af2bc6ad6f737e683ccfccf9c1860cf6dc WHIRLPOOL 4e06c4b54144139509148cb851182dfa642fa4614fc392304bdc541611dc8bb34c978e9ff6507bb55a46a4d0f016feaf615abd09cdfb303e1f9e995162a19351
24
25 diff --git a/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild b/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild
26 new file mode 100644
27 index 00000000000..7a785167042
28 --- /dev/null
29 +++ b/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild
30 @@ -0,0 +1,36 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit golang-vcs-snapshot
37 +
38 +KEYWORDS="~amd64"
39 +DESCRIPTION="Standard networking plugins for container networking"
40 +EGO_PN="github.com/containernetworking/plugins"
41 +HOMEPAGE="https://github.com/containernetworking/plugins"
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 +
47 +src_compile() {
48 + pushd src || die
49 + local i
50 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
51 + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}"
52 + done
53 + popd || die
54 +}
55 +
56 +src_install() {
57 + exeinto /opt/cni/bin
58 + doexe bin/*
59 + pushd src/${EGO_PN} || die
60 + dodoc README.md
61 + local i
62 + for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
63 + newdoc README.md ${i##*/}.README.md
64 + done
65 + popd || die
66 +}
67
68 diff --git a/net-misc/cni-plugins/metadata.xml b/net-misc/cni-plugins/metadata.xml
69 new file mode 100644
70 index 00000000000..deec70d1fa6
71 --- /dev/null
72 +++ b/net-misc/cni-plugins/metadata.xml
73 @@ -0,0 +1,11 @@
74 +<?xml version="1.0" encoding="UTF-8"?>
75 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
76 +<pkgmetadata>
77 + <maintainer type="person">
78 + <name>Manuel Rüger</name>
79 + <email>mrueg@g.o</email>
80 + </maintainer>
81 + <upstream>
82 + <remote-id type="github">containernetworking/plugins</remote-id>
83 + </upstream>
84 +</pkgmetadata>