Ship and install all hooks and their data
authorIustin Pop <iustin@google.com>
Mon, 29 Oct 2012 11:49:38 +0000 (12:49 +0100)
committerIustin Pop <iustin@google.com>
Mon, 29 Oct 2012 15:27:22 +0000 (16:27 +0100)
Currently, we have just a few hooks shipped, but none are
installed. This patch adds automake rules for installing all hooks and
their config data in the right directories (but they will still need
to be activated by the admin).

This fixes issue 283.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

Makefile.am

index 077fc35..1a8c763 100644 (file)
@@ -10,9 +10,24 @@ os_DATA = common.sh
 
 dist_doc_DATA = COPYING NEWS README
 
-EXTRA_DIST = common.sh.in defaults \
+exampledir = $(docdir)/examples
+exampleconfdir = $(exampledir)/confdata
+
+dist_exampleconf_DATA = \
+       examples/hooks/confdata/defaultpasswords \
+       examples/hooks/confdata/timezone
+
+dist_example_DATA = \
+       examples/hooks/defaultpasswords \
        examples/hooks/grub \
-       examples/hooks/interfaces
+       examples/hooks/hosts \
+       examples/hooks/interfaces \
+       examples/hooks/ssh-keys \
+       examples/hooks/timezone
+
+EXTRA_DIST = \
+       common.sh.in \
+       defaults
 
 do_subst = sed \
        -e 's,[@]sysconfdir[@],$(sysconfdir),g' \