diff options
author | Krishnan Parthasarathi <kp@gluster.com> | 2012-04-23 13:22:42 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-23 05:31:02 -0700 |
commit | fdcbf065a9a4c39f08dfbe9e40695de250829bd8 (patch) | |
tree | 7f459e7f0a32ade75dba7a254987939aa963e6a2 | |
parent | f47b0fa1ccd594be9f0cda7f756973a04c0faed6 (diff) |
glusterfs.spec: Added hook-scripts in server rpmv3.3.0qa38
Change-Id: Idd0ed2a72ea9ec947eaf142b889730e8d4be63c1
BUG: 806996
Signed-off-by: Krishnan Parthasarathi <kp@gluster.com>
Reviewed-on: http://review.gluster.com/3211
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
-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 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* |