fix(kubernetes): path to compiled bin based an arch

This commit is contained in:
Markus Pesch 2022-04-26 16:30:11 +02:00
parent 29852f3df4
commit e711f9a1be
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -120,7 +120,7 @@ package_kubeadm() {
depends=(glibc crictl)
install=$pkgname.install
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# service override for kubelet.service
@ -135,7 +135,7 @@ package_kubectl() {
depends=(glibc)
groups=(kubernetes-tools)
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1"
# shell completion
@ -156,7 +156,7 @@ package_kubelet() {
backup=(etc/$pkgbase/$pkgname.env)
install=$pkgname.install
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# config
@ -177,7 +177,7 @@ package_kube-apiserver() {
groups=(kubernetes-control-plane)
backup=(etc/$pkgbase/$pkgname.env)
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# config
@ -192,7 +192,7 @@ package_kube-controller-manager() {
groups=(kubernetes-control-plane)
backup=(etc/$pkgbase/$pkgname.env)
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# config
@ -207,7 +207,7 @@ package_kube-proxy() {
groups=(kubernetes-control-plane kubernetes-node)
backup=(etc/$pkgbase/$pkgname.env)
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin/"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin/"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# config
@ -224,7 +224,7 @@ package_kube-scheduler() {
groups=(kubernetes-control-plane)
backup=(etc/$pkgbase/$pkgname.env)
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/amd64/$pkgname -t "$pkgdir/usr/bin"
install -vDm 755 $pkgbase-$pkgver/_output/local/bin/linux/${GOARCH}/$pkgname -t "$pkgdir/usr/bin"
# man pages
install -vDm 644 $pkgbase-$pkgver/docs/man/man1/$pkgname* -t "$pkgdir/usr/share/man/man1/"
# config