Add pgmon-1.0.3

This commit is contained in:
James Campbell 2025-06-03 02:13:14 -04:00
parent 03f0097d69
commit 8fba9f7380
Signed by: james
GPG Key ID: 2287C33A40DC906A
2 changed files with 75 additions and 2 deletions

View File

@ -1,4 +1,4 @@
DIST pgmon-1.0.0.tar.gz 37417 SHA256 0c49f78684d9ed555217c321bc8008e735da0764217f904be39e58a16885dc75 SHA512 954f1d010326d3161070f7a99caedf0cd6946e944777b461c1401000240493faf7a878a42f9a62fd07e8a47e0382f4f57f00c83e022369982f8443a89b298c5c WHIRLPOOL cd3ddd468323c2b1adc58d24216e54e5fe6ecdc9a345b7c82c9f3a585092ba14dc18dce485700af16915f12ac8e7a0dcf703d8f32b545bb70469c6a013f5c18e
DIST pgmon-1.0.1.tar.bz2 510406 SHA256 5054bcdc95e9dd138bdca897f641b7a613156e616578e22f575160cba8ef1414 SHA512 38ecf378a5a069c758774dc4118b26b3f2eeb1c5a9b58606e75cb56c0ccf54e1a55b76ceafc1adbabc7c06b022b20abdc19a296d03dbee0b3405d3aab3df662a WHIRLPOOL 29290780e6c6f7ce68253752e3c0d8583ff37e79254b35c6481b02c2e91f7e0a5c29464d48182011588eafd9afa1fb51dfac2e35a112ba6c354fdb2f1e8706aa
EBUILD pgmon-1.0.0.ebuild 1428 SHA256 e571e9f50a40ff37bf1c068521b49d39abee84f83f72a2c6ddb920b8b3fa9259 SHA512 6497cd07f912167c9fedf9569c6972651a2fcbedf354b42f3de5eb0a413e58d86c19c22eee80edea171a4cc9497f0f9ded20f7484a912369ac7580dfe2d00727 WHIRLPOOL 54f4e3675eef379e468a3795e4e9fd8e01048b8a5d94c314d5d40ab90a24f52af39734ce0299d7228acf4d91e2caf97e20ae2965424f65073c801e787410aabb
DIST pgmon-1.0.3.tar.bz2 659823 SHA256 5c2d1698e94161a7fd2d5d5f710a3eb0b03cf7ef115b8263f5986271c8728645 SHA512 df95b4e0f7c5249cc73bf185b715818bbc36dc116b1e0a1e7eb598342a2fd445d55aa01a06c5810b3d93d4a07cdd294f4a63167a37152037c0952db38ee4c39d WHIRLPOOL fd26707c9ada51ac18a994c0061a562977f8aa1c7ee1850665e7826b9eea3af6bafcf0cdf80118b73984b84ea438f58fb7d450b10b9b6b697666f3bb88a02f90
EBUILD pgmon-1.0.1.ebuild 1351 SHA256 d780dd77df643688017ef447bafc7d5f2a49ecbbd0aa13b8b8627fbf7599281e SHA512 602f8048cfb3b95a18698c0b8f38eba6ce38503703af3dd28eff0e382218cb2a2dd2609bfebbb001ff3b11eb04610871db20738dd125443602b0a8af396ad2d3 WHIRLPOOL 2c055371615e64b1d94c9a3fdf0a55e6a62b1bf7639c4a3ada5b1dd93a5736926c6f082de4c01711476a7b16f656f0862a2c723fd18170358209ec05da551f26
EBUILD pgmon-1.0.3.ebuild 1351 SHA256 d780dd77df643688017ef447bafc7d5f2a49ecbbd0aa13b8b8627fbf7599281e SHA512 602f8048cfb3b95a18698c0b8f38eba6ce38503703af3dd28eff0e382218cb2a2dd2609bfebbb001ff3b11eb04610871db20738dd125443602b0a8af396ad2d3 WHIRLPOOL 2c055371615e64b1d94c9a3fdf0a55e6a62b1bf7639c4a3ada5b1dd93a5736926c6f082de4c01711476a7b16f656f0862a2c723fd18170358209ec05da551f26

View File

@ -0,0 +1,73 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{6..13} )
inherit python-r1
DESCRIPTION="PostgreSQL monitoring bridge"
HOMEPAGE="None"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64"
SRC_URI="https://code2.shh-dot-com.org/james/${PN}/archive/v${PV}.tar.bz2 -> ${P}.tar.bz2"
IUSE="-systemd"
DEPEND="
${PYTHON_DEPS}
dev-python/psycopg:2
dev-python/pyyaml
app-admin/logrotate
"
RDEPEND="${DEPEND}"
BDEPEND=""
RESTRICT="fetch"
#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_compile() {
true
}
src_install() {
# Install init script
if ! use systemd ; then
newinitd "openrc/pgmon.initd" pgmon
newconfd "openrc/pgmon.confd" pgmon
fi
# Install systemd unit
if use systemd ; then
systemd_dounit "systemd/pgmon.service"
fi
# Install script
exeinto /usr/bin
newexe "src/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
}