[Libvirt-cim] [PATCH 1 of 6] Add persistent data location to configure.ac

Dan Smith danms at us.ibm.com
Mon Jun 23 19:10:50 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1214248207 25200
# Node ID 3f95e5cf96d586b7315516421e7eac66ed0fef86
# Parent  3d2618df45908eecf363442d50e43297ebd77a62
Add persistent data location to configure.ac

Changes:
 - Create the infostore directory on postinstall

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 3d2618df4590 -r 3f95e5cf96d5 Makefile.am
--- a/Makefile.am	Mon Jun 23 11:37:18 2008 -0700
+++ b/Makefile.am	Mon Jun 23 12:10:07 2008 -0700
@@ -113,6 +113,7 @@
 	sh provider-register.sh -v -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS)
 	sh provider-register.sh -v -t @CIMSERVER@ -n root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS)
 	virsh -v | grep -q '^0.3' && cp examples/diskpool.conf $(DISK_POOL_CONFIG) || true
+	mkdir -p $(INFO_STORE)
 
 preuninstall:
 	sh provider-register.sh -v -d -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS)
diff -r 3d2618df4590 -r 3f95e5cf96d5 acinclude.m4
--- a/acinclude.m4	Mon Jun 23 11:37:18 2008 -0700
+++ b/acinclude.m4	Mon Jun 23 12:10:07 2008 -0700
@@ -317,6 +317,17 @@
     ]
 )
 
+#
+# Define info store location.
+#
+AC_DEFUN([DEFINE_INFO_STORE],
+    [
+    AC_DEFINE_UNQUOTED([INFO_STORE], "$1", [Info store location])
+    INFO_STORE=$1
+    AC_SUBST(INFO_STORE)
+    ]
+)
+
 AC_DEFUN([SET_CSET],
 	[
 	if test -d .hg && test -x $(which hg); then
diff -r 3d2618df4590 -r 3f95e5cf96d5 configure.ac
--- a/configure.ac	Mon Jun 23 11:37:18 2008 -0700
+++ b/configure.ac	Mon Jun 23 12:10:07 2008 -0700
@@ -60,6 +60,13 @@
             [DEFINE_DISK_CONFIG($with_diskconfig)], 
             [DEFINE_DISK_CONFIG(/etc/libvirt/diskpool.conf)]
 )
+
+AC_ARG_WITH([info_store],
+	    [  --with-info-store=PATH  Set information store location (default=/etc/libvirt/cim)],
+	    [DEFINE_INFO_STORE($withval)],
+	    [DEFINE_INFO_STORE(/etc/libvirt/cim)]
+)
+
 AC_ARG_WITH([maxmem], 
             [  --with-maxmem=FOO	  Set max memory (KB) for a guest.], 
             [DEFINE_MAXMEM($with_maxmem)], 




More information about the Libvirt-cim mailing list