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:
@@ -17,4 +17,4 @@ jobs:
|
|||||||
- name: Build tarball
|
- name: Build tarball
|
||||||
run: make tarball
|
run: make tarball
|
||||||
- name: Build rpm file
|
- name: Build rpm file
|
||||||
run: rpmbuild -ba netoik-rp.spec
|
run: rpmbuild -ba %(make name).spec
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -30,8 +30,9 @@ build_arch:
|
|||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
install --directory $(DESTDIR)$(RPM_SYSCONFDIR)/postgres
|
install --directory $(DESTDIR)$(RPM_SYSCONFDIR)/postgres $(DESTDIR)$(RPM_UNITDIR)/postgresql.service.d
|
||||||
install --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/postgres files/postgres/postgresql.conf files/nginx/default.conf
|
install --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/postgres files/postgres/postgresql.conf files/nginx/default.conf
|
||||||
|
install --target-directory=$(DESTDIR)$(RPM_UNITDIR)/postgresql.service.d filrs/systemd/postgres.conf
|
||||||
|
|
||||||
$(RPM_TARBALL_PATH): *
|
$(RPM_TARBALL_PATH): *
|
||||||
git archive --format=tar.gz \
|
git archive --format=tar.gz \
|
||||||
|
|||||||
2
files/systemd/postgres.conf
Normal file
2
files/systemd/postgres.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/postgres -D ${PGDATA} -c config_file=/etc/postgres/postgresql.conf
|
||||||
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