From 31ca0c96bfee38f2662a5fb017ff760884f4bc02 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 29 Oct 2012 12:49:38 +0100 Subject: [PATCH] Ship and install all hooks and their data 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 Reviewed-by: Guido Trotter --- Makefile.am | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 077fc35..1a8c763 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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' \ -- 1.7.2.5