mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
pkgname=netdata-go-plugins
|
|
pkgver=0.51.2
|
|
pkgrel=0
|
|
pkgdesc="netdata go.d.plugin"
|
|
url="https://github.com/netdata/go.d.plugin"
|
|
arch="all !x86 !armv7 !armhf" # checks fail
|
|
license="GPL-3.0-or-later"
|
|
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 GOFLAGS="$GOFLAGS -modcacherw"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
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="
|
|
96938fb578b61de02c29580c5323d0dd15fdae2fe7103f780aa7a3dd04785a7e67d286b6496f689aa7aa9422b1b956aeee0a8a5257ea20d1405b7052504ca6a8 netdata-go-plugins-0.51.2.tar.gz
|
|
"
|