fix: add spec file
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
This commit is contained in:
37
netoik-db.spec
Normal file
37
netoik-db.spec
Normal file
@@ -0,0 +1,37 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: %(make name)
|
||||
Version: %(make version)
|
||||
Release: %(make release)
|
||||
Summary: Netoik Reverse Proxy
|
||||
License: MIT
|
||||
URL: https://git.netoik.io/samuel/netoik-rp
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Buildarch: %(make build_arch)
|
||||
BuildRequires: make
|
||||
Requires: postgresql-server postgresql
|
||||
|
||||
%description
|
||||
Install the database management system called postgresql with a predefined configuration and unix-base authentications.
|
||||
|
||||
%prep
|
||||
%autosetup -v
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%post
|
||||
# Restart services
|
||||
systemctl daemon-reload
|
||||
systemctl reenable --now postgresql.service
|
||||
|
||||
%files
|
||||
%attr(755, root, root) %{_sysconfdir}/postgres
|
||||
%attr(644, root, root) %{_sysconfdir}/postgres/postgresql.conf
|
||||
%attr(644, root, root) %{_sysconfdir}/postgres/pg_hba.conf
|
||||
%attr(644, root, root) %{_unitdir}/postgresql.service.d/postgres.conf
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
Reference in New Issue
Block a user