diff --git a/dev-db/pgmon/Manifest b/dev-db/pgmon/Manifest index 5b7fcee..8333043 100644 --- a/dev-db/pgmon/Manifest +++ b/dev-db/pgmon/Manifest @@ -4,3 +4,4 @@ AUX pgmon.openrc 829 SHA256 bbfd3ec3834e0f04539696715c6529099a4329d7dbce8fe04597 AUX pgmon_userparameter.conf 90 SHA256 72ac9abc29908206a57b084f029fce6d662633cac5988c1d79a8628687b7a912 SHA512 1dcf74ebca08ddc077ee35212cdc084a14faa717433f9fb5e2a994863cbf6d9ca7be81f8533df9d1afdcea46b7b0afb3c1182f059774fb5704ccebaae446c24b WHIRLPOOL 8d6dc97519d9c62419a65e201e012d823076156b972ed3da193d6d5e5d01e1a2adb8c60910dd954c096fadc5d772707974467270707ceb70aac80eef3723eb90 EBUILD pgmon-0.0.1.ebuild 1493 SHA256 0f8623c016ea2b15a3343cf83abf022e17652b3bbab78b200afff7857fc3f12e SHA512 ce2f13e66b960481ede10542788129fadc46de3d95d19ff1e4317c381624fcca35d00be8c11d74b55274f86b618754bcff71ae10aecdb39133ef0111bb3aa2cd WHIRLPOOL 5c38382e171d20d84fba360e39b7854e32c5d108564695ce25f537a55702eeff3f5df169b8ffc501f27e82f1c49dfa7328c96bcd93d0a9ddca9110de4b044bd9 EBUILD pgmon-0.0.2.ebuild 1499 SHA256 4753b7c82f12814843c795110347b74a16e1c9abafd3590be4dad954ad65110e SHA512 25a8309c33d819a099fcbfdc4c6428497f40658dee2db053caaeb437715fd6680df4ac0c0f36b079b69db8561bf8870e28a67e3ecc660fc7abbe547a61b84003 WHIRLPOOL b4069127dd8a303c2926fbeb7fa8f3c1689d03012c1ac3bdbaa7faa1fb76282e9f0115741f2b1cc15d82ff4452188dbac835c202082907ab5712881afe2689e9 +EBUILD pgmon-1.0.0.ebuild 1279 SHA256 b4f3c70cb3b88d4ee73406fdf73ebe7522633e55985a226aadfe051bfcfd08dd SHA512 ba6c6fab5cfb01b3534115e2f9dc5c07b97e171e5b804e51bfad7ac02e1ccdcf141518bdb7f24adcf15812d68588a643fa8c3a43b63c32d32f66dda1e2f09211 WHIRLPOOL eef3d197ccbc9795adab434bc1d04b9dd85324b4b69f754d29640add81a19a73946329daae64c935cc1f06e3d36cfcb38e6cd60b1e653ad0fd0cce3ae08a2b57 diff --git a/dev-db/pgmon/pgmon-1.0.0.ebuild b/dev-db/pgmon/pgmon-1.0.0.ebuild new file mode 100644 index 0000000..7957055 --- /dev/null +++ b/dev-db/pgmon/pgmon-1.0.0.ebuild @@ -0,0 +1,63 @@ +# 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="https://code2.shh-dot-com.org/james/pgmon" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64" + +#SRC_URI="https://code2.shh-dot-com.org/james/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +DEPEND=" + ${PYTHON_DEPS} + dev-python/psycopg:2 + dev-python/pyyaml + app-admin/logrotate + " +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${PN}" + +pkg_nofetch() { + einfo "Please download" + einfo " - ${P}.tar.bz2" + einfo "from ${HOMEPAGE} and place it in your DISTDIR directory." + einfo "The file should be owned by portage:portage" +} + +src_install() { + default + + # Install init script + newinitd "openrc/pgmon.initd" pgmon + newconfd "openrc/pgmon.confd" pgmon + + # Install systemd unit + systemd_dounit "systemd/pgmon.service" + + # Install script + exeinto /usr/bin + newexe "pgmon.py" pgmon + + # Install default config + diropts -o root -g root -m 0755 + insinto /etc/pgmon + doins "sample-config/pgmon.yml" + doins "sample-config/pgmon-metrics.yml" + + # Install logrotate config + insinto /etc/logrotate.d + newins "logrotate/pgmon.logrotate" pgmon + + # Install man page + doman manpages/pgmon.1 +}