# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{6..13} ) inherit git-r3 python-r1 DESCRIPTION="PostgreSQL monitoring bridge" HOMEPAGE="None" LICENSE="BSD" SLOT="0" KEYWORDS="amd64" EGIT_REPO_URI="https://code2.shh-dot-com.org/james/pgmon.git" EGIT_COMMIT="v1.0.0" DEPEND=" ${PYTHON_DEPS} dev-python/psycopg:2 dev-python/pyyaml app-admin/logrotate " RDEPEND="${DEPEND}" BDEPEND="" src_install() { default # Install init script newinitd "${FILESDIR}/pgmon.openrc" pgmon # Install script exeinto /usr/bin newexe "${S}/pgmon.py" pgmon # Install default config diropts -o root -g root -m 0755 insinto /etc/pgmon doins "${FILESDIR}/pgmon.yml" doins "${S}/pgmon-metrics.yml" # Install logrotate config insinto /etc/logrotate.d newins "${FILESDIR}/pgmon.logrotate" pgmon }