public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/cni-plugins/files/, net-misc/cni-plugins/
@ 2021-01-16 23:28 William Hubbs
  0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2021-01-16 23:28 UTC (permalink / raw
  To: gentoo-commits

commit:     4067bcfbea48cff33fa5eb4fce92fb154256a033
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 16 23:27:27 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Jan 16 23:27:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4067bcfb

net-misc/cni-plugins: 0.9.0 bump

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-misc/cni-plugins/Manifest                 |  1 +
 net-misc/cni-plugins/cni-plugins-0.9.0.ebuild | 32 +++++++++++++++++++++++++++
 net-misc/cni-plugins/files/cni-dhcp.initd     | 20 +++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/net-misc/cni-plugins/Manifest b/net-misc/cni-plugins/Manifest
index 759325c90a5..b0fd28399ef 100644
--- a/net-misc/cni-plugins/Manifest
+++ b/net-misc/cni-plugins/Manifest
@@ -1,2 +1,3 @@
 DIST cni-plugins-0.8.6.tar.gz 1993056 BLAKE2B 89276e0f7fdbc782b30ff675abcb0f92f210771bb772269210416e17d6da443fe732774d9af8ae66f69847c8b48ee4dc6485f51e2156814cfd7e3ca8b455428f SHA512 8815de8b375c737c3a1951b0a7ef5786209fdcf723aa1bc7c2dab7e1bbdee4933a7237f41bdee4208828b457bc79ec69ff68db060c52bab13863f42b042480c8
 DIST cni-plugins-0.8.7.tar.gz 1965945 BLAKE2B 592b1f126547363877c657e03d69fcb25874e6d472d731861a1a03e3933901bd618a5097f3d91f6ca7fbedce29a0ff0076a65be1a528a2584a7dcb5940a4b010 SHA512 1b11b080b1f54a8a792b1048573d7d882603b76929f0c9343eeb2e010f97700c0deea4489faeb493a1aeac12557b6847b26784c378d0430c47de6bdaca6aa70f
+DIST cni-plugins-0.9.0.tar.gz 2705022 BLAKE2B 82f723501901da40e4ea2f111bd1ed3023a1d11e1715902830f3cd0cf0d46d9f9c57389b3a763448fcd52c40aba97a731986ca1862e2ecd912e8a274abf626c9 SHA512 8d545d17e6bf4180755708e47607c855b99f6ea4183a33930b7d05974d2151c90873f1e2064b806059a26caba6942502d9954fce697bf000995d539c2208811c

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 00000000000..3ef070097fe
--- /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
+}

diff --git a/net-misc/cni-plugins/files/cni-dhcp.initd b/net-misc/cni-plugins/files/cni-dhcp.initd
new file mode 100644
index 00000000000..26b838c516b
--- /dev/null
+++ b/net-misc/cni-plugins/files/cni-dhcp.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+
+name="CNI-DHCP"
+description="virtual dhcp server for containers"
+command="/opt/cni/bin/dhcp"
+command_args="daemon"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+	need net
+}
+
+stop_post() {
+	if [ -e /run/cni/dhcp.sock ]; then
+		ebegin "Cleaning socket for ${name}"
+		rm -f /run/cni/dhcp.sock
+		eend $? "Failed to cleanup socket"
+	fi
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-16 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-16 23:28 [gentoo-commits] repo/gentoo:master commit in: net-misc/cni-plugins/files/, net-misc/cni-plugins/ William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox