summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-01-16 17:27:27 -0600
committerWilliam Hubbs <williamh@gentoo.org>2021-01-16 17:27:27 -0600
commit4067bcfbea48cff33fa5eb4fce92fb154256a033 (patch)
tree9bc681656d4a2b2dadd02c841d4a616724adad50 /net-misc/cni-plugins/cni-plugins-0.9.0.ebuild
parentapp-misc/rbutil: Fix building with -fno-common or GCC 10 (diff)
downloadgentoo-4067bcfbea48cff33fa5eb4fce92fb154256a033.tar.gz
gentoo-4067bcfbea48cff33fa5eb4fce92fb154256a033.tar.bz2
gentoo-4067bcfbea48cff33fa5eb4fce92fb154256a033.zip
net-misc/cni-plugins: 0.9.0 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-misc/cni-plugins/cni-plugins-0.9.0.ebuild')
-rw-r--r--net-misc/cni-plugins/cni-plugins-0.9.0.ebuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-misc/cni-plugins/cni-plugins-0.9.0.ebuild b/net-misc/cni-plugins/cni-plugins-0.9.0.ebuild
new file mode 100644
index 000000000000..3ef070097fe8
--- /dev/null
+++ b/net-misc/cni-plugins/cni-plugins-0.9.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module linux-info
+
+DESCRIPTION="Standard networking plugins for container networking"
+HOMEPAGE="https://github.com/containernetworking/plugins"
+SRC_URI="https://github.com/containernetworking/plugins/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="hardened"
+
+CONFIG_CHECK="~BRIDGE_VLAN_FILTERING"
+S="${WORKDIR}/plugins-${PV}"
+
+src_compile() {
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" ./build_linux.sh || die
+}
+
+src_install() {
+ exeinto /opt/cni/bin
+ doexe bin/*
+ dodoc README.md
+ local i
+ 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
+ newdoc README.md ${i##*/}.README.md
+ done
+ newinitd "${FILESDIR}"/cni-dhcp.initd cni-dhcp
+}