blob: df01cb80bfccb0826c758a81a0494bd5049fb4cf [file] [log] [blame]
#
# Copyright 2021 Google LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
EAPI=7
DESCRIPTION="Plugins required for networking in Kubernetes"
HOMEPAGE="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/"
SRC_URI="gs://chromeos-localmirror-private/distfiles/cni-plugins-linux-${ARCH}-v0.8.7-gke.0.tgz"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RESTRICT="mirror"
# Default S=${WORKDIR}/${PV} but tarball does not store the binaries in a ${PV} folder.
S="${WORKDIR}"
src_install() {
into /opt/cni
dobin *
insinto /etc/default/
doins ${FILESDIR}/k8s_cni.conf
}