summaryrefslogtreecommitdiff
path: root/net-misc/cni-plugins
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/cni-plugins
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/cni-plugins')
-rw-r--r--net-misc/cni-plugins/Manifest3
-rw-r--r--net-misc/cni-plugins/cni-plugins-0.6.0.ebuild36
-rw-r--r--net-misc/cni-plugins/metadata.xml11
3 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
new file mode 100644
index 000000000000..399365759002
--- /dev/null
+++ b/net-misc/cni-plugins/Manifest
@@ -0,0 +1,3 @@
+DIST cni-plugins-0.6.0.tar.gz 787756 SHA256 8589670f7f9b211a351dfcd211d4fe0b961d77283a7415443dc188f3dbf05668 SHA512 4b3c1901154eb1af86dc35888fda7b7666ee88d2cf728fb09182df5385d32b747de34c5c01598e1f37ae1e3497dbf5af2bc6ad6f737e683ccfccf9c1860cf6dc WHIRLPOOL 4e06c4b54144139509148cb851182dfa642fa4614fc392304bdc541611dc8bb34c978e9ff6507bb55a46a4d0f016feaf615abd09cdfb303e1f9e995162a19351
+EBUILD cni-plugins-0.6.0.ebuild 1043 SHA256 354dc5b4c03938ec1755cd53d025163f92b81a7c11404f7f5345a4203a38ae30 SHA512 981589a5390a63178d7a5961794e28400c0f38e3c4419797779d6256cdd7efbfdf4d35857af740b76d5af0657995ebae08b465865ed6525bbd12658eacc625f0 WHIRLPOOL ea88a932bea069bb0ffb0e59f83d102c6874c39f9c7b4c2da8462de9d34c84b655be3910ac7c317cbd601a7f821a0fb9bec67e1434ab0f26fee0586ad430a27b
+MISC metadata.xml 347 SHA256 77b36b270fcd6dbf3f95f667d3f12e1f64142bc3b517d43ef8a9bd164059bd72 SHA512 b977f4287446648ff730c36e71002f524ae9a96c3fb104ee8542da90f6f996926a9b9809007f285e930d79842d9663cf4e462e8ee50da8319dcd3e07cf6dee05 WHIRLPOOL 9d434379158bf00644ffc03e6c431cfed2a5ca3ffe725511f17adf7ec1e6f2349f01fd92aa81fc1dc54c61d0f55282f4571c32f6acc917e71c5b695d1de8eed4
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
index 000000000000..7a785167042e
--- /dev/null
+++ b/net-misc/cni-plugins/cni-plugins-0.6.0.ebuild
@@ -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
index 000000000000..deec70d1fa6f
--- /dev/null
+++ b/net-misc/cni-plugins/metadata.xml
@@ -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>