[arch-commits] Commit in cni-plugins/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Tue Dec 22 23:43:21 UTC 2020
Date: Tuesday, December 22, 2020 @ 23:43:21
Author: foxboron
Revision: 783120
upgpkg: cni-plugins 0.9.0-4 - Rework symlinking
Modified:
cni-plugins/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-22 23:17:15 UTC (rev 783119)
+++ PKGBUILD 2020-12-22 23:43:21 UTC (rev 783120)
@@ -4,7 +4,7 @@
pkgname=cni-plugins
pkgver=0.9.0
-pkgrel=3
+pkgrel=4
pkgdesc='Some standard networking plugins, maintained by the CNI team'
arch=(x86_64)
url="https://github.com/containernetworking/plugins"
@@ -31,6 +31,14 @@
install -vDm 755 bin/* -t "$pkgdir/usr/lib/cni/"
install -vdm 755 "${pkgdir}/etc/cni/net.d/"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
- install -dm755 "$pkgdir/opt/cni"
- ln -s /usr/lib/cni "$pkgdir/opt/cni/bin"
+ install -dm755 "$pkgdir/opt/cni/bin"
+
+ # Some CNI stuff would build their binaries into /usr/lib/cni with the
+ # old approach. This is unfortunate so we'll just symlink each binary
+ # instead.
+ for bin in bandwidth bridge dhcp firewall flannel host-device \
+ host-local ipvlan loopback macvlan portmap ptp sbr \
+ static tuning vlan vrf; do
+ ln -s "/usr/lib/cni/$bin" "$pkgdir/opt/cni/bin/$bin"
+ done
}
More information about the arch-commits
mailing list