Refacto to replace nginx with netoik-rp
This commit is contained in:
13
Makefile
13
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user