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 --- configure.ac | 1 + extras/Makefile.am | 3 +-- extras/hook-scripts/Makefile.am | 1 + glusterfs.spec.in | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 extras/hook-scripts/Makefile.am diff --git a/configure.ac b/configure.ac index 5771ef21c..ef3e122aa 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,7 @@ AC_CONFIG_FILES([Makefile extras/init.d/glusterd-Redhat extras/init.d/glusterd-SuSE extras/benchmarking/Makefile + extras/hook-scripts/Makefile contrib/fuse-util/Makefile contrib/uuid/uuid_types.h xlators/nfs/Makefile diff --git a/extras/Makefile.am b/extras/Makefile.am index 5c77ce73d..0c260de92 100644 --- a/extras/Makefile.am +++ b/extras/Makefile.am @@ -3,10 +3,9 @@ docdir = $(datadir)/doc/glusterfs/ EditorModedir = $(docdir)/ EditorMode_DATA = glusterfs-mode.el glusterfs.vim -SUBDIRS = init.d benchmarking +SUBDIRS = init.d benchmarking hook-scripts EXTRA_DIST = specgen.scm MacOSX/Portfile glusterfs-mode.el glusterfs.vim \ migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \ backend-cleanup.sh disk_usage_sync.sh quota-remove-xattr.sh \ quota-metadata-cleanup.sh glusterfs-logrotate - diff --git a/extras/hook-scripts/Makefile.am b/extras/hook-scripts/Makefile.am new file mode 100644 index 000000000..1d0f0287b --- /dev/null +++ b/extras/hook-scripts/Makefile.am @@ -0,0 +1 @@ +EXTRA_DIST = S30samba-start.sh S30samba-stop.sh diff --git a/glusterfs.spec.in b/glusterfs.spec.in index fa4178834..53688e77a 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