Make defaults file inherit the ./configure options
authorNikos Skalkotos <skalkoto@grnet.gr>
Thu, 17 Jan 2013 12:43:09 +0000 (14:43 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Thu, 17 Jan 2013 12:43:09 +0000 (14:43 +0200)
snf-image-host/Makefile.am
snf-image-host/configure.ac
snf-image-host/defaults.in [moved from snf-image-host/defaults with 85% similarity]

index 0c4db89..7b0237e 100644 (file)
@@ -1,6 +1,7 @@
-osname=$(PACKAGE)
+osname=snf-image
 osdir=$(OS_DIR)/$(osname)
 defaultdir=$(DEFAULT_DIR)
+exampledir = $(datarootdir)/doc/$(PACKAGE)
 variantsdir=${sysconfdir}/ganeti/snf-image/variants
 
 dist_os_SCRIPTS = ${srcdir}/create ${srcdir}/import ${srcdir}/export \
@@ -15,6 +16,8 @@ dist_bin_SCRIPTS = snf-image-update-helper
 
 os_DATA = common.sh
 
+example_DATA = defaults multistrap.conf version_pinning.pref repo_pinning.pref
+
 edit = sed \
           -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
           -e 's|@localstatedir[@]|$(localstatedir)|g' \
index af1c587..dc2567f 100644 (file)
@@ -1,5 +1,5 @@
 AC_PREREQ(2.59)
-AC_INIT(snf-image, 0.7.4, synnefo@lists.grnet.gr)
+AC_INIT(snf-image-host, 0.7.4, synnefo@lists.grnet.gr)
 
 AC_CONFIG_AUX_DIR(autotools)
 AC_CONFIG_SRCDIR(configure)
similarity index 85%
rename from snf-image-host/defaults
rename to snf-image-host/defaults.in
index da60bda..1fb3091 100644 (file)
@@ -7,7 +7,7 @@
 # IMAGE_NAME=""
 
 # IMAGE_DIR: directory location for disk images
-# IMAGE_DIR="/var/lib/snf-image"
+# IMAGE_DIR="@localstatedir@/lib/snf-image"
 
 # IMAGE_DEBUG: turn on debugging output for the scripts
 # IMAGE_DEBUG=no
 # VERSION_CHECK: Check if host and helper have the
 # same version. This is usefull if snf-image-host is
 # installed as debian package and not from source.
-# VERSION_CHECK="no"
+# VERSION_CHECK="@VERSION_CHECK@"
 
 # HELPER_DIR: Directory hosting the helper files
-# HELPER_DIR="/var/lib/snf-image/helper/"
+# HELPER_DIR="@localstatedir@/lib/snf-image/helper/"
 
 # HELPER_TIMOUT: Soft and hard timeout limits for helper instance. The helper
 # instance will be terminated after a given time if it hasn't exited by itself.
 
 # MULTISTRAP_CONFIG: Configuration file to be used with multistrap to create
 # the rootfs of the helper image.
-# MULTISTRAP_CONFIG="/etc/snf-image/multistrap.conf"
+# MULTISTRAP_CONFIG="@MULTISTRAP_CONFIG@"
 
 # MULTISTRAP_APTPREFDIR: Directory where apt preference files are hosted. Those
 # files will be injected to the helper image before multistrap is called.
-# MULTISTRAP_APTPREFDIR="/etc/snf-image/apt.pref.d"
+# MULTISTRAP_APTPREFDIR="@MULTISTRAP_APTPREFDIR@"
 
 # PITHOS_DB: Pithos database in SQLAlchemy format
-# PITHOS_DB="sqlite:////var/lib/pithos/backend.db"
+# PITHOS_DB="sqlite:////@localstatedir@/lib/pithos/backend.db"
 
 # PITHOS_DATA: Directory where pithos data are hosted
-# PITHOS_DATA="/var/lib/pithos/data"
+# PITHOS_DATA="/@localstatedir@/lib/pithos/data"
 
 # PROGRESS_MONITOR: External program that monitors the progress of the image
 # deployment. The snf-image monitor messages will be redirected to the standard
 # input of this program.
-# PROGRESS_MONITOR=""
+# PROGRESS_MONITOR="@PROGRESS_MONITOR@"
 
 # UNATTEND: This variables overwrites the unattend.xml file used when deploying
 # a windows image. snf-image-helper will use its own unattend.xml file if this
 # variable is empty. Please unless you really know what you are doing, leave
 # this empty.
-# UNATTEND=""
+# UNATTEND="@UNATTEND@"
 
 # Paths for needed programs. Uncommend and change the variables below if you
 # don't want to use the default one.