pgmon/RPM/pgmon.spec

41 lines
877 B
RPMSpec
Raw Normal View History

2025-01-08 23:34:51 +00:00
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
2025-01-10 05:40:41 +00:00
BuildArch: noarch
2025-01-14 06:54:35 +00:00
Requires: logrotate, python3, python3-psycopg2, python3-pyyaml, systemd
2025-01-08 23:34:51 +00:00
%description
A bridge to sit between monitoring tools and PostgreSQL
%prep
2025-01-09 01:58:52 +00:00
# Do nothing since we don't need a tarball
2025-01-08 23:34:51 +00:00
%build
2025-01-09 01:58:52 +00:00
# Do nothing since we have nothing to build
2025-01-08 23:34:51 +00:00
%install
make -C /src install DESTDIR=%{buildroot}
%files
2025-01-15 06:34:04 +00:00
/etc/logrotate.d/pgmon
2025-01-08 23:34:51 +00:00
/etc/pgmon/pgmon.yml
/etc/pgmon/pgmon-metrics.yml
/etc/pgmon/pgmon-service.conf
2025-01-08 23:34:51 +00:00
/lib/systemd/system/pgmon.service
/lib/systemd/system/pgmon@.service
2025-01-15 06:34:04 +00:00
/usr/local/bin/pgmon
/usr/share/man/man1/pgmon.1.gz
2025-01-08 23:34:51 +00:00
%post
mkdir -p -m 0755 /var/log/pgmon
chown root:root /var/log/pgmon
2025-01-08 23:34:51 +00:00
%changelog
* Wed Jan 08 2025 James Campbell <james@commandprompt.com> - 1.0-1
- Initial RPM release.