diff --git a/testing/zabbix-agent2-plugin-postgresql/APKBUILD b/testing/zabbix-agent2-plugin-postgresql/APKBUILD index 643f3ff4af9..2fdeb5e0323 100755 --- a/testing/zabbix-agent2-plugin-postgresql/APKBUILD +++ b/testing/zabbix-agent2-plugin-postgresql/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena 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 }