1 |
commit: 1cd833040af6249eb898a51579004b994ddbb0c6 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 19:07:07 2022 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 24 19:09:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cd83304 |
7 |
|
8 |
app-containers/cni-plugins: 1.1.1-r1 revbump to add iptables to RDEPEND |
9 |
|
10 |
Closes: https://bugs.gentoo.org/870622 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
.../cni-plugins/cni-plugins-1.1.1-r1.ebuild | 37 ++++++++++++++++++++++ |
14 |
1 file changed, 37 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000000..2cd642a24d33 |
19 |
--- /dev/null |
20 |
+++ b/app-containers/cni-plugins/cni-plugins-1.1.1-r1.ebuild |
21 |
@@ -0,0 +1,37 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+inherit go-module linux-info systemd |
27 |
+ |
28 |
+DESCRIPTION="Standard networking plugins for container networking" |
29 |
+HOMEPAGE="https://github.com/containernetworking/plugins" |
30 |
+SRC_URI="https://github.com/containernetworking/plugins/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="Apache-2.0" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" |
35 |
+IUSE="hardened" |
36 |
+ |
37 |
+RDEPEND="net-firewall/iptables" |
38 |
+ |
39 |
+CONFIG_CHECK="~BRIDGE_VLAN_FILTERING ~NETFILTER_XT_MATCH_COMMENT |
40 |
+ ~NETFILTER_XT_MATCH_MULTIPORT" |
41 |
+ |
42 |
+S="${WORKDIR}/plugins-${PV}" |
43 |
+ |
44 |
+src_compile() { |
45 |
+ CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" ./build_linux.sh || die |
46 |
+} |
47 |
+ |
48 |
+src_install() { |
49 |
+ exeinto /opt/cni/bin |
50 |
+ doexe bin/* |
51 |
+ dodoc README.md |
52 |
+ local i |
53 |
+ 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 |
54 |
+ newdoc README.md ${i##*/}.README.md |
55 |
+ done |
56 |
+ systemd_dounit plugins/ipam/dhcp/systemd/cni-dhcp.{service,socket} |
57 |
+ newinitd "${FILESDIR}"/cni-dhcp.initd cni-dhcp |
58 |
+} |