diff options
author | William Hubbs <williamh@gentoo.org> | 2022-09-24 14:07:07 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-09-24 14:09:09 -0500 |
commit | 1cd833040af6249eb898a51579004b994ddbb0c6 (patch) | |
tree | 59de5d7e2e3ee0d7c85e30bb2201b6fde2d571eb /app-containers/cni-plugins | |
parent | dev-util/gitlab-runner: add 15.4.0 (diff) | |
download | gentoo-1cd833040af6249eb898a51579004b994ddbb0c6.tar.gz gentoo-1cd833040af6249eb898a51579004b994ddbb0c6.tar.bz2 gentoo-1cd833040af6249eb898a51579004b994ddbb0c6.zip |
app-containers/cni-plugins: 1.1.1-r1 revbump to add iptables to RDEPEND
Closes: https://bugs.gentoo.org/870622
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-containers/cni-plugins')
-rw-r--r-- | app-containers/cni-plugins/cni-plugins-1.1.1-r1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-containers/cni-plugins/cni-plugins-1.1.1-r1.ebuild b/app-containers/cni-plugins/cni-plugins-1.1.1-r1.ebuild new file mode 100644 index 000000000000..2cd642a24d33 --- /dev/null +++ b/app-containers/cni-plugins/cni-plugins-1.1.1-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module linux-info systemd + +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 ~ppc64 ~riscv" +IUSE="hardened" + +RDEPEND="net-firewall/iptables" + +CONFIG_CHECK="~BRIDGE_VLAN_FILTERING ~NETFILTER_XT_MATCH_COMMENT + ~NETFILTER_XT_MATCH_MULTIPORT" + +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 + systemd_dounit plugins/ipam/dhcp/systemd/cni-dhcp.{service,socket} + newinitd "${FILESDIR}"/cni-dhcp.initd cni-dhcp +} |