mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-03 22:20:18 +02:00
config: Fix $(DESTDIR) support.
This commit is contained in:
parent
09c26fec34
commit
98032b2a71
@ -4,7 +4,7 @@ SUBDIRS = \
|
|||||||
conf.d \
|
conf.d \
|
||||||
features-available
|
features-available
|
||||||
|
|
||||||
icinga2confdir = $(sysconfdir)/icinga2
|
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2
|
||||||
|
|
||||||
CONFIG_FILES = \
|
CONFIG_FILES = \
|
||||||
icinga2.conf
|
icinga2.conf
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
icinga2confdir = $(sysconfdir)/icinga2/conf.d
|
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/conf.d
|
||||||
|
|
||||||
CONFIG_FILES = \
|
CONFIG_FILES = \
|
||||||
localhost.conf \
|
localhost.conf \
|
||||||
macros.conf
|
macros.conf
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
if [ ! -e $(icinga2confdir); ]; then \
|
@if [ ! -e $(icinga2confdir) ]; then \
|
||||||
@$(MKDIR_P) $(icinga2confdir); \
|
$(MKDIR_P) $(icinga2confdir); \
|
||||||
for file in $(CONFIG_FILES); do \
|
for file in $(CONFIG_FILES); do \
|
||||||
$(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
|
$(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
|
||||||
done; \
|
done; \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
icinga2confdir = $(sysconfdir)/icinga2/features-available
|
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/features-available
|
||||||
|
|
||||||
CONFIG_FILES = \
|
CONFIG_FILES = \
|
||||||
checker.conf \
|
checker.conf \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user