This patch is the start of changing the debootstrap instance to
autotools. Right now it only installs the existing code into
$datadir/ganeti/os/debootstrap, even though we still install only etch.
Reviewed-by: imsnah
--- /dev/null
+# gitignore rules
+/Makefile
+/Makefile.in
+/aclocal.m4
+/autom4te.cache
+/autotools
+/config.log
+/config.status
+/configure
+/ganeti-instance-debootstrap-*.tar.gz
--- /dev/null
+osname=$(subst ganeti-instance-,,$(PACKAGE))
+
+osdir=$(datadir)/ganeti/os/$(osname)
+
+dist_os_SCRIPTS = create import export rename
+dist_os_DATA = ganeti_api_version
+
+dist_doc_DATA = COPYING NEWS README
--- /dev/null
+#!/bin/sh
+
+if test ! -f configure.ac ; then
+ echo "You must execute this script from the top level directory."
+ exit 1
+fi
+
+set -e
+
+rm -rf config.cache autom4te.cache
+mkdir -p autotools
+
+${ACLOCAL:-aclocal} -I autotools
+${AUTOCONF:-autoconf}
+${AUTOMAKE:-automake} --add-missing
+
+rm -rf autom4te.cache
--- /dev/null
+AC_PREREQ(2.59)
+AC_INIT(ganeti-instance-debootstrap, 0.4, ganeti@googlegroups.com)
+
+AC_CONFIG_AUX_DIR(autotools)
+AC_CONFIG_SRCDIR(configure)
+
+AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability])
+
+# Check common programs
+AC_PROG_INSTALL
+AC_PROG_LN_S
+
+AC_CONFIG_FILES([ Makefile ])
+
+AC_OUTPUT