a3470f
From 6ed11f5918cf21907df99839c9b76cf1144b2572 Mon Sep 17 00:00:00 2001
a3470f
From: "Bala.FA" <barumuga@redhat.com>
a3470f
Date: Mon, 7 Apr 2014 15:24:10 +0530
a3470f
Subject: [PATCH 07/74] build: remove ghost directory entries
a3470f
a3470f
ovirt requires hook directories for gluster management and ghost
a3470f
directories are no more ghost entries
a3470f
a3470f
Label: DOWNSTREAM ONLY
a3470f
a3470f
Change-Id: Iaf1066ba0655619024f87eaaa039f0010578c567
a3470f
Signed-off-by: Bala.FA <barumuga@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/60133
a3470f
Tested-by: Milind Changire <mchangir@redhat.com>
a3470f
---
a3470f
 glusterfs.spec.in | 20 ++++++++++++++++++--
a3470f
 1 file changed, 18 insertions(+), 2 deletions(-)
a3470f
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 50db6cb..3be99b6 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -757,14 +757,29 @@ install -D -p -m 0644 extras/glusterfs-logrotate \
a3470f
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
a3470f
 
a3470f
 %if ( 0%{!?_without_georeplication:1} )
a3470f
-# geo-rep ghosts
a3470f
 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
a3470f
 touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
a3470f
 install -D -p -m 0644 extras/glusterfs-georep-logrotate \
a3470f
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep
a3470f
 %endif
a3470f
 
a3470f
-# the rest of the ghosts
a3470f
+%if ( 0%{!?_without_syslog:1} )
a3470f
+%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
a3470f
+install -D -p -m 0644 extras/gluster-rsyslog-7.2.conf \
a3470f
+    %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
a3470f
+%endif
a3470f
+
a3470f
+%if ( 0%{?rhel} && 0%{?rhel} == 6 )
a3470f
+install -D -p -m 0644 extras/gluster-rsyslog-5.8.conf \
a3470f
+    %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
a3470f
+%endif
a3470f
+
a3470f
+%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
a3470f
+install -D -p -m 0644 extras/logger.conf.example \
a3470f
+    %{buildroot}%{_sysconfdir}/glusterfs/logger.conf.example
a3470f
+%endif
a3470f
+%endif
a3470f
+
a3470f
 touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
a3470f
 touch %{buildroot}%{_sharedstatedir}/glusterd/options
a3470f
 subdirs=(add-brick create copy-file delete gsync-create remove-brick reset set start stop)
a3470f
@@ -1262,6 +1277,7 @@ exit 0
a3470f
 %{_sbindir}/gcron.py
a3470f
 %{_sbindir}/conf.py
a3470f
 
a3470f
+<<<<<<< 2944c7b6656a36a79551f9f9f24ab7a10467f13a
a3470f
 # /var/lib/glusterd, e.g. hookscripts, etc.
a3470f
 %ghost      %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
a3470f
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd
a3470f
-- 
a3470f
1.8.3.1
a3470f