net-misc/cni-plugins: Initial version
authorManuel Rüger <mrueg@gentoo.org>
Wed, 13 Sep 2017 11:44:45 +0000 (13:44 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Wed, 13 Sep 2017 11:45:19 +0000 (13:45 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-misc/cni-plugins/Manifest [new file with mode: 0644]
net-misc/cni-plugins/cni-plugins-0.6.0.ebuild [new file with mode: 0644]
net-misc/cni-plugins/metadata.xml [new file with mode: 0644]

diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
new file mode 100644 (file)
index 0000000..b6133f4
--- /dev/null
@@ -0,0 +1 @@
+DIST cni-plugins-0.6.0.tar.gz 787756 SHA256 8589670f7f9b211a351dfcd211d4fe0b961d77283a7415443dc188f3dbf05668 SHA512 4b3c1901154eb1af86dc35888fda7b7666ee88d2cf728fb09182df5385d32b747de34c5c01598e1f37ae1e3497dbf5af2bc6ad6f737e683ccfccf9c1860cf6dc WHIRLPOOL 4e06c4b54144139509148cb851182dfa642fa4614fc392304bdc541611dc8bb34c978e9ff6507bb55a46a4d0f016feaf615abd09cdfb303e1f9e995162a19351
diff --git a/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild b/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild
new file mode 100644 (file)
index 0000000..7a78516
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit golang-vcs-snapshot
+
+KEYWORDS="~amd64"
+DESCRIPTION="Standard networking plugins for container networking"
+EGO_PN="github.com/containernetworking/plugins"
+HOMEPAGE="https://github.com/containernetworking/plugins"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="hardened"
+
+src_compile() {
+       pushd src || die
+       local i
+       for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
+               CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}"
+       done
+       popd || die
+}
+
+src_install() {
+       exeinto /opt/cni/bin
+       doexe bin/*
+       pushd src/${EGO_PN} || die
+       dodoc README.md
+       local i
+       for i in plugins/{meta/{flannel,portmap,tuning},main/{bridge,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
+               newdoc README.md ${i##*/}.README.md
+       done
+       popd || die
+}
diff --git a/net-misc/cni-plugins/metadata.xml b/net-misc/cni-plugins/metadata.xml
new file mode 100644 (file)
index 0000000..deec70d
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <name>Manuel Rüger</name>
+    <email>mrueg@gentoo.org</email>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">containernetworking/plugins</remote-id>
+  </upstream>
+</pkgmetadata>