mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
34 lines
808 B
Bash
34 lines
808 B
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="PostgreSQL loadable plugin for Zabbix Agent 2."
|
|
HOMEPAGE="https://git.zabbix.com/projects/AP/repos/postgresql/browse"
|
|
SRC_URI="
|
|
https://git.zabbix.com/rest/api/latest/projects/AP/repos/postgresql/archive?at=refs%2Ftags%2F${PV}&format=tgz
|
|
-> ${P}.tar.gz
|
|
https://vimja.cloud/public.php/dav/files/RdwWDqx5JQ9G6wt -> ${P}-vendor.tar.xz
|
|
"
|
|
|
|
inherit go-module
|
|
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="AGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
DEPEND="~net-analyzer/zabbix-${PV}[agent2]"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
DOCS=( "README.md" )
|
|
|
|
src_install() {
|
|
exeinto "/usr/libexec/zabbix-agent2-plugin"
|
|
doexe zabbix-agent2-plugin-postgresql
|
|
|
|
insinto /etc/zabbix/zabbix_agent2.d/plugins.d/
|
|
doins postgresql.conf
|
|
}
|