Restructure for packaging

This commit is contained in:
2025-01-08 18:34:51 -05:00
parent 2ad9158cfe
commit a21a4355e5
12 changed files with 147 additions and 0 deletions

32
RPM/pgmon.spec Normal file
View File

@@ -0,0 +1,32 @@
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
Source0: %{name}-%{version}.tar.gz
Requires: python3, python3-psycopg2, systemd
%description
A bridge to sit between monitoring tools and PostgreSQL
%prep
%build
%install
make -C /src install DESTDIR=%{buildroot}
%files
/usr/local/bin/pgmon
/usr/share/man/man1/pgmon.1.gz
/etc/pgmon/pgmon.yml
/etc/pgmon/pgmon-metrics.yml
/lib/systemd/system/pgmon.service
/lib/systemd/system/pgmon@.service
%changelog
* Wed Jan 08 2025 James Campbell <james@commandprompt.com> - 1.0-1
- Initial RPM release.