[arch-commits] Commit in cni-plugins/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Thu Feb 24 11:28:23 UTC 2022


    Date: Thursday, February 24, 2022 @ 11:28:22
  Author: dvzrv
Revision: 1136396

archrelease: copy trunk to community-x86_64

Added:
  cni-plugins/repos/community-x86_64/PKGBUILD
    (from rev 1136395, cni-plugins/trunk/PKGBUILD)
Deleted:
  cni-plugins/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   82 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 41 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-24 11:28:16 UTC (rev 1136395)
+++ PKGBUILD	2022-02-24 11:28:22 UTC (rev 1136396)
@@ -1,41 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-
-pkgname=cni-plugins
-pkgver=1.0.1
-pkgrel=2
-pkgdesc='Some standard networking plugins, maintained by the CNI team'
-arch=(x86_64)
-url="https://github.com/containernetworking/plugins"
-license=(Apache)
-depends=(glibc)
-makedepends=(go)
-provides=(container-network-stack)
-# unable to build with LTO: https://github.com/containernetworking/plugins/issues/706
-options=(!lto)
-source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
-sha512sums=('01edfb3d3c9cf34da7c97a255c9396d49b2b73a11352526d4dd7dfaa0b63e93b09261aa5f68a36f3dcf3d31c0ffd48070717abcd8a65ddb563e3402350f20352')
-b2sums=('b77a4612c5ec4dbd18a63dda33cc7d826a302c1f354c56253c768f36ea102fc5a53d15a85ac98d7249a1e03152f400c68c7479700f02476bd55876b5b00f7616')
-
-build() {
-  cd plugins-$pkgver
-  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  ./build_linux.sh
-}
-
-package() {
-  cd plugins-$pkgver
-  install -vDm755 bin/* -t "$pkgdir/usr/lib/cni/"
-  # some applications would build their own versions of CNI plugins in
-  # /opt/cni/bin if they are not found (as non-symlink files), so we have to
-  # install them twice... ;_;
-  install -vDm755 bin/* -t "$pkgdir/opt/cni/bin/"
-  install -vdm755 "$pkgdir/etc/cni/net.d/"
-  install -vDm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-  install -vDm644 plugins/ipam/dhcp/systemd/* -t "$pkgdir/usr/lib/systemd/system/"
-}

Copied: cni-plugins/repos/community-x86_64/PKGBUILD (from rev 1136395, cni-plugins/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-24 11:28:22 UTC (rev 1136396)
@@ -0,0 +1,41 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=cni-plugins
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='Some standard networking plugins, maintained by the CNI team'
+arch=(x86_64)
+url="https://github.com/containernetworking/plugins"
+license=(Apache)
+depends=(glibc)
+makedepends=(go)
+provides=(container-network-stack)
+# unable to build with LTO: https://github.com/containernetworking/plugins/issues/706
+options=(!lto)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
+sha512sums=('43cfcb0225cbc85cc75205cefac75f852fccce1a71b0384fe1f989e64c37508fc3b87cbc05c6dac679aea8950c3cd4d328a616fa79b52474561c624164da0206')
+b2sums=('852397c56bcb71a228f0d8b513a0ddd061de1d9b158e3afe53701bd66c0eb0e7bb9d9e6e590dd446e7ea0428f47e6a4f62a430b68a7abc9a7b49f38b32a440ca')
+
+build() {
+  cd plugins-$pkgver
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  ./build_linux.sh
+}
+
+package() {
+  cd plugins-$pkgver
+  install -vDm755 bin/* -t "$pkgdir/usr/lib/cni/"
+  # some applications would build their own versions of CNI plugins in
+  # /opt/cni/bin if they are not found (as non-symlink files), so we have to
+  # install them twice... ;_;
+  install -vDm755 bin/* -t "$pkgdir/opt/cni/bin/"
+  install -vdm755 "$pkgdir/etc/cni/net.d/"
+  install -vDm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm644 plugins/ipam/dhcp/systemd/* -t "$pkgdir/usr/lib/systemd/system/"
+}



More information about the arch-commits mailing list