17b94a
From 1f28e008825ae291208a9e6c714dd642f715a2a1 Mon Sep 17 00:00:00 2001
17b94a
From: "Bala.FA" <barumuga@redhat.com>
17b94a
Date: Mon, 7 Apr 2014 15:24:10 +0530
17b94a
Subject: [PATCH 06/52] build: remove ghost directory entries
17b94a
17b94a
ovirt requires hook directories for gluster management and ghost
17b94a
directories are no more ghost entries
17b94a
17b94a
Label: DOWNSTREAM ONLY
17b94a
17b94a
Change-Id: Iaf1066ba0655619024f87eaaa039f0010578c567
17b94a
Signed-off-by: Bala.FA <barumuga@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/60133
17b94a
Tested-by: Milind Changire <mchangir@redhat.com>
17b94a
---
17b94a
 glusterfs.spec.in | 19 +++++++++++++++++--
17b94a
 1 file changed, 17 insertions(+), 2 deletions(-)
17b94a
17b94a
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
17b94a
index f5c1f79..6be492e 100644
17b94a
--- a/glusterfs.spec.in
17b94a
+++ b/glusterfs.spec.in
17b94a
@@ -799,15 +799,30 @@ install -D -p -m 0644 extras/glusterfs-logrotate \
17b94a
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
17b94a
 
17b94a
 %if ( 0%{!?_without_georeplication:1} )
17b94a
-# geo-rep ghosts
17b94a
 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
17b94a
 touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
17b94a
 install -D -p -m 0644 extras/glusterfs-georep-logrotate \
17b94a
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep
17b94a
 %endif
17b94a
 
17b94a
+%if ( 0%{!?_without_syslog:1} )
17b94a
+%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
17b94a
+install -D -p -m 0644 extras/gluster-rsyslog-7.2.conf \
17b94a
+    %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
17b94a
+%endif
17b94a
+
17b94a
+%if ( 0%{?rhel} && 0%{?rhel} == 6 )
17b94a
+install -D -p -m 0644 extras/gluster-rsyslog-5.8.conf \
17b94a
+    %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
17b94a
+%endif
17b94a
+
17b94a
+%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
17b94a
+install -D -p -m 0644 extras/logger.conf.example \
17b94a
+    %{buildroot}%{_sysconfdir}/glusterfs/logger.conf.example
17b94a
+%endif
17b94a
+%endif
17b94a
+
17b94a
 %if ( 0%{!?_without_server:1} )
17b94a
-# the rest of the ghosts
17b94a
 touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
17b94a
 touch %{buildroot}%{_sharedstatedir}/glusterd/options
17b94a
 subdirs=(add-brick create copy-file delete gsync-create remove-brick reset set start stop)
17b94a
-- 
17b94a
1.8.3.1
17b94a