diff options
-rw-r--r-- | extras/Makefile.am | 3 | ||||
-rw-r--r-- | glusterfs.spec.in | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am index ae15f2c78d6..503c9d75c62 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 96949db5612..8a446dcaef1 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -252,7 +252,7 @@ done # 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 @@ -261,7 +261,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* |