1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-info golang-vcs-snapshot
8 DESCRIPTION="Standard networking plugins for container networking"
9 HOMEPAGE="https://github.com/containernetworking/plugins"
10 EGO_PN="github.com/containernetworking/plugins"
11 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 CONFIG_CHECK="~BRIDGE_VLAN_FILTERING"
23 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
24 CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" GOPATH="${WORKDIR}/${P}" go install -v "${EGO_PN}/${i}" || die
32 pushd src/${EGO_PN} || die
35 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
36 newdoc README.md ${i##*/}.README.md