summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2019-03-28 15:14:15 +0100
committerManuel Rüger <mrueg@gentoo.org>2019-03-28 15:14:15 +0100
commit186d7b0c10198c042028916938b599911d199d53 (patch)
tree84af843b0d4ead46c0c8dd3d271e69b259ce7b93 /net-misc/cni-plugins/cni-plugins-0.7.5.ebuild
parentsys-cluster/kube-proxy: Remove old (diff)
downloadgentoo-186d7b0c10198c042028916938b599911d199d53.tar.gz
gentoo-186d7b0c10198c042028916938b599911d199d53.tar.bz2
gentoo-186d7b0c10198c042028916938b599911d199d53.zip
net-misc/cni-plugins: Version bump to 0.7.5
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Diffstat (limited to 'net-misc/cni-plugins/cni-plugins-0.7.5.ebuild')
-rw-r--r--net-misc/cni-plugins/cni-plugins-0.7.5.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild b/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild
new file mode 100644
index 00000000000..f875d2d0f72
--- /dev/null
+++ b/net-misc/cni-plugins/cni-plugins-0.7.5.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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,host-device,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,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local},sample}; do
+ newdoc README.md ${i##*/}.README.md
+ done
+ popd || die
+}