mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
pkgname=netdata-go-plugins
|
|
pkgver=0.32.1
|
|
pkgrel=1
|
|
pkgdesc="netdata go.d.plugin"
|
|
url="https://github.com/netdata/go.d.plugin"
|
|
arch="all !x86 !armv7 !armhf" # checks fail
|
|
license="GPL-3.0-only"
|
|
depends="netdata"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/netdata/go.d.plugin/tar.gz/refs/tags/v$pkgver"
|
|
builddir="$srcdir/go.d.plugin-$pkgver"
|
|
|
|
export GOMODCACHE="$srcdir/go"
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
|
|
build() {
|
|
go build -v -o go.d.plugin ./cmd/godplugin
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir/usr/lib/netdata/conf.d"
|
|
cp -r "$builddir/config/go.d.conf" "$builddir/config/go.d" "$pkgdir/usr/lib/netdata/conf.d/"
|
|
|
|
mkdir -p "$pkgdir/usr/libexec/netdata/plugins.d/"
|
|
install -D -m755 -t "$pkgdir/usr/libexec/netdata/plugins.d" "$builddir/go.d.plugin"
|
|
}
|
|
|
|
sha512sums="
|
|
54cb164b9eb8c2446c5da673e11236c5615384d4a3d4b2df8195b6bbadb2e413bc5e0317b1809ad58ffd86d19800a252fad0c218e4d48a93cf6d5ed419c7bd72 netdata-go-plugins-0.32.1.tar.gz
|
|
"
|