summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2012-09-30 17:07:18 +0530
committerVijay Bellur <vbellur@redhat.com>2012-12-12 00:18:08 -0500
commit3c105743e44cd77137f22a788c19a759340c4d9a (patch)
tree39c310a642e0d8eb18d8d1c7ff7ff2677a09abca
parentf8c227d9a61a0e16508c471e01a96ac6cd74c09b (diff)
build: Install virt group file as a config file.
Additionally copy virt group file to /var/lib/glusterd/groups/ during RPM install. Change-Id: Ie0bedafc4354ac278adfb5cd8a1c1db61512d6a8 BUG: 861369 Reviewed-on: https://code.engineering.redhat.com/gerrit/42 Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/1871
-rw-r--r--extras/Makefile.am2
-rw-r--r--glusterfs.spec.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am
index 503c9d7..565f93e 100644
--- a/extras/Makefile.am
+++ b/extras/Makefile.am
@@ -6,7 +6,7 @@ EditorMode_DATA = glusterfs-mode.el glusterfs.vim
SUBDIRS = init.d benchmarking hook-scripts
confdir = $(sysconfdir)/glusterfs
-conf_DATA = glusterfs-logrotate
+conf_DATA = glusterfs-logrotate group-virt.example
EXTRA_DIST = specgen.scm MacOSX/Portfile glusterfs-mode.el glusterfs.vim \
migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 8a446dc..2863e27 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -262,6 +262,7 @@ fi
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL NEWS README THANKS
%config %{_sysconfdir}/glusterfs/glusterfs-logrotate
+%config %{_sysconfdir}/glusterfs/group-virt.example
%{_libdir}/glusterfs
%{_libdir}/*.so.*
%{_sbindir}/glusterfs*
@@ -330,7 +331,7 @@ fi
# Need to copy the file.
mkdir -p /var/lib/glusterd/groups
-cp %{_docdir}/%{name}-%{version}/group-virt.example /var/lib/glusterd/groups/virt
+cp %{_sysconfdir}/glusterfs/group-virt.example /var/lib/glusterd/groups/virt
pidof -c -o %PPID -x glusterd &> /dev/null
if [ $? -eq 0 ]; then