summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2012-09-25 00:17:56 +0530
committerAnand Avati <avati@redhat.com>2012-09-25 22:22:06 -0700
commit36db38a5722127e9f330915783cddae453be5db3 (patch)
tree3047bae0e533db08b3cfb879b7f3fe515d770fb8
parentf29e26188635231652f57a518d85f110313933a2 (diff)
build: Install glusterfs-logrotate as config file
Change-Id: I8255eb4249503eac0add87444da934256faffc01 BUG: 860037 Reviewed-on: http://review.gluster.org/3973 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--extras/Makefile.am3
-rw-r--r--glusterfs.spec.in4
2 files changed, 5 insertions, 2 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am
index f96105fdba5..525482e089e 100644
--- a/extras/Makefile.am
+++ b/extras/Makefile.am
@@ -5,6 +5,9 @@ EditorMode_DATA = glusterfs-mode.el glusterfs.vim
SUBDIRS = init.d benchmarking hook-scripts
+confdir = $(sysconfdir)/glusterfs
+conf_DATA = glusterfs-logrotate
+
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 \
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 05eec2cc1f8..bda103b0bc8 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -264,7 +264,7 @@ touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd.conf
# Copy the 'glusterfs-logrotate' file at the right place
if [ -d /etc/logrotate.d ]; then
- cp %{_docdir}/%{name}-%{version}/glusterfs-logrotate /etc/logrotate.d/glusterfs
+ cp %{_sysconfdir}/glusterfs/glusterfs-logrotate /etc/logrotate.d/glusterfs
fi
%postun
@@ -273,7 +273,7 @@ fi
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL NEWS README THANKS
-%doc extras/glusterfs-logrotate
+%config %{_sysconfdir}/glusterfs/glusterfs-logrotate
%{_libdir}/glusterfs
%{_libdir}/*.so.*
%{_sbindir}/glusterfs*