mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
Fail build on x86: github.com/safchain/ethtool/ethtool.go:205:35: undefined: syscall.SYS_SOCKET Applied patch as described here: https://github.com/safchain/ethtool/pull/16
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=cni-plugins
|
|
pkgver=0.8.0
|
|
pkgrel=0
|
|
pkgdesc="Some standard networking plugins, maintained by the CNI team"
|
|
url="https://github.com/containernetworking/cni"
|
|
arch="all"
|
|
license="Apache"
|
|
makedepends="go bash linux-headers"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/containernetworking/plugins/archive/v${pkgver}.tar.gz
|
|
ethtool-x86-go.patch"
|
|
builddir="$srcdir/plugins-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
bash ./build_linux.sh
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
mkdir -p "${pkgdir}/usr/share/${pkgname}/"
|
|
cp -ar bin "${pkgdir}/usr/share/${pkgname}/"
|
|
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
sha512sums="de685a66e0e875e8a2209b76c5d1f5fd0e426804e3db6084cf2e89695a8b1876eae47ff1fcfdf065a3b027918fe7c4775d2321358402dbd1206928538edb52b4 cni-plugins-0.8.0.tar.gz
|
|
f247f36d1c0ef6d5022f217dd6a6cc09c92211fe060077d8dc7df4a391b7db13a73cd4edb039c9539f735d6d9c4cde93ee8592d566efa4a3ed216bdbabfd96a1 ethtool-x86-go.patch"
|