Refacto to replace nginx with netoik-rp

This commit is contained in:
2025-12-31 16:27:04 +01:00
parent dac79d5711
commit 4dbfdb8d4e
5 changed files with 36 additions and 14 deletions

View File

@@ -2,8 +2,9 @@ NAME = $(shell basename $(PWD))
VERSION = $(shell git describe | sed 's/-/./g')
BRANCH = $(shell git branch --show-current)
RPM_SOURCEDIR = $(shell rpm --eval '%{_sourcedir}')
RPM_SYSCONFDIR = $(shell rpm --eval '%{_sysconfdir}')
define rpm_eval
shell rpm --eval '%{$(1)}'
endef
.PHONY: name
name:
@@ -25,7 +26,7 @@ tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
.PHONY: install
install:
install --directory $(DESTDIR)$(RPM_SYSCONFDIR)/nginx
install --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/nginx etc/nginx/nginx.conf
install --directory $(DESTDIR)$(RPM_SYSCONFDIR)/certbot
install --target-directory=$(DESTDIR)$(RPM_SYSCONFDIR)/certbot etc/certbot/ovh.ini.tpl
install --directory $(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp
install --target-directory=$(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp/ conf/neotik-rp.conf
install --target-directory=$(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp/ conf/ovh.ini
install --target-directory=$(DESTDIR)$(call rpm_eval _unitdir)/ services/netoik-rp.service