diff options
-rw-r--r-- | .NVCHECKER | 7 | ||||
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 47 insertions, 23 deletions
diff --git a/.NVCHECKER b/.NVCHECKER new file mode 100644 index 000000000000..7ccd14da3325 --- /dev/null +++ b/.NVCHECKER @@ -0,0 +1,7 @@ +[cni-plugins] +source = "github" +github = "containernetworking/plugins" +prefix = "v" +use_max_tag = true +exclude_regex = ".(release|weekly|rc|alpha|beta)." + @@ -1,14 +1,17 @@ pkgbase = cni-plugins-bin - pkgdesc = Some CNI network plugins, maintained by the containernetworking team - pkgver = 0.8.7 + pkgdesc = Container Networking Interface (CNI) Plugins + pkgver = 1.0.1 pkgrel = 1 - url = https://github.com/containernetworking/plugins + url = https://www.cni.dev/ arch = x86_64 arch = aarch64 arch = armv7h + arch = armv7l license = Apache - source = https://github.com/containernetworking/plugins/releases/download/v0.8.7/cni-plugins-linux-amd64-v0.8.7.tgz - sha256sums = 977824932d5667c7a37aa6a3cbba40100a6873e7bd97e83e8be837e3e7afd0a8 + provides = cni=1.0.1 + conflicts = cni + conflicts = cni-plugins + source = cni-plugins-bin-1.0.1::https://github.com/containernetworking/plugins/releases/download/v1.0.1/cni-plugins-linux-amd64-v1.0.1.tgz + sha256sums = 5238fbb2767cbf6aae736ad97a7aa29167525dcd405196dfbc064672a730d3cf pkgname = cni-plugins-bin - @@ -1,26 +1,40 @@ -# Maintainer: ProFfeSsoRr <evvsoft at gmail dot com> - +# Maintainer: GeorgeRaven <GeorgeRavenCommunity at pm dot me> +# Contributor: ProFfeSsoRr <evvsoft at gmail dot com> pkgname=cni-plugins-bin -pkgver=0.8.7 +pkgdesc="Container Networking Interface (CNI) Plugins" +pkgver=1.0.1 pkgrel=1 -pkgdesc="Some CNI network plugins, maintained by the containernetworking team" -arch=('x86_64' 'aarch64' 'armv7h') -url="https://github.com/containernetworking/plugins" +arch=('x86_64' 'aarch64' 'armv7h' 'armv7l') +url="https://www.cni.dev/" license=('Apache') +conflicts=('cni' 'cni-plugins') +provides=("cni=${pkgver}") +source=() +sha256sums=() -case "${CARCH}" in - x86_64) _CARCH=amd64 && sha256sums=('7da624010bd2b9fcf47bc30076861166f31ab5936f3b36f199714c7d276a0d12');; - aarch64) _CARCH=arm64 && sha256sums=('ae13d7b5c05bd180ea9b5b68f44bdaa7bfb41034a2ef1d68fd8e1259797d642f');; - armv7h) _CARCH=arm && sha256sums=('5757778f4c322ffd93d7586c60037b81a2eb79271af6f4edf9ff62b4f7868ed9');; +case "$CARCH" in + arm*) _pkgarch="arm" + sha256sums+=('d35e3e9fd71687fc7e165f7dc7b1e35654b8012995bbfd937946b0681926d62d') + ;; + aarch64) _pkgarch="arm64" + sha256sums+=('2d4528c45bdd0a8875f849a75082bc4eafe95cb61f9bcc10a6db38a031f67226') + ;; + x86_64) _pkgarch="amd64" + sha256sums+=('5238fbb2767cbf6aae736ad97a7aa29167525dcd405196dfbc064672a730d3cf') + ;; esac -source=("https://github.com/containernetworking/plugins/releases/download/v${pkgver}/cni-plugins-linux-${_CARCH}-v${pkgver}.tgz") +source+=(${pkgname}-${pkgver}::"https://github.com/containernetworking/plugins/releases/download/v${pkgver}/cni-plugins-linux-${_pkgarch}-v${pkgver}.tgz") package() { - cd "$srcdir" - mkdir -p "$pkgdir"/opt/cni/bin - install -Dm755 * "$pkgdir"/opt/cni/bin - rm "$pkgdir"/opt/cni/bin/cni-plugins-linux-${_CARCH}-v${pkgver}.tgz + cd "${srcdir}" + # get rid of unwanted link + unlink "${pkgname}-${pkgver}" + # install to default location + mkdir -p "${pkgdir}/opt/cni/bin" "${pkgdir}/usr/lib/cni" + install -Dm755 "${srcdir}/"* "${pkgdir}/opt/cni/bin/." + # also deposit bins in alternate possible location + install -Dm755 "${srcdir}/"* "${pkgdir}/usr/lib/cni" + # please ensure kubelet args point to one of these two directories preferably the first + # I.E the file `/etc/kubernetes/kubelet.env` should contain something like: KUBELET_ARGS=--cni-bin-dir=/opt/cni/bin } - -sha256sums=('977824932d5667c7a37aa6a3cbba40100a6873e7bd97e83e8be837e3e7afd0a8') |