Install the defaults file automatically
authorIustin Pop <iustin@google.com>
Thu, 19 Jul 2012 12:33:00 +0000 (14:33 +0200)
committerIustin Pop <iustin@google.com>
Thu, 19 Jul 2012 12:44:48 +0000 (14:44 +0200)
This fixes issue 51, and is a good thing to do (even if packages are
already installing it).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

Makefile.am

index 6b01439..faa02cd 100644 (file)
@@ -2,6 +2,7 @@ osname=$(subst ganeti-instance-,,$(PACKAGE))
 
 osdir=$(OS_DIR)/$(osname)
 variantsdir=$(DESTDIR)$(sysconfdir)/ganeti/instance-debootstrap/variants
+defaultsdir=$(DESTDIR)$(sysconfdir)/default
 
 dist_os_SCRIPTS = create import export rename
 dist_os_DATA = ganeti_api_version variants.list
@@ -24,5 +25,8 @@ common.sh: common.sh.in Makefile
 install-exec-local:
        @mkdir_p@ $(variantsdir)
        touch $(variantsdir)/default.conf
+       @mkdir_p@ $(defaultsdir)
+       $(INSTALL_DATA) $(top_srcdir)/defaults \
+         $(defaultsdir)/ganeti-instance-debootstrap
 
 CLEANFILES = common.sh