testing/zabbix-agent2-plugin-postgresql: strip bin and nodebug

install correct file
This commit is contained in:
Leonardo Arena 2024-02-22 15:48:07 +00:00
parent 356a32c1b6
commit 2d4de76e61

View File

@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=zabbix-agent2-plugin-postgresql
pkgver=6.0.22
pkgrel=0
pkgrel=1
pkgdesc="Zabbix Agent 2 PostgreSQL loadable plugin"
url="https://git.zabbix.com/projects/AP/repos/postgresql/browse"
arch="all"
@ -17,13 +17,14 @@ export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
export CGO_LDFLAGS="$LDFLAGS -s -w"
make
}
package() {
install -D -m644 postgresql.conf \
"$pkgdir"/etc/zabbix/zabbix_agent2.d/plugins.d/postgresql.conf
install -D -m755 plugin/postgresql.go \
install -D -m755 zabbix-agent2-plugin-postgresql \
"$pkgdir"/usr/libexec/zabbix-agent2/postgresql
}