Add missing dependencies
This commit is contained in:
parent
7b58b4a3ed
commit
e0a98b668e
@ -3,7 +3,7 @@ Version: 1.0
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: python3 (>= 3.6), python3-psycopg2, systemd
|
||||
Depends: logrotate, python3 (>= 3.6), python3-psycopg2, python3-yaml, systemd
|
||||
Maintainer: James Campbell <james@commandprompt.com>
|
||||
Homepage: https://www.commandprompt.com
|
||||
Description: A bridge to sit between monitoring tools and PostgreSQL
|
||||
|
||||
12
Makefile
12
Makefile
@ -5,6 +5,7 @@ BUILD_DIR := build
|
||||
|
||||
DEB_IMAGE := debian-package-builder
|
||||
RPM_IMAGE := rpm-package-builder
|
||||
EL7_IMAGE := el7-package-builder
|
||||
|
||||
SCRIPT := src/$(PACKAGE_NAME).py
|
||||
|
||||
@ -126,8 +127,11 @@ package-rpm:
|
||||
|
||||
docker: deb-package-image rpm-package-image
|
||||
|
||||
deb-package-image: Dockerfile.deb
|
||||
docker build -t $(DEB_IMAGE) -f Dockerfile.deb .
|
||||
deb-package-image: Dockerfile-deb
|
||||
docker build -t $(DEB_IMAGE) -f Dockerfile-deb .
|
||||
|
||||
rpm-package-image: Dockerfile.rpm
|
||||
docker build -t $(RPM_IMAGE) -f Dockerfile.rpm .
|
||||
rpm-package-image: Dockerfile-rpm
|
||||
docker build -t $(RPM_IMAGE) -f Dockerfile-rpm .
|
||||
|
||||
el7-package-image: Dockerfile-el7
|
||||
docker build -t $(EL7_IMAGE) -f Dockerfile-el7 .
|
||||
|
||||
@ -7,7 +7,7 @@ License: MIT
|
||||
URL: https://www.commandprompt.com
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: python3, python3-psycopg2, systemd
|
||||
Requires: logrotate, python3, python3-psycopg2, python3-pyyaml, systemd
|
||||
|
||||
%description
|
||||
A bridge to sit between monitoring tools and PostgreSQL
|
||||
|
||||
48
gentoo/pgmon-1.0.0.ebuild
Normal file
48
gentoo/pgmon-1.0.0.ebuild
Normal file
@ -0,0 +1,48 @@
|
||||
# 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=""
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user