WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] introduce and use new SYSCONFIG_DIR variable

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] introduce and use new SYSCONFIG_DIR variable
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Fri, 23 Jul 2010 14:18:12 +0200
Delivery-date: Fri, 23 Jul 2010 05:20:27 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1279887492; l=1902; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=PvLgNho4TPBdJnnDUPL6JIj5yIQ=; b=YcTuf9Rk0ddaxVjMtkriiL3ollyN7mqPakWNKZbpkJAWVPCGWdkIO5SNscaeG8Bt1Up DgJg1kI5/zLALIaPkFFIj96YgwLTCuU/6TswJRCsxVBZNVVaETJj9Lwn+4MJxsj7dKQcZ 1j8XSjjU+2aLa2slhf93gtL2Av4Yv63ADyw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
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 <olaf@xxxxxxxxx>

---
 config/StdGNU.mk             |    3 +++
 tools/hotplug/Linux/Makefile |    6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

--- xen-unstable.hg-4.1.21811.orig/config/StdGNU.mk
+++ xen-unstable.hg-4.1.21811/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
 
--- xen-unstable.hg-4.1.21811.orig/tools/hotplug/Linux/Makefile
+++ xen-unstable.hg-4.1.21811/tools/hotplug/Linux/Makefile
@@ -65,12 +65,12 @@ install: all install-initd install-scrip
 .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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>