From: Olaf Hering Date: Fri, 23 Jul 2010 16:50:05 +0000 (+0100) Subject: tools and Makefiles: introduce and use new SYSCONFIG_DIR variable X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11747 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cddbcd7143c4207fe2dff78df817d80e71a3bab3;p=xen.git tools and Makefiles: introduce and use new SYSCONFIG_DIR variable On SuSE the configuration files in /etc/sysconfig/ will be updated in a smart way from templates found in /var/adm/fillup-templates/ Introduce new variable SYSCONFIG_DIR for Linux installations. Now only one place needs patching, or it can be specified as option to make(1). Signed-off-by: Olaf Hering Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/config/StdGNU.mk b/config/StdGNU.mk index aa6248801e..9f957e8f17 100644 --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -48,6 +48,9 @@ CONFIG_DIR = /etc else CONFIG_DIR = $(PREFIX)/etc endif + +SYSCONFIG_DIR = $(CONFIG_DIR)/sysconfig + XEN_CONFIG_DIR = $(CONFIG_DIR)/xen XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts diff --git a/tools/hotplug/Linux/Makefile b/tools/hotplug/Linux/Makefile index 19d88ab87d..1b7e8079b9 100644 --- a/tools/hotplug/Linux/Makefile +++ b/tools/hotplug/Linux/Makefile @@ -65,12 +65,12 @@ install: all install-initd install-scripts $(HOTPLUGS) .PHONY: install-initd install-initd: [ -d $(DESTDIR)$(CONFIG_DIR)/init.d ] || $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/init.d - [ -d $(DESTDIR)$(CONFIG_DIR)/sysconfig ] || $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/sysconfig + [ -d $(DESTDIR)$(SYSCONFIG_DIR) ] || $(INSTALL_DIR) $(DESTDIR)$(SYSCONFIG_DIR) $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)$(CONFIG_DIR)/init.d $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)$(CONFIG_DIR)/init.d - $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)$(CONFIG_DIR)/sysconfig/xendomains + $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xendomains $(INSTALL_PROG) $(XENCOMMONS_INITD) $(DESTDIR)$(CONFIG_DIR)/init.d - $(INSTALL_PROG) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)$(CONFIG_DIR)/sysconfig/xencommons + $(INSTALL_PROG) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xencommons $(INSTALL_PROG) init.d/xen-watchdog $(DESTDIR)$(CONFIG_DIR)/init.d .PHONY: install-scripts