powa-archivist-5.2.0gentoo
download
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="REL_${PV//./_}"
POSTGRES_COMPAT=( 14 15 16 17 18 )
POSTGRES_USEDEP="server(+)"
inherit optfeature postgres-multi
DESCRIPTION="PostgreSQL Workload Analyzer Archivist"
HOMEPAGE="https://github.com/powa-team/powa-archivist"
SRC_URI="https://github.com/powa-team/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="POSTGRESQL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
REQUIRED_USE="${POSTGRES_REQ_USE}"
RDEPEND="${POSTGRES_DEP}"
DEPEND="${RDEPEND}"
RESTRICT="test"
src_install() {
einstalldocs
postgres-multi_src_install
}
pkg_postinst() {
optfeature "suggesting new hypothetical indexes." dev-db/hypopg
optfeature "keeping statistics on predicates." dev-db/pg_qualstats
optfeature "gathering statistics on system metrics." dev-db/pg_stat_kcache
optfeature "keeping track of configuration changes." dev-db/pg_track_settings
optfeature "sampling wait_events of all queries executed." dev-db/pg_wait_sampling
}