Add initial Gentooo packaging

This commit is contained in:
2024-06-02 12:20:01 -04:00
parent 7d7cbf4221
commit 320c6ecc73
3 changed files with 26 additions and 1 deletions

22
gentoo/files/pgmon.openrc Normal file
View File

@@ -0,0 +1,22 @@
#!/sbin/openrc-run
extra_started_commands="reload"
agent_name=${RC_SERVICE#pgmon.}
agent_name=${agent_name:-pgmon}
command="/usr/local/bin/pgmon"
command_args="--server --config /etc/pgmon/${agent_name}.cfg"
command_user="zabbix:zabbix"
pidfile="/run/pgmon/${agent_name}.pid"
start_pre() {
checkpath -d "/run/pgmon"
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}

25
gentoo/pgmon-0.0.1.ebuild Normal file
View File

@@ -0,0 +1,25 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{6..11} )
inherit git-r3 python-r1
DESCRIPTION="PostgreSQL monitoring bridge"
HOMEPAGE="None"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64"
EGIT_REPO_URL="https://code2.shh-dot-com.org/pgmon.git"
#EGIT_COMMIT=""
DEPEND="
${PYTHON_DEPS}
dev-python/psycopg:2
"
RDEPEND="${DEPEND}"
BDEPEND=""