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

David Runge dvzrv at gemini.archlinux.org
Fri May 6 17:30:04 UTC 2022


    Date: Friday, May 6, 2022 @ 17:30:04
  Author: dvzrv
Revision: 1196020

archrelease: copy trunk to community-x86_64

Added:
  cni-plugins/repos/community-x86_64/PKGBUILD
    (from rev 1196019, 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-05-06 17:29:28 UTC (rev 1196019)
+++ PKGBUILD	2022-05-06 17:30:04 UTC (rev 1196020)
@@ -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.1.1
-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=('03da31caee5f9595abf65d4a551984b995bc18c5e97409549f08997c5a6a2b41a8950144f8a5b4f810cb401ddbe312232d2be76ec977acf8108eb490786b1817')
-b2sums=('2fd70260995e423d2b4ac3a8d2135074baffe5d36177d5e1e5a9ce146f6d2ecfeb3b843de62e43f863085ff965be4160cf5f4cae892d3c59070ef390409ef3c9')
-
-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 1196019, cni-plugins/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-06 17:30:04 UTC (rev 1196020)
@@ -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.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=1)
+# 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=('03da31caee5f9595abf65d4a551984b995bc18c5e97409549f08997c5a6a2b41a8950144f8a5b4f810cb401ddbe312232d2be76ec977acf8108eb490786b1817')
+b2sums=('2fd70260995e423d2b4ac3a8d2135074baffe5d36177d5e1e5a9ce146f6d2ecfeb3b843de62e43f863085ff965be4160cf5f4cae892d3c59070ef390409ef3c9')
+
+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