41 lines
867 B
RPMSpec
41 lines
867 B
RPMSpec
|
|
Name: pgmon
|
||
|
|
Version: 1.0
|
||
|
|
Release: 1%{?dist}
|
||
|
|
Summary: A bridge to sit between monitoring tools and PostgreSQL
|
||
|
|
|
||
|
|
License: MIT
|
||
|
|
URL: https://www.commandprompt.com
|
||
|
|
|
||
|
|
BuildArch: noarch
|
||
|
|
Requires: logrotate, python, python-psycopg2, PyYAML, systemd
|
||
|
|
|
||
|
|
%description
|
||
|
|
A bridge to sit between monitoring tools and PostgreSQL
|
||
|
|
|
||
|
|
%prep
|
||
|
|
# Do nothing since we don't need a tarball
|
||
|
|
|
||
|
|
%build
|
||
|
|
# Do nothing since we have nothing to build
|
||
|
|
|
||
|
|
%install
|
||
|
|
make -C /src install DESTDIR=%{buildroot}
|
||
|
|
|
||
|
|
%files
|
||
|
|
/etc/logrotate.d/pgmon
|
||
|
|
/etc/pgmon/pgmon.yml
|
||
|
|
/etc/pgmon/pgmon-metrics.yml
|
||
|
|
/etc/pgmon/pgmon-service.conf
|
||
|
|
/lib/systemd/system/pgmon.service
|
||
|
|
/lib/systemd/system/pgmon@.service
|
||
|
|
/usr/local/bin/pgmon
|
||
|
|
/usr/share/man/man1/pgmon.1.gz
|
||
|
|
|
||
|
|
%post
|
||
|
|
mkdir -p -m 0755 /var/log/pgmon
|
||
|
|
chown root:root /var/log/pgmon
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Wed Jan 08 2025 James Campbell <james@commandprompt.com> - 1.0-1
|
||
|
|
- Initial RPM release.
|