d1681e
From 8b9f3413dfc9f319f5d7476132bbbfa390819f26 Mon Sep 17 00:00:00 2001
d1681e
From: Jiffin Tony Thottan <jthottan@redhat.com>
d1681e
Date: Wed, 28 Feb 2018 09:17:09 +0530
d1681e
Subject: [PATCH 173/180] packaging : adding missed part from 5eed664 while
d1681e
 backporting to downstream
d1681e
d1681e
Label : DOWNSTREAM ONLY
d1681e
d1681e
Change-Id: I0ece0adb3b2c85a5ced9c1850ee783d8952a8dec
d1681e
BUG: 1472445
d1681e
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/131344
d1681e
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d1681e
Reviewed-by: Milind Changire <mchangir@redhat.com>
d1681e
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d1681e
---
d1681e
 glusterfs.spec.in | 11 ++++++++++-
d1681e
 1 file changed, 10 insertions(+), 1 deletion(-)
d1681e
d1681e
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
d1681e
index 8379f64..ca36e65 100644
d1681e
--- a/glusterfs.spec.in
d1681e
+++ b/glusterfs.spec.in
d1681e
@@ -826,8 +826,13 @@ install -D -p -m 0644 extras/glusterfs-logrotate \
d1681e
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
d1681e
 
d1681e
 # ganesha ghosts
d1681e
+%if ( ! 0%{?_build_server} )
d1681e
 mkdir -p %{buildroot}%{_sysconfdir}/ganesha
d1681e
 touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
d1681e
+mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
d1681e
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
d1681e
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
d1681e
+%endif
d1681e
 
d1681e
 %if ( 0%{!?_without_georeplication:1} )
d1681e
 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
d1681e
@@ -1342,7 +1347,11 @@ exit 0
d1681e
 %{_prefix}/lib/ocf/resource.d/heartbeat/*
d1681e
 %{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
d1681e
 %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
d1681e
-%ghost %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
d1681e
+%ghost      %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
d1681e
+%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
d1681e
+%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
d1681e
+%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
d1681e
+%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
d1681e
 %endif
d1681e
 
d1681e
 %if ( 0%{?_build_server} )
d1681e
-- 
d1681e
1.8.3.1
d1681e