From fdcbf065a9a4c39f08dfbe9e40695de250829bd8 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 23 Apr 2012 13:22:42 +0530 Subject: glusterfs.spec: Added hook-scripts in server rpm Change-Id: Idd0ed2a72ea9ec947eaf142b889730e8d4be63c1 BUG: 806996 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.com/3211 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- glusterfs.spec.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index fa417883430..53688e77a48 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -222,6 +222,11 @@ find %{buildroot}%{_libdir} -name '*.la' -delete sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \ %{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol +# Following needed by the hooks interface +%{__mkdir_p} %{buildroot}%{_sharedstatedir}/glusterd/hook-scripts +%{__install} -p -m 0644 extras/hook-scripts/*.sh \ + %{buildroot}%{_sharedstatedir}/glusterd/hook-scripts/ + # Clean up the examples we want to include as %%doc #%{__cp} -a doc/examples examples #%{__rm} -f examples/Makefile* -- cgit