mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 07:11:47 +01:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
pkgname=netdata-go-plugins
|
|
pkgver=0.57.0
|
|
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="
|
|
fdfbb3607626ec9ca2b938595742815eabf2f2368b0f0f6eed174ed0e90f72007d5f372be50b3a15eb72d88f8ed755758d4e9f855707ea5aa1be73908ddc2eaa netdata-go-plugins-0.57.0.tar.gz
|
|
"
|