1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-info golang-vcs-snapshot
9 DESCRIPTION="Standard networking plugins for container networking"
10 EGO_PN="github.com/containernetworking/plugins"
11 HOMEPAGE="https://github.com/containernetworking/plugins"
12 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 CONFIG_CHECK="~BRIDGE_VLAN_FILTERING"
22 for i in plugins/{meta/{bandwidth,firewall,flannel,portmap,sbr,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local,static},sample}; do
23 CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}" || die
31 pushd src/${EGO_PN} || die
34 for i in plugins/{meta/{bandwidth,firewall,flannel,portmap,sbr,tuning},main/{bridge,host-device,ipvlan,loopback,macvlan,ptp,vlan},ipam/{dhcp,host-local,static},sample}; do
35 newdoc README.md ${i##*/}.README.md