config: Fix $(DESTDIR) support.

This commit is contained in:
Michael Friedrich 2013-10-01 19:28:16 +02:00
parent 09c26fec34
commit 98032b2a71
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ SUBDIRS = \
conf.d \
features-available
icinga2confdir = $(sysconfdir)/icinga2
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2
CONFIG_FILES = \
icinga2.conf

View File

@ -1,14 +1,14 @@
## Process this file with automake to produce Makefile.in
icinga2confdir = $(sysconfdir)/icinga2/conf.d
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/conf.d
CONFIG_FILES = \
localhost.conf \
macros.conf
install-data-local:
if [ ! -e $(icinga2confdir); ]; then \
@$(MKDIR_P) $(icinga2confdir); \
@if [ ! -e $(icinga2confdir) ]; then \
$(MKDIR_P) $(icinga2confdir); \
for file in $(CONFIG_FILES); do \
$(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
done; \

View File

@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
icinga2confdir = $(sysconfdir)/icinga2/features-available
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/features-available
CONFIG_FILES = \
checker.conf \