diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | extras/Makefile.am | 3 | ||||
-rw-r--r-- | extras/hook-scripts/Makefile.am | 1 | ||||
-rw-r--r-- | glusterfs.spec.in | 5 |
4 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5771ef21c29..ef3e122aa2e 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 5c77ce73d52..0c260de92a5 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 00000000000..1d0f0287b6e --- /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 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* |